|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
What is wrong with this code
Hello, canīt make this work
Response.write"<table class='form'> Response.write"<tr>" Response.write"<td Class='form'><a href='onClick='javascript:history.back(-1)';'>option1</a>" Response.write"</tr>" Response.write"<tr>" Response.write"<td Class='form'><a href='onClick='javascript ocument.close()';'>Option2</a>"Response.write"</tr>" Response.write"</table>" it give: HTTP 404 - File not found.... some one please...
__________________
atferraz |
|
#2
|
|||
|
|||
|
Because of this...
Response.write"<table class='form'> Response.write"<tr>" the syntax for Response.write is this: Response.Write "xxx" It basically means, please write what's between my double quotes... And you didn't close your first Response.Write look Response.write"<table class='form'> See it? it's missing a double quote at the end, to close your Response.Write! Now try again...and also try an put them in different lines for your sake Here try this: ------------------------------------------------------ Response.write "<table class=""form"">" & vbcrlf Response.write "<tr>" & vbcrlf Response.write "<td class=""form""><a href=""javascript: history.back(-1);"">option1</a></td>" & vbcrlf Response.write "</tr>" & vbcrlf Response.write "<tr>" & vbcrlf Response.write "<td class=""form""><a href=""javascript: document.close();"">option2</a></td>" & vbcrlf Response.write"</tr>" & vbcrlf Response.write"</table>" & vbcrlf ------------------------------------------------------ Hope this helps! Sincerely Vlince |
|
#3
|
|||
|
|||
|
thanks vince
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > What is wrong with this code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|