I am getting some weird behaviour.
This is a bit of aspx in user control I have:
This will only be rendered after an ajax request.
When it is rendered I get some very strange stuff added to the head of my page
Firebug reports:
I tried this in Opera Dragonfly as well.
I cannot find the javascript anywhere else.
Martin
This is a bit of aspx in user control I have:
<Telerik:RadScriptBlock ID="cb1" runat="server"> |
<script type="text/javascript" language="javascript"> |
var myValue = '' |
function getSelectedRowValue() |
{ |
if (myValue) |
return myValue; |
else |
return ''; |
} |
This will only be rendered after an ajax request.
When it is rendered I get some very strange stuff added to the head of my page
Firebug reports:
<link rel="stylesheet" href="\r\n var myValue = \u0027\u0027\r\n function getSelectedRowValue()\r\n {\r\n if (myValue)\r\n return myValue;\r\n else\r\n return \u0027\u0027;\r\n } \r\n function RowSelected(sender"> |
1<html> |
2 <head> |
3 <title>Bad Request</title> |
4 <style> |
5 body {font-family:"Verdana";font-weight:normal;font-size: 8pt;color:black;} |
6 p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} |
7 b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} |
8 h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } |
9 h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } |
10 pre {font-family:"Lucida Console";font-size: 8pt} |
11 .marker {font-weight: bold; color: black;text-decoration: none;} |
12 .version {color: gray;} |
13 .error {margin-bottom: 10px;} |
14 .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } |
15 </style> |
16 </head> |
17 <body bgcolor="white"> |
18 |
19 <span><h1>Server Error in '/SafetyTortilla' Application.<hr width=100% size=1 color=silver></h1> |
20 |
21 <h2> <i>HTTP Error 400 - Bad Request.</i> </h2></span> |
22 |
23 <hr width=100% size=1 color=silver> |
24 |
25 <b>Version Information:</b> ASP.NET Development Server 8.0.0.0 |
26 |
27 </font> |
28 |
29 </body> |
30</html> |
31 |
</link> |
I tried this in Opera Dragonfly as well.
I cannot find the javascript anywhere else.
Martin