Is there a way pass values from other controls (e.g. “selected value of dropdownlist”, “value from query string”) to a User Control using a property within the tag itself and NOT from the code behind?
Is there a way pass values from other controls (e.g. selected value of dropdownlist,
Share
Yes you can, you just need to use the
<% %>in the presentation code. Your code would look something like this:The SO post In ASP.Net, what is the difference between <%= and <%# gives a good listing of the different binding mechanisms you can use.