N
ned.balzer
Hi,
I am hoping someone has some sample code which would do this. For
example, assume a simple detailsview that shows a Name, address, city,
state, zipcode and date of entry. When the detailsview is in insert
mode, all of the fields will be blank and editable; when the form is
filled out the fields' contents are written to the database table. But
I'd want the name to be drawn by default from a session variable, the
date of entry to display today's date, and the state to be a dropdown
with 50 states, from AK to WY. So I'd need to prepopulate the date
(with Today()), the name (with Session("name")) and the state dropdown
(with a query to a database table).
Is this difficult to do in asp.net 2.0? Is it even possible?
Thanks in advance.
NB
I am hoping someone has some sample code which would do this. For
example, assume a simple detailsview that shows a Name, address, city,
state, zipcode and date of entry. When the detailsview is in insert
mode, all of the fields will be blank and editable; when the form is
filled out the fields' contents are written to the database table. But
I'd want the name to be drawn by default from a session variable, the
date of entry to display today's date, and the state to be a dropdown
with 50 states, from AK to WY. So I'd need to prepopulate the date
(with Today()), the name (with Session("name")) and the state dropdown
(with a query to a database table).
Is this difficult to do in asp.net 2.0? Is it even possible?
Thanks in advance.
NB