or
Uncaught exception: TypeError: Cannot convert '$find('ctl00_MainContent_RadWindow_ContentTemplate')' to object
Error thrown at line 3, column 12 in openWinContentTemplate() in http://localhost:44012/Proje/DetailProject.aspx?OZ=kCpkEBX9+M1Y7eX6gwenmA==:
$find('ctl00_MainContent_RadWindow_ContentTemplate').show();
called from line 1, column 0 in <
anonymous
function>(event):
openWinContentTemplate();
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"HeadContent"
runat
=
"Server"
>
<
script
type
=
"text/javascript"
>
function openWinContentTemplate() {
$find('<%= RadWindow_ContentTemplate.ClientID %>').show();
}
</
script
>
</
asp:Content
>
<
telerik:RadWindow
runat
=
"server"
ID
=
"RadWindow_ContentTemplate"
Modal
=
"true"
>
<
ContentTemplate
>
Test!
</
ContentTemplate
>
</
telerik:RadWindow
>
<
InlineEditTemplate
>
<
div
id
=
"InlineEditTemplate"
>
<
span
>
<
asp:TextBox
ID
=
"TitleTextBoxUpdate"
runat
=
"server"
Text='<%# Bind("Subject") %>'
Width="90%" TextMode="MultiLine" Height="20px"></
asp:TextBox
>
<
telerik:RadButton
ID
=
"UpdateButton"
runat
=
"server"
CommandName
=
"Update"
Text
=
"Actualizar"
>
</
telerik:RadButton
>
<
telerik:RadButton
ID
=
"UpdateCancelButton"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
Text
=
"Cancelar"
>
</
telerik:RadButton
>
<
asp:Button
ID
=
"UpdateButton2"
runat
=
"server"
CommandName
=
"Update"
Text
=
"Actualizar"
/>
<
asp:Button
ID
=
"UpdateCancelButton2"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
Text
=
"Cancelar"
/>
<
asp:LinkButton
ID
=
"EditMoreButton"
runat
=
"server"
CommandName
=
"More"
>Más Opciones</
asp:LinkButton
>
</
span
>
</
div
>
</
InlineEditTemplate
>
Hi
How can I get the content of an html file along with an ‘I Accept’ button in the RadWindow?
Many Thanks
Regards
<
asp:ScriptManager
ID
=
"sm"
runat
=
"server"
>
</
asp:ScriptManager
>
<
asp:UpdatePanel
ID
=
"upTest"
runat
=
"server"
UpdateMode
=
"Conditional"
>
<
ContentTemplate
>
<
asp:UpdatePanel
ID
=
"upPostBack"
runat
=
"server"
UpdateMode
=
"Conditional"
>
<
ContentTemplate
>
<
asp:Button
ID
=
"btnPostBack"
runat
=
"server"
Text
=
"Post Back"
OnClick
=
"btnPostBack_Click"
/>
<
asp:Label
ID
=
"lblPostBack"
runat
=
"server"
></
asp:Label
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
<
asp:UpdatePanel
ID
=
"upc"
runat
=
"server"
UpdateMode
=
"Conditional"
>
<
ContentTemplate
>
<
telerik:RadCaptcha
CssClass
=
"rcPanel"
runat
=
"server"
IgnoreCase
=
"true"
CaptchaImage-UseRandomFont
=
"false"
CaptchaImage-TextChars
=
"LettersAndNumbers"
CaptchaImage-RenderImageOnly
=
"true"
ID
=
"capSignup"
ValidationGroup
=
"valSignup"
ValidatedTextBoxID
=
"txtCaptcha"
ErrorMessage
=
"error"
IsValid
=
"true"
>
</
telerik:RadCaptcha
>
<
asp:TextBox
runat
=
"server"
ID
=
"txtCaptcha"
validateexp
=
"required,errMsg:Enter the above code"
ValidationGroup
=
"valSignup"
></
asp:TextBox
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
<
asp:Button
ID
=
"btn"
runat
=
"server"
OnClick
=
"btn_Click"
Text
=
"Submit"
ValidationGroup
=
"valSignup"
/>
<
asp:Label
ID
=
"lbl"
runat
=
"server"
></
asp:Label
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
protected
void
btn_Click(
object
sender, EventArgs e)
{
capSignup.Validate();
Page.Validate();
if
(capSignup.IsValid)
lbl.Text=
"Valid"
;
else
lbl.Text =
"In Valid"
;
}
protected
void
btnPostBack_Click(
object
sender, EventArgs e)
{
lblPostBack.Text = DateTime.Now.ToShortTimeString();
}