Category: asp.net 2

Simple Data Access Class for Access database

Simple Data Access Class for Access database

After little time i have to wrote a simple data access layer for MS Access database, For Connection string I wrote a simple Util Class as using System; using System.Collections.Generic; using System.Linq; using System.Web;...

how to send mail smtp with authentication with web.mail class

how to send mail smtp with authentication with web.mail class

hi i used following code MailMessage message = new MailMessage(); message.To = “myemailaccount@yahoo.com”; message.From = “myemailaccount@thecrystalrosary.com”; message.Subject = “Testing Internet SmtpMail”; message.BodyFormat = MailFormat.Html; message.Body = “body”; message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/smtpserver”, “smtp.thecrystalrosary.com”); message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/smtpserverport”, 25); message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/sendusing”, 2); //2...

parameter passing to crystal report object

parameter passing to crystal report object

When you have to send parameter form asp.net code behind to crystal report then kindly used this syntex or statement to achieve the task for example  ReportObjectVariable.SetParameterValue(ParmeterName,value) for example if  rpt is my report...

How to get uploaded image dimensions in asp.net

How to get uploaded image dimensions in asp.net

I used following code to get uploaded image dimensions . Where flLogoUplaoded is name of asp .net file uploaded control at my application string UploadedImageType = flLogoUpload.PostedFile.ContentType.ToString().ToLower(); string UploadedImageFileName = flLogoUpload.PostedFile.FileName; //Create an image...

Session vs ViewState

Session vs ViewState

Session State is useful for storing values that must be persisted across multiple pages by the same user. ViewState is useful for storing serializable data that must be persisisted across PostBacks by a single...