Dotnet Developers: Send Mail: WebConfig: < add key = " SMTPHost " value = " 127.0.0.1 " /> < add key = " SMTPPort " value = " 25 " /> Code Behind : ...
crystal reports using stored procedures in asp.net ReportDocument document = new ReportDocument (); document.Load( this .Page.Server.MapPath( "~/CRY/crTest.rpt" )); string str = ConfigurationManager .AppSettings[ "ConnectionString" ]; string server = str.Substring(str.IndexOf( "=" ) + 1, str.IndexOf( ";" ) - (str.IndexOf( "=" ) + 1)); str = str.Substring(str.IndexOf( ";" ) + 1); string database = str.Substring(str.IndexOf( "=" ) + 1, str.IndexOf( ";" ) - (str.IndexOf( "=" ) + 1)); str = str.Substring(str.IndexOf( ";" ) + 1); string user = str.Substring(str.IndexOf( "=" ) + 1, str.IndexOf( ";" ) - (str.IndexOf( "=" ) + 1)); ...
Comments
Post a Comment