master page file
public partial class Site2 : System.Web.UI.MasterPage
{
public int TransferDriveID = 0;
public string TransferDriveName = "";
}
other apsx file
((Site2)this.Master).TransferDriveID
or
string val = Request[((SiteMaster)Master).txtSearchName.UniqueID];
or
DropDownList ddlTest = this.Master.FindControl("ddlTest") as DropDownList;
https://stackoverflow.com/questions/7536843/master-page-is-adding-additional-text-in-textbox-id
No comments:
Post a Comment