Hey hi bhiravan, I hope the line SmtpMail.SmtpServer = "localhost" line creates the main problem. As ur specifying the server name as local host it doesnot allow all the other domain email addresses except your domain.So you need change the server name as "127.1.1.0" which is a global server address and even you need to change the smtp virtual server settings in IIS. Goto start->run->inetmgr where u will get ur IIS settings.right click on the Default smtp server and goto properties,go to Access tab,click on connection tab,then click on Add tab.There you need to enter ip address as 127.1.1.0 then click on ok. Then try it out.I hope now it works. If not let me know.Good luck. :)
josh417
Posts
-
Sending mail from asp.net (C# coding) -
RequiredFieldValidator is not firing?Hi,as of my understanding related to ur message I hope u haven't set any error message property for the RFV control.So u r unable to see any message even after the page post back happens(means the validation done).Try to make it. I hope it helps. If not can u clearly post the question on what ur troubling? :)
-
how to disable back Button in IE using asp.netHi,Try to go through the following link. http://dotnetslackers.com/articles/ajax/HandlingTheBackButtonFromServerCode.aspx hope it helps.
-
TreeView ControlHi,I think you can use two different panels for treeview control and pdf content.According to your requirement you can make those panels set to visible or not.Hopefully this would be the easiest and fast solution for the kind of pdf's you are using. Lets you make a try on this. GoodLuck. :)
-
nested master page problemHi,I hope I understand your problem in a correct way. Here iam giving you the code for two nested master pages and an aspx page which uses these master pages. try it out. 1.User.master as follows. Title
Some content in main master page
runat="server"> Child master page will be placed here...
2.AdminUser.Master as follows(child master page for User as you said and here the Master page file is User.Master). ContentPlaceHolderID="ContentPlaceHolder1">
This is child master page
runat="server" EnableViewState="true"> Contents of pages...
Content in Child master page.
runat="server" EnableViewState="true"> Contents of pages.3.Default.aspx page which uses the master page.(Master Page file is AdminUser.Master) ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
Some content on page
Some content on page
ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
Some content on page