Click here to Skip to main content
16,012,028 members
Home / Discussions / Web Development
   

Web Development

 
GeneralTrace and Performance Pin
Mauricio Ritter16-Sep-02 4:02
Mauricio Ritter16-Sep-02 4:02 
GeneralRe: Trace and Performance Pin
Anonymously16-Sep-02 4:17
Anonymously16-Sep-02 4:17 
GeneralRe: Trace and Performance Pin
Mauricio Ritter16-Sep-02 4:22
Mauricio Ritter16-Sep-02 4:22 
Generalmultiple values from checkbox Pin
mcm16-Sep-02 3:57
mcm16-Sep-02 3:57 
GeneralRe: multiple values from checkbox Pin
Jeremy Falcon16-Sep-02 5:24
professionalJeremy Falcon16-Sep-02 5:24 
GeneralYes/No checkbox Pin
mcm15-Sep-02 22:39
mcm15-Sep-02 22:39 
GeneralRe: Yes/No checkbox Pin
Jeremy Falcon16-Sep-02 5:04
professionalJeremy Falcon16-Sep-02 5:04 
GeneralRe: Yes/No checkbox Pin
Paul Watson16-Sep-02 6:09
sitebuilderPaul Watson16-Sep-02 6:09 
mcm wrote:
How do i code so teh checkbox in the database is checked if "yes" and left unchecked if "no"?

Not sure if Jeremy answered your question as I think you are asking for how to do it the other way, right?

Basically when you pull the yes/no value from the database you do something like the following in your ASP page:
<input type="checkbox" name="chkYesNo" <%If rs("field") = "yes" Then%>checked="true"<%end if%> />

Inlining ASP is not a good idea, but that is one way to do it. You could also use JavaScript with the OnLoad event.

Paul Watson
Bluegrass
Cape Town, South Africa

GeneralWeb developing in VS.NET Pin
Philip Patrick15-Sep-02 3:53
professionalPhilip Patrick15-Sep-02 3:53 
GeneralRe: Web developing in VS.NET Pin
Philip Patrick15-Sep-02 10:49
professionalPhilip Patrick15-Sep-02 10:49 
GeneralSolved Pin
Philip Patrick15-Sep-02 11:32
professionalPhilip Patrick15-Sep-02 11:32 
GeneralHidding horizontal scroll bars Pin
alex.barylski13-Sep-02 14:06
alex.barylski13-Sep-02 14:06 
GeneralRe: Hidding horizontal scroll bars Pin
Paul Watson14-Sep-02 1:14
sitebuilderPaul Watson14-Sep-02 1:14 
GeneralRe: Hidding horizontal scroll bars Pin
alex.barylski14-Sep-02 13:58
alex.barylski14-Sep-02 13:58 
GeneralThe View State is invalid for this page and might be corrupted Pin
Nemanja Trifunovic13-Sep-02 11:56
Nemanja Trifunovic13-Sep-02 11:56 
QuestionAre there many perl gurus out here? Pin
brianwelsch13-Sep-02 9:26
brianwelsch13-Sep-02 9:26 
GeneralRestricting file access Pin
Not Active13-Sep-02 5:37
mentorNot Active13-Sep-02 5:37 
GeneralRe: Restricting file access Pin
Paul Watson13-Sep-02 6:07
sitebuilderPaul Watson13-Sep-02 6:07 
GeneralRe: Restricting file access Pin
Not Active13-Sep-02 6:32
mentorNot Active13-Sep-02 6:32 
QuestionWhat is wrong? Pin
Rickard Andersson2013-Sep-02 4:02
Rickard Andersson2013-Sep-02 4:02 
AnswerRe: What is wrong? Pin
Paul Watson13-Sep-02 4:44
sitebuilderPaul Watson13-Sep-02 4:44 
GeneralRe: What is wrong? Pin
Paul Riley13-Sep-02 5:39
Paul Riley13-Sep-02 5:39 
GeneralRe: What is wrong? Pin
Paul Watson13-Sep-02 5:43
sitebuilderPaul Watson13-Sep-02 5:43 
GeneralRe: What is wrong? Pin
Rickard Andersson2013-Sep-02 7:51
Rickard Andersson2013-Sep-02 7:51 
GeneralRe: What is wrong? Pin
Rickard Andersson2013-Sep-02 8:23
Rickard Andersson2013-Sep-02 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.