Passing value to Web User Control
-
I have created a Web Form (parent), after that I embed a Web User Control using
<%@ Register %>
directive. Then I have created another Web Form and invoking this as a child. Now I am trying to pass a value back to parent. Problem is if I pass this to some control outside the Web User Control using javascript its passing correctly and I am able to see the passed value; but If pass to some control inside Web User Control using same javascript it won't. This problem can easily visualize through this sketch.[PARENT] [FORM] [HTML CONTROL][/HTML CONTROL] [WEB USER CONTROL] [HTML CONTROL][/HTML CONTROL] [/WEB USER CONTROL] [/FORM] [/PARENT]
I am sure there must be some way to solve out. Need help. The Phantom. -
I have created a Web Form (parent), after that I embed a Web User Control using
<%@ Register %>
directive. Then I have created another Web Form and invoking this as a child. Now I am trying to pass a value back to parent. Problem is if I pass this to some control outside the Web User Control using javascript its passing correctly and I am able to see the passed value; but If pass to some control inside Web User Control using same javascript it won't. This problem can easily visualize through this sketch.[PARENT] [FORM] [HTML CONTROL][/HTML CONTROL] [WEB USER CONTROL] [HTML CONTROL][/HTML CONTROL] [/WEB USER CONTROL] [/FORM] [/PARENT]
I am sure there must be some way to solve out. Need help. The Phantom.