Click here to Skip to main content
15,885,914 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFailed to convert parameter value from a String to a DateTime Pin
haleemasher19-Aug-09 19:36
haleemasher19-Aug-09 19:36 
AnswerRe: Failed to convert parameter value from a String to a DateTime Pin
haleemasher19-Aug-09 20:05
haleemasher19-Aug-09 20:05 
Questionaccess with role and membership Pin
mylogics19-Aug-09 19:30
professionalmylogics19-Aug-09 19:30 
QuestionIs there any way to show a textbox and a submit button in an email body? Pin
biyon19-Aug-09 18:36
biyon19-Aug-09 18:36 
AnswerRe: Is there any way to show a textbox and a submit button in an email body? Pin
Christian Graus19-Aug-09 18:40
protectorChristian Graus19-Aug-09 18:40 
GeneralRe: Is there any way to show a textbox and a submit button in an email body? Pin
biyon19-Aug-09 19:57
biyon19-Aug-09 19:57 
QuestionImplement Webpart with Custom Personlization [modified] Pin
$unil Dhiman19-Aug-09 18:21
$unil Dhiman19-Aug-09 18:21 
QuestionValidation of A Valid Email Domain Pin
HatakeKaKaShi19-Aug-09 15:26
HatakeKaKaShi19-Aug-09 15:26 
Hey guys need ur help again. I need to check the valid email address using asp.net
Below are the code i use

hostName = "yahoo.com";

private bool ValidSMTP(string hostName)
{  
         bool valid = false;
         try
         {
               TcpClient smtpTest = new TcpClient();
               smtpTest.Connect(hostName, 25);
               if (smtpTest.Connected)
               {  
                     NetworkStream ns = smtpTest.GetStream();
                     StreamReader sr = new StreamReader(ns);
                     if (sr.ReadLine().Contains("220"))
                     { valid = true; }
                     smtpTest.Close();
               }
         }
         catch (Exception e)
         {
               string a = e.Message;
         }

         return valid;
}

However the error msg i receive is this
"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
Any solution or other methods of validating a exist email address?

Thanks

KaKaShi HaTaKe

AnswerRe: Validation of A Valid Email Domain Pin
Christian Graus19-Aug-09 15:33
protectorChristian Graus19-Aug-09 15:33 
Questionuse javascript to change the color for mouseover Pin
Seraph_summer19-Aug-09 8:59
Seraph_summer19-Aug-09 8:59 
AnswerRe: use javascript to change the color for mouseover Pin
Abhijit Jana19-Aug-09 9:22
professionalAbhijit Jana19-Aug-09 9:22 
GeneralRe: use javascript to change the color for mouseover Pin
Seraph_summer19-Aug-09 9:25
Seraph_summer19-Aug-09 9:25 
AnswerRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 9:42
sajjy19-Aug-09 9:42 
AnswerRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 9:46
sajjy19-Aug-09 9:46 
GeneralRe: use javascript to change the color for mouseover Pin
Seraph_summer19-Aug-09 9:55
Seraph_summer19-Aug-09 9:55 
GeneralRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 10:10
sajjy19-Aug-09 10:10 
GeneralRe: use javascript to change the color for mouseover Pin
Seraph_summer19-Aug-09 10:15
Seraph_summer19-Aug-09 10:15 
GeneralRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 10:40
sajjy19-Aug-09 10:40 
GeneralRe: use javascript to change the color for mouseover Pin
sajjy19-Aug-09 10:47
sajjy19-Aug-09 10:47 
GeneralRe: use javascript to change the color for mouseover Pin
Seraph_summer20-Aug-09 8:48
Seraph_summer20-Aug-09 8:48 
AnswerRe: use javascript to change the color for mouseover Pin
Abhishek Sur19-Aug-09 21:49
professionalAbhishek Sur19-Aug-09 21:49 
GeneralRe: use javascript to change the color for mouseover Pin
Seraph_summer20-Aug-09 8:50
Seraph_summer20-Aug-09 8:50 
GeneralRe: use javascript to change the color for mouseover Pin
Abhishek Sur20-Aug-09 21:27
professionalAbhishek Sur20-Aug-09 21:27 
QuestionRunTime Error , Server Error in Application PROBLEM Pin
pampam11019-Aug-09 8:06
pampam11019-Aug-09 8:06 
AnswerRe: RunTime Error , Server Error in Application PROBLEM Pin
Abhijit Jana19-Aug-09 8:16
professionalAbhijit Jana19-Aug-09 8:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.