Form Variable's Input Type

Results 1 to 3 of 3

Thread: Form Variable's Input Type

  1. #1
    Join Date
    Dec 1969

    Default Form Variable's Input Type

    How can I evaluate a form variable&#039;s input type in ASP?<BR><BR>Thanks in Advance

  2. #2
    Join Date
    Dec 1969

    Default RE: Form Variable's Input Type

    You have to do it using client side JS then send it up to ASP:<BR><BR>// Javascript<BR>FormBoxType = document.forms.MyForm.MyBoxName.type<BR>document.l ocation = &#039;TheAsp.asp?FormType=&#039; + FormBoxType + &#039;&FormValue=&#039; + document.forms.MyForm.MyBoxName.value<BR>

  3. #3
    Join Date
    Dec 1969

    Default Code it into Name

    Use Hungarian notation. The first the letters tell you what it is:<BR><BR>txtInputTypeText<BR>selSelectBox<BR>chk Checkbox<BR>radRadioButton<BR>hidHiddenField<BR>ta rTextArea (hmm... this doesn&#039;t sound right, what would you use? txt is what I normally use.)<BR><BR>-Doug<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts