M
MS News \(MS ILM\)
hello all,
I place a usercontrol on my web page, then in code behind I add one
attribute
employee.Attributes.Add("empId", "123")
My usercontrol is not getting this value at all
But:
If I add the attribute directly into my aspx page everything works
<uc1:emp id="employee" runat="server" empid="123" ></uc1:emp>
No errors.
I must be missing something here.
How do I pass or set the values of my usercontrol
Do I need to add the UserControl Dynamically and set its properties..etc..
Thanks for any help
SA
I place a usercontrol on my web page, then in code behind I add one
attribute
employee.Attributes.Add("empId", "123")
My usercontrol is not getting this value at all
But:
If I add the attribute directly into my aspx page everything works
<uc1:emp id="employee" runat="server" empid="123" ></uc1:emp>
No errors.
I must be missing something here.
How do I pass or set the values of my usercontrol
Do I need to add the UserControl Dynamically and set its properties..etc..
Thanks for any help
SA