Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot display correct value after database update via webpage

Status
Not open for further replies.

Apache65

Technical User
Jan 30, 2006
16
I have an asp webpage that allows a user to view and update student demographic information that resides in an Access database. I have recently added a yes/no field (checkbox) in the demographics table and modified the webpage to reflect the change/new field.

I can make updates to the table via the webpage, however, when I leave the page then return back to it, the checkbox field is not checked and appears to be set to "no". When I look at this field in the database, the value is set to "yes". Anyone have any ideas as to why the field doesn't display correctly on the webpage?
 
If it's being saved in the DB then it's simply a display issue. Make sure your doing something like this:

Code:
<input type="checkbox" name="Con_Pri_Phone" value="1" <%IF rs("Pri_Phone")="True" then response.write "checked" %>>Primary Phone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top