Adam:
Please try my following test aspx, scroll down the page and click the Button2.
You will see the position was changed and it jumping up-and-down twice.
Thanks.
Alex
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default1.aspx.cs" Inherits="CuteEditorTest2._Default1"
MaintainScrollPositionOnPostback="true"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<table border="1" cellpadding="1" style="width: 100%">
<tr>
<td style="width: 50%">
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
</td>
<td >
</td>
<td >
</td>
</tr>
<tr>
<td >
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" Height="200px" Width="100%"></asp:TextBox>
</td>
<td >
<asp:Button ID="Button3" runat="server" Text="Button" OnClick="Button1_Click" /></td>
<td >
</td>
</tr>
</table>
<h1>Ajax Support Sample</h1>
<p style="width:760px;">To run this example, you need to install Microsoft ASP.NET AJAX on your server.</p>
<br>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
UpdatePanel
<asp:Label ID="Label1" runat="server" Text="Panel created."></asp:Label><br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
<br>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<CE:Editor id="Editor1" AutoConfigure="Simple" runat="server" ></CE:Editor><br />
</ContentTemplate>
</asp:UpdatePanel>
<!-- ///////////////////////////////////////////////////////////////// -->
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="200px" Width="100%" ></asp:TextBox>
<asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<CE:Editor id="Editor2" runat="server" ></CE:Editor>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
|