Results 1 to 3 of 3

Thread: Is there another way??

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Question

    Hello,
    I have this code which opens "checklogin.asp" after I clicked the button.

    My questions is whether I can call a vbscript block of code INSTEAD of posting to another page. IE. When the button is clicked I want to run a piece of VBSCRIPT/ASP code called "update".

    How do I define this block of code in my page?? Is it the same as with javascript??

    <form name="frmcheck" id="frmcheck" method="POST" action="checklogin.asp" align="center">

    'some other code

    <input type="button" value="Update" name="B1">

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Set your action to the same page and have your code wrapped in an if statement that checks the value of your submit/update buttons. Like in your example


    If request.form("B1") = "Update" then
    'etc..etc.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Angry

    Thanks Cander

Posting Permissions

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



Click Here to Expand Forum to Full Width