Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: Spellchecker not working within asp:UpdatePanel and another Panel where the visibility="false"
Re: Spellchecker not working within asp:UpdatePanel and another Panel where the visibility="false"
03-30-2010, 10:32 PM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Spellchecker not working within asp:UpdatePanel and another Panel where the visibility="false"
Reply
Quote
Hi
mokeyb
,
Try this way
<%@ Page Language=
"VB"
AutoEventWireup=
"false"
%>
<%@ Register
Assembly
=
"AjaxControlToolkit"
Namespace
=
"AjaxControlToolkit"
TagPrefix=
"ajaxToolkit"
%>
<%@ Register TagPrefix=
"CE"
Namespace
=
"CuteEditor"
Assembly
=
"CuteEditor"
%>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<script runat=
"server"
>
Public
loaderName
As
String
Protected
Overloads
Overrides
Sub
OnInit(
ByVal
e
As
EventArgs)
MyBase
.OnInit(e)
Dim
browser
As
System.Web.HttpBrowserCapabilities = Request.Browser
Dim
browserName
As
String
= browser.Browser
Select
Case
browserName
Case
"IE"
loaderName =
"IE_Loader"
Exit
Select
Case
"Firefox"
loaderName =
"Gecko_Loader"
Exit
Select
Case
"AppleMAC-Safari"
loaderName =
"Safari_Loader"
Exit
Select
Case
"Opera"
loaderName =
"Opera_Loader"
Exit
Select
Case
Else
Exit
Select
End
Select
End
Sub
Protected
Sub
LinkButton1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
TestPnl.Visible =
True
End
Sub
</script>
<script src=
"CuteSoft_Client/CuteEditor/Scripts/spell.js"
></script>
<script src=
"CuteSoft_Client/CuteEditor/Scripts/<%=loaderName %>/Loader.js"
></script>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head id=
"Head1"
runat=
"server"
>
<title></title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<div>
<ajaxToolkit:ToolkitScriptManager runat=
"Server"
ID=
"ScriptManager1"
/>
<asp:UpdatePanel ID=
"EditUpdPnl"
runat=
"server"
>
<ContentTemplate>
<asp:Panel ID=
"TestPnl"
runat=
"server"
Visible=
"false"
>
<CE:Editor ID=
"Editor1"
runat=
"server"
/>
</asp:Panel>
<asp:LinkButton ID=
"LinkButton1"
runat=
"server"
OnClick=
"LinkButton1_Click"
>Show</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
Regards,
ken
View Complete Thread