Link to home
Start Free TrialLog in
Avatar of regisdaniel
regisdaniel

asked on

How to pass Parameter to a Web User Control?

A would like to develop a Web User Control that will handle a data insert/update process. So, my control needs to know when it will attempt to insert data and when it should modify data. So, is there anyway to pass some parameters to my WebUserControl to inform it whitch operation should it perform?

Thanks!
Avatar of cyberdevil67
cyberdevil67

Hi regisdaniel,

 Yep use the <param name="Layout" value="ThreePanes"> of the <object> and just use a normal property get/set method for this param name.

Cheers!
Avatar of regisdaniel

ASKER

Thanks cyberdevil67!!!

But, I'm newbie to ASP.Net. Could you please give me a more complete example of how doing this?

Thanls a lot!!!
ASKER CERTIFIED SOLUTION
Avatar of Allan
Allan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial