Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Tuesday, April 19, 2011

Debug Program avoid Attach Process-c#.net Tips

 
 
If you  need to debug an application in a point where it's difficult to attach debugger manually
 
You can use following code  anywhere in your application
 
System.Diagnostics.Debugger.Break();
 
or
 
#Region
 
System.Diagnostics.Debugger.Break();
 
#Endregion
 
 


--
J.SuThahar MCA 
MicroSoft Technology Specialist
Microsoft Certified ProfessionalDeveloper
www.jsuthahar.tk
09943151415


Wednesday, April 6, 2011

Sending email Sputility in Sharepoint

Configure Email in IIS server:

http://technet.microsoft.com/en-us/library/cc263462.aspx#section2

WebPart Coding:

 SPWeb thisWeb = SPControl.GetContextWeb(Context);
                string toField = "suthahar@gmail.com";
                string subject = "Test Message";
                string body = "Message sent from SharePoint";
                bool success = SPUtility.SendEmail(thisWeb, true, true, toField, subject, body);