Hi there,
so I've got the following structures;
Start.master (Start.master.cs)
Contains a Method
DoSomething(string Text)
{
_MyHtmlControl.InnerText = Text;
}
And the HtmlGenericControl ID'ed *MyHtmlControl
Page.aspx (Page.aspx.cs)
Calls the Method via new Start().DoSomething("Test");
Doing so gives me the following error: Object reference not set to an instance of an object.
How can I make it work, so I can call DoSomething()
and it writes the given string into the HtmlGenericControl that is defined in the MasterPage?