postback help needed

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Just realized that repopulating with a post back wipes out the value in my
selected changed event. It searches for the first item in the drop down list
, which is
text "Please choose a user name".

another challenge to over come.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top