Hi all, I have one page text.aspx there is textbox control <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
Dim mf As New MyClass
%>I am trying to call filltxt from MyClass via below code. but it seems code is unable to find the control. Public Sub filltxt()
Dim txtb As TextBox = CType(Page.FindControl("TextBox1"), TextBox)
txtb.Text = "hello world"
End SubI am getting Error : Object reference not set to an instance of an object.I will appreciate if you guys correct my code.Thank You
View Complete Post