I am new to asp.net.
I have created a user control that has a text tox in it and I have put it onto a web form. (I am doing this with a reference book in one hand!)
When I run it I get the user control loaded onto my form ok, The buttons do what they are suposed to do and the text box gets populated.
The problem is that I can't pass the value in the text box in the user control to a text box in the web form.
I have created a public property "pViewMode" in the user control and call that from the web form.
The code compiles and executes but falls over when it tries to get the public property "pViewMode" (TextBox1.Text = ViewMode.pViewMode.ToString())
The code to set a value to pViewMode does not get executed and so the value of ViewMode.pViewMode.ToString() is nothing.
Any idea would be appricated
I have created a user control that has a text tox in it and I have put it onto a web form. (I am doing this with a reference book in one hand!)
When I run it I get the user control loaded onto my form ok, The buttons do what they are suposed to do and the text box gets populated.
The problem is that I can't pass the value in the text box in the user control to a text box in the web form.
I have created a public property "pViewMode" in the user control and call that from the web form.
The code compiles and executes but falls over when it tries to get the public property "pViewMode" (TextBox1.Text = ViewMode.pViewMode.ToString())
The code to set a value to pViewMode does not get executed and so the value of ViewMode.pViewMode.ToString() is nothing.
Any idea would be appricated