Skip to content
Loading
QueryString Value
  • Hi Muhammad
     
     
      In PostBackUrl i want to pass Request.QueryString value . How that can be done. 
     
    Thanks 
    +2
  • Muhammad Imran Ansari
    Suppose you have linkbutton in first page and you want to send Id as query string in another page (like Page2.aspx). Just do like following:
    1. "lnkBtnOk" runat ="server" PostBackUrl="~/Page2.aspx?Id=5" Text="Ok">  
    and in Page2.aspx you will catch the Id like the following code.
    1. String qstring = Request.QueryString["Id"];  
     
    +2