I have a page in which the left column contains a list of categories, and the right column displays the corresponding items when you select a specific category from the left
each category’s list contains a hyperlink whose navigation URL contains query string values.
when I click the link, I get the elements listed on the right corresponding to the querystring value
Question: I want to prevent a complete postback and at the same time to catch the values of querystring, without which I could not get a list of elements on the right.
I used the update panel, but the full record is returned again.
is there any way to get query string values without full postback ???
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <div class="rightsec"> <h5>Categories</h5> <asp:Accordion ID="Accordion1" runat="server"> <Panes> <asp:AccordionPane ID="AccordionPane1" runat="server"> <Header> <h4> Electronics</h4> </Header> <Content> <div class="rightsec_content"> <ul> <li> <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="show_products.aspx?category=Electronics&sub_category=Cameras Accessories">Camera Accessories</asp:HyperLink> </li> </ul> </div> </Content> </asp:AccordionPane> </asp:Accordion> </div> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"> <ProgressTemplate> <table align="center"> <tr> <td> <asp:Image ID="Image1" runat="server" ImageUrl="~/staticimages/progress_bar_animated (1).gif" ImageAlign="Top" /> </td> </tr> </table> </ProgressTemplate> </asp:UpdateProgress>
source share