Can I change databases for a SqlDataSource in code behind and still use the edit,inset,delete capabilities of the SQLDataSource control?
yes u can..
for change of connection string
SqlDataSource1.ConnectionString =ConfigurationManager.ConnectionStrings[0].ToString();
or
SqlDataSource1.ConnectionString ="UR connection string";
No comments:
Post a Comment