Click to See Complete Forum and Search --> : 1)vbscript sample code to check is a check in a web page is checked


mpoincare
January 14th, 2003, 09:39 PM
I have a checkbox control in a web page. I want to have a vbscript (or ASP) sample about how to verify if it's been checked.

Also I want to have a vbscript(or ASP) sample code about how to refer to the content of a textbox portion of a dropdown list in a web page.

columbus2003
January 14th, 2003, 10:33 PM
Do you want coding for server side or client side?

For client-side
function isCheck(checkBoxID)
isCheck = document.all(checkBoxID).checked
end function


For server-side
<INPUT TYPE="CHECKBOX" NAME="chkSavePass" VALUE="Save">
<%if Request.Form("chkSavePass")= "Save" then
'.................
end if
%>