I have been advised that the VS IDE doesn’t ‘close the circle’ when you drop an object on the webform grid and assign a dataset to the object. However, the intellisense in the codebehind page doesn’t seem to give the expected options. Any ideas?
form the book ASP.NET Developer’s Cookbook, the following code is supposed to be placed in the Page_Load block in the codebehind page or in a runat server code block in the .aspx page:
Dim sqlConnection as SqlConnection
Dim sqlAdaptor as SqlDataAdaptor
etc…
when I try this in the codebehind .vb page, intellisense only shows SqlClient{} as the given option in that part of the alphabet-driven choices.
FWIW, my .aspx page has the following entities:
SqlDataAdaptor_SelectAU <– this is the wizard-generated SqlDataAdaptor
SqlConnection_SelectAU <– this is the wizard-generated SqlConnection using wizard-generated Stored Proc to run a Select * statement on the Authors table in pubs
LoadAuthors1 <– this is the wizard-generated DataSet that runs off the SqlConnection
I am presuming I need to insert the correct code in the Page_Load section of the code behind (vb) page but, again, I am not getting very far.
Also, FWIW, the drop-down is assigned to the dataset and is set to display au_lname from the data for display. When I run the project I get a webpage with a drop-down box that does not contain any data.
So, I feel like I am on the right track, but am stuck on this page load() business. I'll continue researching, but any advise is certainly appreciated!
TIA