HOW TO GET VALUES TO A PAGE WHERE THE PAGE OPENS AFTER CLICKING ON HYPER LINK

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
C# 
C#
 968  View(s)
Ratings:
Rate this:

I have two pages in which I used GridView in one page.In GridView I used Hyperlink to open second page after clicking on it. I am passing the values in Hyperlink which i want to use in second page.

Here is my code

<asp:HyperLink runat="server" ID="HyperLink1"

     NavigateUrl='<%# "db_PmuKpi_OBPI_AllPMs.aspx?PMRMId="+ Eval("PMRMID") + "&sRM =" +

                  Eval("PMRMName")%>' Text='<%# Eval("PMRMName","{0}")%>' />

<asp:Label ID="lblRM" runat="server" />

I want to use PMRMID and PMRMName in second page .How do I get them?
  1. Pravesh Singh

    Post:412

    Points:2888
    Re: How to get Values to a page where the page opens after clicking on Hyper link

    Hi Chintoo,


    Use Request.QueryString to retrive the values passed in the url.

    Request.QueryString["PMRMId"]

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!