I have an application, where i need to update gridview specfic row with comments by clicking the link present in every row to update, where on clicking, new page is opened to input and submit by clicking button.
I'm able to access previous page in page_load method, but not in submit button onclick function. please let me know how to access the particular row of the previous page gridview and hide/delete partciular row.
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load If Me.Page.PreviousPage IsNot Nothing Then Dim ContentPlaceHolder1 As Control = Me.Page.PreviousPage.Master.FindControl("MainContent") Dim GridView1 As GridView = CType(ContentPlaceHolder1.FindControl("GridView1"), GridView) Dim rowIndex As Integer = Integer.Parse(Request.QueryString("RowIndex")) Dim row As GridViewRow = GridView1.Rows(rowIndex) Here in the above code i'm able to access previous page gridview ...

Go to the complete details ...