Get Session values From Properties,,,,,,,,,,That code on current page where we get Session values
public string propertiperviuspages_AlbumMaster
{
get
{
string _AlbumMasterID = string.Empty;
if (!string.IsNullOrEmpty(Convert.ToInt64(ViewState["AlbumMasterID"]).ToString()))
{
_AlbumMasterID = ViewState["AlbumMasterID"].ToString();
Session["AlbumMasterID"] = _AlbumMasterID;
}
return _AlbumMasterID;
}
}
That abow session Values get on anothers pages....like that........................
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (PreviousPage != null)
{
string ImageID = PreviousPage.PropertyPreviousPage;
string AlbumMasterID = PreviousPage.propertiperviuspages_AlbumMaster;
}
}
}
That Code or path are on Design Page where we uses on next page
<%@ PreviousPageType VirtualPath="~/Album_uploaders.aspx" %>
public string propertiperviuspages_AlbumMaster
{
get
{
string _AlbumMasterID = string.Empty;
if (!string.IsNullOrEmpty(Convert.ToInt64(ViewState["AlbumMasterID"]).ToString()))
{
_AlbumMasterID = ViewState["AlbumMasterID"].ToString();
Session["AlbumMasterID"] = _AlbumMasterID;
}
return _AlbumMasterID;
}
}
That abow session Values get on anothers pages....like that........................
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (PreviousPage != null)
{
string ImageID = PreviousPage.PropertyPreviousPage;
string AlbumMasterID = PreviousPage.propertiperviuspages_AlbumMaster;
}
}
}
That Code or path are on Design Page where we uses on next page
<%@ PreviousPageType VirtualPath="~/Album_uploaders.aspx" %>
No comments:
Post a Comment