Hi,
I have a simple web form written in vb.net that allows you to edit some information. (The back end is SQL Server) and i am using Visual studio 2003.
at the moment, you select a value from a drop down list and the corresponding fields are populated with values based upon teh selection. This works fine for an edit or a delete.
however, I would like to know if it is possible to swap the drop down menu for a standard text field when i add a new record to the database. i.e. when i click 'Add new record' the form posts back on itself and the drop down is replaced by the text field, and the other text boxes are blank.
I know i can do it by copying the said form and creating a new one but it seems like overkill for one control.
any suggestions on what techniques or clever approaches can allow me to do this? i think that if i was doing this in Access I could simply type over the top of the drop down , but not sure if you can do this in a web control.
thanks in advance,
MrPeds
I have a simple web form written in vb.net that allows you to edit some information. (The back end is SQL Server) and i am using Visual studio 2003.
at the moment, you select a value from a drop down list and the corresponding fields are populated with values based upon teh selection. This works fine for an edit or a delete.
however, I would like to know if it is possible to swap the drop down menu for a standard text field when i add a new record to the database. i.e. when i click 'Add new record' the form posts back on itself and the drop down is replaced by the text field, and the other text boxes are blank.
I know i can do it by copying the said form and creating a new one but it seems like overkill for one control.
any suggestions on what techniques or clever approaches can allow me to do this? i think that if i was doing this in Access I could simply type over the top of the drop down , but not sure if you can do this in a web control.
thanks in advance,
MrPeds