hi,
switch between normal/html view will not causes the page post back, can you try on demo http://cutesoft.net/example/general.aspx ? do you get the same issue on it?
and please create a example page with the code below and test it under your site, does it gets the same issue too? when this example page load, the lable will shows 1, if you do a post back by the button, it will shows 2. you can try the same with by switch between normal/html button, does the label text be changed too?
- <%@ Page Language="C#" ValidateRequest="false" %>
-
- <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
-
- <script runat="server">
-
- protected void Page_Load(object sender, EventArgs e)
- {
- int number = 2;
- if (!IsPostBack)
- {
- number = 1;
-
- }
- label1.Text = number.ToString();
- }
- </script>
-
- <html>
- <head>
- <title>example </title>
- </head>
- <body>
- <form id="Form1" runat="server">
- <CE:Editor ID="editor1" runat="server">
- </CE:Editor>
- <asp:Button ID="button1" runat="server" Text="do a post back" /><br />
- <asp:Label ID="label1" runat="server"></asp:Label>
- </form>
- </body>
- </html>
Regards,
Ken