Hello
In my my application I have created Training .aspx page in that page i have used usercontrol Mydocument.ascx in that user control i have used telerik RadEditor Control but i want my page scroll position set to Top I have written following javascript code on Training.aspx page and also Mydocument.ascx page but when I browse This page in IE-8 Page scroll position is set to the Cursor Position of Rad Editor but I want to show my page from Top I want my page scroll position should be top so I have used Following Javascript Code it works fine in Other browser but in IE-8 after page load scroll position is set according to cursor position of radEditor
<script type="text/jscript">
var xPos, yPos;
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_beginRequest(BeginRequestHandler);
prm.add_endRequest(EndRequestHandler);
function BeginRequestHandler(sender, args) {
xPos = $('#<%=reContent.ClientID %>').scrollLeft;
yPos = $('#<%=reContent.ClientID %>').scrollTop;
}
function EndRequestHandler(sender, args) {
$('#<%=reContent.ClientID %>').scrollLeft = xPos;
$('#<%=reContent.ClientID %>').scrollTop = yPos;
}
</script>
please reply as soon as possible
In my my application I have created Training .aspx page in that page i have used usercontrol Mydocument.ascx in that user control i have used telerik RadEditor Control but i want my page scroll position set to Top I have written following javascript code on Training.aspx page and also Mydocument.ascx page but when I browse This page in IE-8 Page scroll position is set to the Cursor Position of Rad Editor but I want to show my page from Top I want my page scroll position should be top so I have used Following Javascript Code it works fine in Other browser but in IE-8 after page load scroll position is set according to cursor position of radEditor
<script type="text/jscript">
var xPos, yPos;
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_beginRequest(BeginRequestHandler);
prm.add_endRequest(EndRequestHandler);
function BeginRequestHandler(sender, args) {
xPos = $('#<%=reContent.ClientID %>').scrollLeft;
yPos = $('#<%=reContent.ClientID %>').scrollTop;
}
function EndRequestHandler(sender, args) {
$('#<%=reContent.ClientID %>').scrollLeft = xPos;
$('#<%=reContent.ClientID %>').scrollTop = yPos;
}
</script>
please reply as soon as possible