18 Mar 2010, 6:25 AM
|
Dua
Joined on 03-08-2010
Posts 13
|
Re: Problem with Ajax update panel and editor
|
|
|
|
| Hi,
This is my sample code...i send web app via email but no reply that's why i copying code in this post....
Source code:
<div> <asp criptManager ID="ScriptManager1" runat="server"> </asp criptManager> Text will only display in both the editors when we allow fill post back<asp:Button ID="Button3" runat="server" Text="Full Post Back" /> <br /> <br /> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <div style="border-style: solid; border-width: 1px"> <b>Update Panel 2<br /> </b> <br /> </div> </ContentTemplate> </asp:UpdatePanel> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <div style="border-style: solid; border-width: 1px"> <b>Update Panel 1</b><br /> <div style="width: 700px;padding-left: 50px"> Ultimate Editor1:<kswc:UltimateEditor ID="UltimateEditor1" runat="server"> </kswc:UltimateEditor> </div> <br /> Write text in Ultimate editor1 and Save it and than clear it: <asp:Button ID="Button1" runat="server" Text="Save" /> <br /> <br /> Retrieve the Text Save from Ultimate Editor1 allowing partial postback and display in Ultimate Editor1:<asp:Button ID="Button2" runat="server" Text="Retrieve" /> </div> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="Button5" EventName="Click" /> </Triggers> </asp:UpdatePanel> <br /> <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional"> <ContentTemplate> <div style="border-style: solid; border-width: 1px"> <b> Update Panel 3 <br /> Ultimate Editor2:<br /> <div style="width: 823px; padding-left: 50px"> <b> <kswc:UltimateEditor ID="UltimateEditor2" runat="server"> </kswc:UltimateEditor> <b> <br /> Place the same text in Ultimate Editor2 as in Ultimate Editor1, allowing partial post back:<asp:Button ID="Button5" runat="server" Text="Retrieve text " /> </b></b> <br /> </div> </b> </div> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="Button2" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="Button3" EventName="Click" /> </Triggers> </asp:UpdatePanel> <br /> <br /> </div>
VB Code: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ViewState("editor") = UltimateEditor1.EditorHtml UltimateEditor1.EditorHtml = "" End Sub
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click, Button3.Click, Button5.Click If ViewState("editor") IsNot Nothing Then UltimateEditor1.EditorHtml = ViewState("editor") UltimateEditor2.EditorHtml = ViewState("editor") End If End Sub
Problem is:
I want same Text as in 'ultimate editor1' to be display in Ultimate Editor 2 using partial post back but Ultimate Editor2 remains blank. But when i do a full post back than it display text both in Ultimate Editor1 and Ultimate Editor2. Can you please sort it whats the problem is. And i using Ultimate Editor 3.6 and setup file Ultimate Editor 435....
Thanks | |
|
|
|
|
|
|
|
|
|