SHARE
TWEET

Untitled

a guest Jan 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string connectionString = BLTutela.BLclsDatabaseConfigurations.GetDefaultConnectionString();
  2. dataSource.ConnectionString = connectionString;
  3. dataSource.SelectParameters["ReportFromDate"].DefaultValue = reportFromDateValue.Date.ToString();
  4. ...            
  5. GridView1.DataSource = dataSource;
  6. GridView1.DataBind();
  7.    
  8. <connectionStrings>
  9.  <add name="ConnectionString" connectionString="Data Source=;Initial Catalog=;Persist Security Info=True;User ID=;Password=;Connect Timeout=200" providerName="System.Data.SqlClient"/>
  10. </connectionStrings>
  11.    
  12. protected void SqlDataSource1_Selecting(object sender,
  13. SqlDataSourceSelectingEventArgs e)
  14. {
  15.    e.Command.CommandTimeout = 200;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top