Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to maintain vertical position on postback 1

Status
Not open for further replies.

adddeveloper

Programmer
Dec 16, 2006
43
US
hello!

I'm using this control:
It's to keep the vertical scroll position on postback.

I had tested it before, and it worked, but now...for some reason it doesn't.

I've checked the following and all seems right:
1. The .dll is in the bin folder
2. I do have the reference
3. I have the .aspx reference at the top of the page
4. I have the code behind reference

I tried deleting the control and redragging it onto the page, and that didn't work. In the properties, the MaintainSrollY is set to true.

Any suggestions are welcome!
Thanks!
 
You wil have to contact them for support since it is there control.
 
Thanks jbenson001!

I've already sent them an email, but I got this link from this site. Was hoping someone has used it and had suggestions. We'll see....I'll keep trying. Am looking for javascript to do the same thing, but trying several options and no luck.
 
I'm trying this, but it's not working either:

Here's what I have in my HTML:

<a name="#cb1"></a>
<asp:CheckBox id="cb1" runat="server" Text="Don't show me again." AutoPostBack="True">
</asp:CheckBox>

*****************************************************************

For my code behind, I've got:

If Page.IsPostBack Then

Response.Write("<script>location.href=""#""<%=Request.Form[""__EVENTTARGET""]%>"";</script>")

End If

Any suggestions are welcome.

Thanks!
 
sorry guys, I didn't relize it was the same product. that will teach me to look at the link before responding hu?

 
dvannoy,

No worries...I think I'll just use javascript to set the cookie. I wanted to keep it all on the server side, but for the sake of a cookie, I'll just go with client side scripting.

Thanks for the post anyway!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top