Search

Jun 9, 2007

Event Bubbling

Event bubbling is the process of moving an event up the control hierarchy, from a control low in the hierarchy - such as a Button within the row of a DataGrid - and percolating it up to an ancestor control - such as the DataGrid.

Read more

Check that the SMTP server accepts email

Follow these steps to simulate what FogBugz does when it tries to send mail. If you see an error at any point, it will likely give you some clues as to what's wrong with the SMTP server.

From the computer where FogBugz is running, open a command prompt (choose Start, Run, type cmd, and click OK).
Type

telnet smtpserver 25

If you get a message that says something like Connect Failed, the SMTP server in question is not accepting any connections. This may be because:
the SMTP server is not running
the SMTP server is configured to reject email connections from the FogBugz machine
If all is well, you will see a message that starts with the number 220 followed by a greeting.
Type

HELO smtpserver

You should see a message starting with the number 250 followed by something glib like "pleased to meet you"
Using the email address configured as "Notification Return Address" in the FogBugz Site configuration screen, type

MAIL FROM:youremail@example.com

You should see a message starting with the number 250 followed by something like Sender ok.
Using the email address you want to send a notification to, type

RCPT TO:email@example.com

You should see a message starting with the number 250 followed by something like Recipient ok.

If you see a message that says something like "Relay Access Denied" -- this means that the SMTP server is configured to refuse any email that is not intended for its own domain. For example if you are sending mail to joe@example.com using an SMTP server at mycompany.com and you see a message about relaying denied, this SMTP server probably thinks you are a spammer. You will need to find an SMTP server that is configured to accept email from the FogBugz machine to its recipients.

Type
DATA

You should see a message starting with the number 354 followed by instructions to enter the email message..
Type
Test message
.

Note that the last line contains a period (dot) alone. This signals that you are done typing the message.
You should see a message starting with the number 250 followed by something like Message Accepted for Delivery.
Type
QUIT

Check that the email was received. If it was not received even though the message was accepted for delivery, there is something wrong with the SMTP mail server.

Jun 1, 2007

Cannot convert null to 'int' because it is a value type

Hello friends,

I found solution for the following error:

Cannot convert null to 'int' because it is a value type

when i wrote

int i = null

Now we can assign null values to such value types viz. int, datetime, float...

Check out Nullable Types

May 29, 2007

Calculate period of time with .NET

Hi all,

We all are facing problem in calculating difference between date.

I have one good delicious, have a look at Calculate period of time with .NET.

May 22, 2007

Global.asax problem in Webservice...

hello all,

I came accrosse one situation where i need to execute code on Application Start, but due to some problem webservice was not executing code written in Global.asax file.

After googling i got good link as soluction, The missing part was code file

Have a look at delicious Problem with Global.asax file in VS 2005.

May 19, 2007

ANTS Profiler - .NET code and memory profiler

ANTS Profiler identifies performance bottlenecks in applications written in any of the languages available on the .NET Framework. To profile your application, use your application as normal within ANTS Profiler. During the performance profiling, ANTS Profiler records the frequency and time it takes for each line of code to be executed, as you are using your application. Detailed results will then reveal the slowest lines of code and methods, allowing you to quickly identify performance bottlenecks and optimize your .NET application accordingly.

Have a look at delicios.

May 11, 2007

Implementing the Singleton Pattern in C#

Hi

I found good article on Singlelton Pattern, what is singleton, how to implement etc ....

Have a look at delicios.

May 10, 2007

HTTP Response Codes

Hi all,

In the web world we are getting lots of HTTP error, i have delicios which has all the response codes with its description.

May 5, 2007

A Complete URL Rewriting Solution for ASP.NET 2.0

Hi All,

I found one interesting article, which is simply best for URL Rewriting.

I have delicious on URL Rewriting

May 3, 2007

Avoid dynamic query at some extend [SQL 2k]


select * from [northwind].[dbo].[orders]
This will probably returns 830 rows [thats default],

Now what if I want top 10 rows or to 20 rows may be more, I will create dynamic query like...
declare @statement varchar(100)
declare @iTop int
set @iTop=3
set @statement ='select top ' + convert(varchar(2),@iTop) + ' * from [northwind].[dbo].[orders]'
EXEC (@statement)
We can do as follows which don't requrie creating dynamic query.

declare @iTop int
set @iTop=3
set rowcount @iTop
select * from [northwind].[dbo].[orders]
This will display top 3 records!!

Now set rowcount to 0 to get all the records

set rowcount 0