|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
I have a problem (again), I have a simple PushButton in my page and I want an event to ocur when I click it.
I know I can use this in a form with a submitButton, But then the page has to reload. I also know I can get this event with VBScript. Example: " <script language="vbscript"> Sub b3_Onclick() document.write "Hello" End Sub </script> <input type="button" value="button" name="b3"> </form> " But this dosen't help me because I want to execute ASP statments and functions, So the bottom line is - Can I make an event ocur in an ASP script? Thanks, Ben. P.S. I also tried to put the "Sub b3_Onclick" In ASP tags (<%%>) But It simply didn't work... |
|
#2
|
|||
|
|||
|
what you are using is client-side vbscript. your asp is server-side vbscript. it doesn't work that way. if you want to execute script you will have to either make client-side or submit the page to an asp page where you can run server-side script.
__________________
Programmer's Corner |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Controls Events |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|