R
rose
Hi everyone,
I have a user control on a page within a table that is by default
hidden through javascript. On a button click, I set the table
visibility to inline through an HtmlInputHidden control and users can
see the User Control within it. When I click the Submit button within
the user control, it closes the table because the HtmlInputHidden
control value is now null.
I have made the HtmlInputHidden control public and from the user
control code behind, I have tried passing a value back to it but I get
an error saying [Object reference not set to an instance of an object]
The code on the User control.cs is something like this
ClassPage objClassPage = new ClassPage();
objClassPage.hdnInputControl.Value = "some value";
Can you please suggest how can I pass the value between the page and
user control?
Thankyou
I have a user control on a page within a table that is by default
hidden through javascript. On a button click, I set the table
visibility to inline through an HtmlInputHidden control and users can
see the User Control within it. When I click the Submit button within
the user control, it closes the table because the HtmlInputHidden
control value is now null.
I have made the HtmlInputHidden control public and from the user
control code behind, I have tried passing a value back to it but I get
an error saying [Object reference not set to an instance of an object]
The code on the User control.cs is something like this
ClassPage objClassPage = new ClassPage();
objClassPage.hdnInputControl.Value = "some value";
Can you please suggest how can I pass the value between the page and
user control?
Thankyou