|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi All,
In the body of my asp page I have : <input style="LEFT: 800px; WIDTH: 95px; POSITION: absolute; TOP: 485px; HEIGHT: 24px" type=button value='Delete' name=deleteButton onclick=<%agentDelete();%> size=31> and in the Head section I have a Sub called agentDelete() In it's current form above when I go into the page I receive an 'Expected end of statement' error. If I place the onclick in quotes, I then get a typemismatch error. The input line above is hardcoded into the body of the page. In other forms I have the same syntax, but it gets built from the server and they all work fine. I'm not building this from the server because it's a different form. Thanks |
|
#2
|
|||
|
|||
|
If you are trying to run a ASP Sub, you cannot do that as you are doing here. they cannot be invoked on an event. They are supposed to run on the server not on the client page.
If you want some thing to happen on the client, you have to have a Client script function. Hope that helps ASPMAN
__________________
If you ask a question you are a fool for a second. But if you dont ask, you are a fool for a life time. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > errors on page load |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|