Hello.
Any time I put a ScriptManager in my login page, I get this error message Uncaught SyntaxError: Unexpected token '<' and my login control does not get decorated.
What can it be?
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Login.aspx.vb" Inherits="SmartERP.Login" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
meta
http-equiv
=
"Content-Type"
content
=
"text/html; charset=utf-8"
/>
<
title
>Smart-ERP</
title
>
<
script
type
=
"text/javascript"
>
function GetWndSize() {
var w = screen.width;
var h = screen.height;
document.getElementById('TxtOcultoWidth').value = w;
document.getElementById('TxtOcultoHeight').value = h;
}
</
script
>
</
head
>
<
body
onload
=
"GetWndSize()"
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
/>
<
asp:TextBox
runat
=
"server"
ClientIDMode
=
"Static"
ID
=
"TxtOcultoWidth"
EnableViewState
=
"true"
style
=
"display:none"
/>
<
asp:TextBox
runat
=
"server"
ClientIDMode
=
"Static"
ID
=
"TxtOcultoHeight"
EnableViewState
=
"true"
style
=
"display:none"
/>
<
telerik:RadFormDecorator
RenderMode
=
"Lightweight"
ID
=
"RadFormDecorator1"
runat
=
"server"
DecoratedControls
=
"All"
DecorationZoneID
=
"DivDecorar"
/>
<
div
id
=
"DivDecorar"
>
<
asp:Table
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
>
<
asp:TableRow
>
<
asp:TableCell
HorizontalAlign
=
"Center"
>
<
asp:Image
ID
=
"Image2"
runat
=
"server"
ImageUrl
=
"~/images/SE-logo.png"
/>
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
>
<
asp:TableCell
HorizontalAlign
=
"Center"
>
<
telerik:RadLabel
ID
=
"LblMensaje"
Font-Size
=
"Larger"
ForeColor
=
"#ff9900"
Font-Bold
=
"false"
runat
=
"server"
Text
=
"ola khe ase"
Skin
=
"Material"
Visible
=
"false"
></
telerik:RadLabel
>
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
Width
=
"100%"
Height
=
"100%"
>
<
asp:TableCell
Width
=
"100%"
Height
=
"100%"
HorizontalAlign
=
"Center"
>
<
asp:Login
ID
=
"Login1"
runat
=
"server"
DisplayRememberMe
=
"false"
LoginButtonText
=
"Ingresar"
UserNameLabelText
=
"Usuario:"
></
asp:Login
>
</
asp:TableCell
>
</
asp:TableRow
>
</
asp:Table
>
</
div
>
</
form
>
</
body
>
</
html
>