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

Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 22, 2011, 9:54 PM EDT
http://www.aspnet101.com/2008/01/using-previouspage-with-a-master-page/
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Sep 22, 2011, 9:56 PM EDT
Try like this,
if (PreviousPage != null)
{
YourPrevoiusPageprevPage = PreviousPage as YourPrevoiusPageif (prevPage != null)
{
//Do something with object
}
}
Lalit MRank #1,186 · 1.5K reputationPosted Sep 22, 2011, 10:12 PM EDT
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 ..!
Vishwas Kadamannaya111 reputationPosted Sep 22, 2011, 10:13 PM EDT
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 + "
Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 22, 2011, 10:18 PM EDT
muneeb hassan17 reputationPosted Feb 26, 2015, 7:55 PM EST