Hyperlink: Cross Page Posting (C#)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsandes1
    New Member
    • Jul 2008
    • 5

    Hyperlink: Cross Page Posting (C#)

    Hello, still a newbie,

    Can anybody help on how to program a hyperlink object on page (page "A") when clicked, to open a new web page (page "B") and pass a parameter value to page "B", and populate \ fill a gridview object on page "B" when the page loads. The hyperlink is in a table on page "A" not a column of a gridview control.

    Scenerio: User opens page "A" and clicks on the hyperlink. The hyperlink should open page "B" and populate the gridview object on page "B"

    Any help will be appreciated.

    Thanks in advance,
  • mohitpande
    New Member
    • Jun 2008
    • 3

    #2
    use query string to send id from one page to other

    eg

    Response.Redire ct("yourpageB.a spx?id=" + id);

    and you can use this id to populate your gridview

    eg

    "Select * table where Id= " + Convert.ToInt32 (Request.QueryS tring[0].ToString());
    you can pass this id to stored procedure also
    more then one id can also be pass in from one page to other page using query string

    Comment

    Working...