should I use isNumeric?

Results 1 to 5 of 5

Thread: should I use isNumeric?

  1. #1
    tabsquare Guest

    Default should I use isNumeric?

    I want to make sure the user has inserted a numeric value in the form text field. I tried out this since I think I heard of that "isNumeric":<BR><BR>If not Request.Form("tablewidth") isNumeric OR not Request.Form("tabledistance") isNumeric Then<BR>Response.Redirect("somepage.asp")<BR><BR>B ut this...naturally doesn&#039;t work.<BR>Can someone correct it or tell me another way to validate the form? <BR><BR>Thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: should I use isNumeric?

    Use a simple javascript to verify that the value is numeric before the submit.

  3. #3
    tabsquare Guest

    Default RE: should I use isNumeric?

    eh, ok, but I was trying to find out how this can be possible with asp. Also, I don&#039;t like that much Java Script....<BR><BR>any suggestion?<BR><BR>thanks

  4. #4
    Richard A. Lowe Guest

    Default RE: should I use isNumeric?

    I&#039;m pretty sure IsNumeric is a function, so:<BR><BR>If IsNumeric(Request.Form("myValue")) Then <BR>&#039; do stuff<BR>End If<BR><BR>

  5. #5
    tabsquare Guest

    Default RE: should I use isNumeric?

    Ok, thanks a lot. I was using it in the wrong way.<BR>thanks

Posting Permissions

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