G
Guest
Hi,
I am writing a web app in C#.
I have a webform with a drop down list box that is populated with user names.
I load this only on if not is a postback, which means it only loads the
first time user
visits the page.
this same page contains controls and the code to create a new user account.
When a new user is created I would like to reload the drop down list because
it will now have an additional user.
It is also a multi user app, so that means other people need to know of the
new user in the drop down.
I was thinking of either always reloading just the drop down list on post
back, which causes a hit on database
or.
append a new line item to bottom of the drop down list, the new user will
appear at the bottom but not in the order when normally database queried.
which is better solution, more professional, friendly, or is there an even
better way?
thanks
Chris
I am writing a web app in C#.
I have a webform with a drop down list box that is populated with user names.
I load this only on if not is a postback, which means it only loads the
first time user
visits the page.
this same page contains controls and the code to create a new user account.
When a new user is created I would like to reload the drop down list because
it will now have an additional user.
It is also a multi user app, so that means other people need to know of the
new user in the drop down.
I was thinking of either always reloading just the drop down list on post
back, which causes a hit on database
or.
append a new line item to bottom of the drop down list, the new user will
appear at the bottom but not in the order when normally database queried.
which is better solution, more professional, friendly, or is there an even
better way?
thanks
Chris