Guest User

Untitled

a guest
Jan 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment