C
Chris
Hi,
Am developing a web form in asp.net using C#.
I have a drop down list box. that will contain usernames on the web page.
I have a user control in the page that contains 5 dropdown list boxes.
I'd like to create a function or procedure in the proper place that can be
called 6 times on page load event.
I believe i will pass to the procedure: 1.the connection string to database,
2. the store procedure (SQL 2000), 3. the and some other variables possibly
to determine which columns to include in the drop down list.
If I also pass the actual dropdownlist to the procedure as an object will it
become populated inside the procedure?
should this procedure simply return a dataset to be used later? or should it
also
include actually binding the data to the passed in drop down list object?
I'd appreciate analysis of this particular challenge from an object oriented
perspective.
thanks
Chris
Am developing a web form in asp.net using C#.
I have a drop down list box. that will contain usernames on the web page.
I have a user control in the page that contains 5 dropdown list boxes.
I'd like to create a function or procedure in the proper place that can be
called 6 times on page load event.
I believe i will pass to the procedure: 1.the connection string to database,
2. the store procedure (SQL 2000), 3. the and some other variables possibly
to determine which columns to include in the drop down list.
If I also pass the actual dropdownlist to the procedure as an object will it
become populated inside the procedure?
should this procedure simply return a dataset to be used later? or should it
also
include actually binding the data to the passed in drop down list object?
I'd appreciate analysis of this particular challenge from an object oriented
perspective.
thanks
Chris