|
-
Jun 23rd, 2003, 09:51 PM
#1
Thread Starter
Hyperactive Member
bug in asp.net
i think i found a bug in asp.net, it stops compiling if it sees </script> anywhere in the code part of the file. i am using it because i am using response.write to append a javascript thing if certain conditions are met.
My monkey wearing the fedora points and laughs at you.
-
Jun 23rd, 2003, 09:52 PM
#2
Thread Starter
Hyperactive Member
the reason for this i see is that it uses </script> to stop the code section..... what should i do?
My monkey wearing the fedora points and laughs at you.
-
Jun 23rd, 2003, 09:56 PM
#3
Thread Starter
Hyperactive Member
ok i thought of something and it worked, i just did chr(60) for <
My monkey wearing the fedora points and laughs at you.
-
Jun 23rd, 2003, 11:28 PM
#4
PowerPoster
Hmm that seems odd. I dont see why that would cause it to freeze up. I mean it is just a string.
If you say
Response.Write ("<script = javascript>asdasd</script>")
I can't imagine why that would cause a problem.... it is just a string like any other string.
Maybe if you put
Response.write (<script = javascript>asdasd</script>)
then i could see why it would.
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

-
Jun 24th, 2003, 05:01 AM
#5
Frenzied Member
I use javascripts with response.write and it works fine. Like this:
Response.Write("<script = javascript>alert('This is a JavaScript')</script>")
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Jun 24th, 2003, 08:00 AM
#6
Thread Starter
Hyperactive Member
well i did have it in quotations, i don't know why it wasn't working, anyways i did the chr(60) thing and it all works now
My monkey wearing the fedora points and laughs at you.
-
Jul 3rd, 2003, 07:52 AM
#7
Member
I've had the same problem. ASP.NET seems to do this when processing code in a <script runat="server"> block. <% ... %> blocks seem to work fine. Definitely smells like bug to me...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|