hello,
i need to read a public label runat server in a page from another page.
How can i do it?
i've tryed it but won't work
public static String GetFieldByPage(string pagePath)
{
Type type = BuildManager.GetCompiledType(pagePath);
Page pageView = (Page)Activator.CreateInstance(type);
Label lbl1 = (Label) pageView.FindControl("lbl1");
string lbl1Value = lbl1.Text;
return lbl1Value ;
}
Go to the complete details ...