Hi All,
I have a html table created dynamically with ID="tblSeatLayout" and i need 2 get that in next page.
I have used the following code to do that but am getting null.
if(!IsPostBack)
{
if (Page.PreviousPage != null)
{
HtmlTable htmlTab = (HtmlTable) PreviousPage.FindControl("tblSeatLayout");
}
}
Thanks in advance
Vishwas
Loading
muneeb hassanPosted Feb 27, 2015, 12:55 AM
Manikavelu VelayuthamPosted Sep 23, 2011, 2:18 AM
Vishwas KadamannayaPosted Sep 23, 2011, 2:13 AM
In my code i use to create table dynamicaly as
in aspx page
<%= strRows %>
in aspx.cs page
public string strRows = string.Empty;
strRows = strRows + "
Lalit MPosted Sep 23, 2011, 2:12 AM
You can find your solution from this link
http://www.codeproject.com/KB/aspnet/PreviousPageLink.aspx
http://www.dotnetcurry.com/ShowArticle.aspx?ID=89
Hope you will help ..!
Jaganathan BantheswaranPosted Sep 23, 2011, 1:56 AM
Try like this,
if (PreviousPage != null)
{
YourPrevoiusPageprevPage = PreviousPage as YourPrevoiusPageif (prevPage != null)
{
//Do something with object
}
}
Manikavelu VelayuthamPosted Sep 23, 2011, 1:54 AM
http://www.aspnet101.com/2008/01/using-previouspage-with-a-master-page/