14 Apr 2010
30 Jul 2010
Link to this post
I tried to place the SQLDataSource control onto the page and then place the gridview control on the page.
When I try to preview the page, I just get an error that the page cannot be displayed. If I take the gridview off of the page, it displays fine. It displays nothing, but at least the page comes up. So, I have two questions:
1) I have a connect string in my web.config file. Can I just use the name of the connection string in the SqlDataSource control or do I have to put in the entire connection string?
2) Other than supplying the ID of the SqlDataSource control in the gridview, is there anything else I need to supply?