Thanks Its working Regards SMK
suveenmohan
Posts
-
Mailbox unavailable. -
Mailbox unavailable.Hi All, Here in my application I want to send Mail through my application, but when I click on send,got an error msg - "Send Email Failed. Mailbox unavailable. The server response was: 5.7.1 Unable to relay for suveen.kulshreshtha@yahoo.com " Plz help me to shortout that problem. here is the code protected void btnSendmail_Click(object sender, EventArgs e) { SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); try { MailAddress fromAddress = new MailAddress(txtEmail.Text, txtName.Text); smtpClient.Host = "localhost"; smtpClient.Port = 25; message.From = fromAddress; message.To.Add("suveen.kulshreshtha@yahoo.com"); message.Subject = "Feedback"; message.IsBodyHtml = false; message.Body = txtMessage.Text; smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network; smtpClient.UseDefaultCredentials = true; smtpClient.Send(message); lblStatus.Text = "Email successfully sent."; } catch (Exception ex) { lblStatus.Text = "Send Email Failed.;" + ex.Message; } } thanks SMK
-
ASP.NET1.1: How to import data from xsl to sql server through c#. Its Urgent.Hi All, I develop an application(ASP.NET1.1) in which I want to import data from *.xls file to Sql Server 2000. But there is SQLBulkcopy does not work. Please help me. Thans & Regards: Suveen Mohan
modified on Wednesday, January 09, 2008 11:31:13 PM
-
unable to start debugging on web server. the underlying connection was clossedHi, In my asp.net application when we start debug the following error is occured - "unable to start debugging on web server. the underlying connection was closed: An Unexpected error on send" Regards SMK
-
Send mail through ASP Page..........Hi All, In my application I want to send mail onto the gmail through my ASP Page. If its posible plz help me. thanx & Regards: SMK
-
export data from sql Server into Excel in text format with Visual Basic 6.0Hi All, I want to export data from sql Server into Excel in text format with Visual Basic 6.0. Becoz there are some value which are convert into date at export time, but actual value like 1144/05-06. If any one have some idea plz help me. Thanx & Regards SMK
-
20 Questions AlgorithmHi, Use Frameset and frame HTML tags. For further clarification can mail me suveen.kulshreshtha@gmail.com or mayur.mehta@indiatimes.com
-
Logout ProblemHi All, Here in my web-application.When I click on LogOut button it'll signout but if I go through back button left most cornner of explorer it'll work like signin, how to solve that problem. Please Help. Regards: SMK
-
I want to call Crystal Report in ASP.NETHi, Thanx for your reply.But i want to access multiple reports by passing a querystring e.g. if(Request.QueryString.Equels("L")) { CRV.ReportSource = Server.MapPath("New_Reports/deptwiselaptop.rpt"); } else if(Request.QueryString.Equels("W")) { CRV.ReportSource = Server.MapPath("New_Reports/Warranty.rpt"); } but it gave an error on Request.QueryString.Equels("L") error msg is-> 'System.Collections.Specialized.NameValueCollection' does not contain a definition for 'Equels'
-
I want to call Crystal Report in ASP.NETHi All, Here in my application(ASP.NET with C#), I want to call Crystal Report. But how Plz Help
-
Menu related Problem(Plz Help)Hi All, In my application(site)i've menubar but when i click or chose on that menu page will be over-write and new page is displayed but menu is disappear. how to make my menu bar static for all page in my application. Regards SMK
-
Unable to start debugging on the web server.Hi All, When I Compile my web site "Unable to start debugging on the web server. The underlying connection was closed: An unexpected error occurred on a" error message shown. Plz Help Me. Regards: SMK
-
Menu not appearHello All, Here in my .NET App. I want to add menu in ASP.NET App. I write code: But if I apply Body code as it is then only menu is show not other frames or if Body tag apply after tag then frames are displayed but menu is not apply on page. please help me. Regards SMK
-
Password field lost their valuesHello, Thanx for ur cooperation, its working properly. Thanx once again. Regards SMK
-
Password field lost their valuesHi All, Here in my application, I've 2 password fields, after filling data in these fields when i change the Dropdownlist value, page_load call autometicly and these password fields lost their values, which i need. Please help me i don't know, what to do. Regards SMK
-
How to get control of selected component.Hi, Thanx for ur reply, But my pointer is already in TextBox1 and when I click on Exit button at that time OnLeave event is fired so its not posible to set a flag on exit button in my view I've to check that component(Exit Button)at OnLeave Function. Thanx & Regrsds SMK :doh:
-
How to get control of selected component.Hi All, Here i develop a C# Application, in that App. I've 3 Textboxes and 2 Buttons, Default cursor set on TextBox1 and check some condition on TextBox1 Leave. But the problem is that after starting App. I wish to close that App. through Exit Button, but at that time cursor inside TextBox1 so it execute OnLeave function 1st and then I've to again click on Exit button, But i want when I clike on Exit Button in that case OnLeave function will not execute. How it is posible if any one know plz reply. Welcome any tips... Thanx & Regards SMK
-
How to deploye c# ApplicationHi All, Here I created a C# application, but now i want to deploye that application but the problem is that, how to create satup for that application, i don't know. if any one know plz helh me thanx & regards smk
-
C#: how to get estimated download timeThanx for reply, but i got the solution in c# Thanx & Regards SMK
-
C#: how to get estimated download timeHi All I create an FTP Application to download data from ftp.I want to calculate estimated download time but i don't know "how to get estimated download time". If any one know please help me thanx & regards SMK