Hello. I'm working in C#.
I have a form in which I bind data to a grid inside the Page_Load method
(constructor? sorry, don't quite have the lingo yet)
The form also includes a textbox. Depending on what the user types into
the textbx, I repopulate the grid, i.e. rebind new data to it.
I would like not to have to include the following two lines in both
Page_Load and in the event handler I wrote for the text box:
OleDbConnection MyConnection = new OleDbConnection
OleDbCommand MyCommand = new OleDbCommand();
I'm looking to broaden the scope of these declarations to cover both of
the above situations, but don't quite know where to put the
declarations.
Thoughts?
Thanks so much,
Google Jenny
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!