asp.net dropdown list postback to anchor

Posted by The Talking Walnut on Stack Overflow See other posts from Stack Overflow or by The Talking Walnut
Published on 2010-05-26T16:17:36Z Indexed on 2010/05/26 16:51 UTC
Read the original article Hit count: 203

Filed under:
|

How can I go to an anchor tag on the page when the myDropDownList_SelectedIndexChanged() event fires? I am using regular ASP.NET Forms.

Update: The following is valid for an ASP.NET Button. I would like to achieve the same functionality (going to #someAnchor) when I select an option from the Dropdown list.

<asp:Button ID="btnSubmit" runat="server" Text="Do IT"  Width="186px" PostBackUrl="#myAnchor" CausesValidation="false" />

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about postback