Go to a sub from an input line

Results 1 to 2 of 2

Thread: Go to a sub from an input line

  1. #1
    Join Date
    Dec 1969

    Default Go to a sub from an input line

    Is there a way to go to a subroutine from an input button? for example:<BR><BR>&#060;input name="test" type="submit" value="test" onclick="printme"&#062;<BR><BR>Sub printme<BR>Response.Write "you made it"<BR>End Sub

  2. #2
    Steve Cimino Guest

    Default RE: Go to a sub from an input line

    Kinda... but not the way you&#039re doing it.<BR><BR>For all intents and purposes, pretend that by the time you see the page, ALL ASP code has already executed, and has ridden off into the sunset. So, you cannot access a sub in ASP through client side events.<BR><BR>You could make it a client side function, and then do what you&#039re doing (no &#060;%%&#062; or response objects). Also, you may want to change the code to JavaScript for more universal browser support.

Posting Permissions

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