Problems with dropdownlist refreshing

gongonzabarfarbin

New member
Joined
Mar 7, 2007
Messages
1
Programming Experience
3-5
Hey guys, how goes it.
I'm a bit new to both these forums and .Net programming.
However, recently I got hired as an entry level VB.net programmer.
Anyways, I've been working on a problem for a while now and have no idea how to get around it.

Well what is happening is I am programming a web page.
On load, the page populates a dropdownlist with information from a database.
I specify the value and the name under asp and DataBind it in the Vb.net backend.

The User then fills out a lot of mumbo jumbo and when (s)he is finished, (s)he clicks the submit button. This should enter all their information into a database.

The problem is that whenever the user hits the submit button, the page fires a refresh and automatically reloads the data back into the dropdownlist. It then takes whatever is first in that dropdownlist and then submits that information to the database. How would I make it so that it only submits whatever was selected? Or perhaps is there a way so that I can only call the function that loads the information into the dropdownlist once?

Thank you.
 
Back
Top