Re: What about Anchors (#) and ASP.NET?
From: Bobby Ryzhy (bobby_at_weekendtech.net)
Date: 07/26/04
- Next message: JPH: "Compuware's Devpartner causes IIS to fail."
- Previous message: msnews.microsoft.com: "Re: Adding javascript event to datagrid control"
- In reply to: Lars Netzel: "What about Anchors (#) and ASP.NET?"
- Next in thread: Justin Beckwith: "Re: What about Anchors (#) and ASP.NET?"
- Reply: Justin Beckwith: "Re: What about Anchors (#) and ASP.NET?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 26 Jul 2004 09:37:49 -0600
On Mon, 26 Jul 2004 17:01:21 +0200, "Lars Netzel" <[stop_spam]@host.topdomain> wrote:
>Hello!
>
>I have a LOOOOONG page with a bunch of panels that you can expand and
>stuff.. and as you all know when you click on a servercontrol and get a
>postback, it reloads and you end up at the top of the page ... is there
>anyway to get the postback to add a #anchorname to the Address so I can keep
>my location down in the page??
>
>Regards
>/Lars
>
You can try some javascript -
C#
if (IsPostBack)
{
Page.Controls.Add(new LiteralControl("<script language = \"javascript\">"));
Page.Controls.Add(new LiteralControl(window.location="abc.aspx#123));
Page.Controls.Add(new LiteralControl("</script>"));
}
Bobby Ryzhy
bobby @ domain below
http://weekendtech.net
- Next message: JPH: "Compuware's Devpartner causes IIS to fail."
- Previous message: msnews.microsoft.com: "Re: Adding javascript event to datagrid control"
- In reply to: Lars Netzel: "What about Anchors (#) and ASP.NET?"
- Next in thread: Justin Beckwith: "Re: What about Anchors (#) and ASP.NET?"
- Reply: Justin Beckwith: "Re: What about Anchors (#) and ASP.NET?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|