asp.net - Passing values from one Usercontrol to another UserControl ! -


High people.

I have a paypal which has 4 user controls and I have a user dropdown on each control. Whenever I change the selected index .. All user controls must be populated according to the selected value of the user. Can anyone please tell me how to pass values ​​to different usercontrol at the same time ... thanks !!!!!

You can create a UserControl base class with common properties. The properties will need to be wrapped in a session variable, which will be common to each.

Example:

  get public string text {if (session ("[UserControlText"]] == faucet [session] "[usercontroltext"]. Trim () == string. Apt) {Session ["UserControlText"] = string.opti;} Return Session ["UserControlText"]. ToString (.) Trim ();} Set {Session ["UserControlText"] = Value ;}}  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -