|
yeah sure i can show no problem
objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", "2");
objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",2);
objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25");
objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout", 10);
SmtpMail.SmtpServer = "74.53.152.202";
objMail.To = txtmail.Text.Trim();
objMail.From = "info@g2o.in";
objMail.Body = body;
objMail.Subject = "New Password";
try
{
SmtpMail.Send(objMail);
}
|
|
|
|
|
Check this[^]. I can't see where you are specifying the password and user details for authenticating the server.
|
|
|
|
|
now i m getting this error
The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
|
|
|
|
|
Well, I don't know what caused this issue. What I can tell you is to re-ensure the following points
1 - Check the SMTP server and it is accessible
2 - Check the port
3 - Make sure the address you specified in From exists in the server.
4 - User credentials supplied are correct.
|
|
|
|
|
Error Clearly Says, there is no mail id as you given.
cheers,
Abhijit
|
|
|
|
|
I think the problem is that you are not giving the recipient address correctly. Like the address mentioned: neetu@djsw.com does not exist
|
|
|
|
|
bilal_yousaf_hussain wrote: neetu@djsw.com does not exist
it exists... and as i told i tried many existing ids
|
|
|
|
|
In a Text box control I've written some text which are divided into Three Paragraps....Now I want to save text in database in same paragraph format...so that during display data should be displayed in three paragraphs.
|
|
|
|
|
kbsaha wrote: so that during display data should be displayed in three paragraphs.
It depends on where you are displaying the data. If it is on a Literal or writing to response, you need to replace the \n characters with <br> and \t characters with   . If the text is displaying in the text box itself, you don't need any conversions.
|
|
|
|
|
I'm Displayind the data in a td.
|
|
|
|
|
So you have to replace as I said.
|
|
|
|
|
What I have understood from your question, it totally depends on where you are displaying the data.
Thanks,
Bilal Yousaf Hussain
|
|
|
|
|
Hi,
I am very new to VS 2008. I understand that .NET have the following functionality build in, but I cant seem to find information specific to my problem.
My problem:
I am trying to Delete a row in a Gridview. If the user select the delete button in the row it wants to delete a message must pop up to ask the user if he/she is sure they want to delete the row. If the user clicks yes, the row must be deleted. I understand this must be done in AJAX. I am trying to find information on how I must go about it.
Can anyone please direct me on how I will do this? Your help will be greatly appreciated.
Kind Regards,
Elizma
|
|
|
|
|
Elizma wrote: I am trying to Delete a row in a Gridview. If the user select the delete button in the row it wants to delete a message must pop up to ask the user if he/she is sure they want to delete the row.
For this use a make a javascript function in which use a confirm box if it returns true then delete the row else not.Register this javascript function to every row at rowdatabound function.For deleting the row from the gridview check the link below.
Deleting row from gridview[^]
You can also check this link for your whole solution
Deleting giridview row with confirmation[^]
Cheers!!
Brij
|
|
|
|
|
Thank you so much. You are a life saver!!!!
Kind Regards,
Elizma
|
|
|
|
|
Cheers!!
Brij
|
|
|
|
|
Elizma wrote: I understand this must be done in AJAX
You can do this without using AJAX concepts also. Handle the particular event and rebind the grid after deletion.
If you need to do with AJAX, you can work with XmlHttpRequest and response objects which allows to send request to server pages in AJAX fashion.
Easy alternative for implementing AJAX in ASP.NET is to use ASP.NET AJAX extensions. Download the AJAX toolkit and work with the controls provided in it.
Elizma wrote: ask the user if he/she is sure they want to delete the row
Assuming you will use AJAX toolkit, there is a ModalPopup control available. Use that to get confirmation from user. The Grdiview has to be placed in an UpdatePanel control so that it will be updated without a page refresh.
|
|
|
|
|
Hi,
I need to set the my webrequest as it is originating from a search engine crawler.
So, The server side code can have "true" value for IsCrawler Propety.
I am using WebRequest Class to Make the Request.
Please, I have been searching this for a month.
Thanks,
Nagaraj
|
|
|
|
|
Nagaraj Muthuchamy wrote: I need to set the my webrequest as it is originating from a search engine crawler.
You can cast the WebRequest.Create to a HttpWebRequest object and set the UserAgent property similar to a crawler sets. This[^] paper explains how a crawler is identified. Read this and follow the same format.
|
|
|
|
|
i have an aspx page with few control
i wants its clientid in an external javascript file
how do i get it
i am using vb.net as the code behind
at present in my external js file i have
var tid = document.getElementById("shapedrpdw");
can anybody help
|
|
|
|
|
Seriously Speaking, I am not able to understand your problem. Do you want to pass some controls id to External JS files ?
cheers,
Abhijit
|
|
|
|
|
The reason I ask is that I have found a site in PHP(LAMP) which meets my customer's needs almost perfectly, but I may need to add one more site in the same FTP which has done it in ASP.net as I am a .NET programmer. However, I Would like to convert my project from windowx platform to Linux with the help of mono project.can i sucess it?have any problem at hosting time?Plz reply as soon as possible
By
Soumya
|
|
|
|
|
soumyaraj wrote: can i sucess it
It depends. AFAIK, MONO has implemented till .NET framework 2.0. Having said that, if your application is using any .NET 3.0/3.5 specific classes, it will not work on MONO. You can download a compatibility checking program from their website which will report the possible errors in the conversion.
I'd rather take a new windows hosting where PHP and ASP.NET is supported and migrate the existing PHP website to this new server rather than thinking about MONO.
|
|
|
|
|
i have done it in Asp.net 2.0
|
|
|
|
|
i have the details in dropdown list, when i clicked the submit button it wll reflect in gridview.... anyone can help...
|
|
|
|