asp.net - Get Row of DataGrid in User Control Page -


My question relates to accessing rows in one page and keeping the conditions on the second page.

I need to check whether the data grid is in the row or not in the DataGrid .aspx page. Based on this investigation, I need to write a condition in the .ccx page. I

.ascx The condition that is checked is linked to the .aspx page. Which means that UserControl1.ascx is registered with the default .aspx page

I am using VS2003

please consult

Thanks

How about adding a flag to session ? For example, when you put a grid on ASPX, get the number of rows, MyDataTable.Rows.Count and add in the session, such as session ["MyDataTable.Rows.Count" ] = MyDataTable.Rows.Count ; From ASC, check the value in the session, and make your app decision based on that price.


Comments