wilfordrocks
asked on
ASP.NET Navigation and Validation quesitons
Two things I am trying to figure out.
Question 1.
A site map comes from the master page. The site map is displayed in a tree view. How can I disable the tree view until there are no more pages errors.
Question 2.
Both the current and prior page use MasterPageFile="~/Site.Mas ter"
And
<asp:Content ID="Content1" ContentPlaceHolderID="Cont entPlaceHo lder1"
Page 1 has a control named TextBox1.
Why does this PageLoad() code never find control TextBox1?
{
ContentPlaceHolder cp = ((ContentPlaceHolder)Previ ousPage.Ma ster.FindC ontrol("Co ntentPlace Holder1")) ;
string fname = ((TextBox)cp.FindControl(" TextBox1") ).Text;
valuesFromPriorPage.Text = fname;
}
Thanks
Question 1.
A site map comes from the master page. The site map is displayed in a tree view. How can I disable the tree view until there are no more pages errors.
Question 2.
Both the current and prior page use MasterPageFile="~/Site.Mas
And
<asp:Content ID="Content1" ContentPlaceHolderID="Cont
Page 1 has a control named TextBox1.
Why does this PageLoad() code never find control TextBox1?
{
ContentPlaceHolder cp = ((ContentPlaceHolder)Previ
string fname = ((TextBox)cp.FindControl("
valuesFromPriorPage.Text = fname;
}
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.