Pass ASP.Net GridView from one page to another page

前端 未结 6 1585
终归单人心
终归单人心 2021-01-12 13:59

I want to pass all the gridview value into another page I have one gridview in PatientDetails.aspx page and one button as below



        
6条回答
  •  失恋的感觉
    2021-01-12 14:37

    @Nunners answer is ownsome, but can also try with following way:

    on anothoer page's pageload event fetch grid like:

    GridView GridView1 = (GridView)this.Page.PreviousPage.FindControl("GridView1");
    

    All the technique is given below:

    http://www.aspsnippets.com/Articles/Pass-Selected-Row-of-ASPNet-GridView-control-to-another-Page.aspx

    Refer above doccument.

提交回复
热议问题