Passing values to an exposed properties of an user control

K

kostas

How can I assign an exposed property of an user control to another
property of another user control? Bellow I have placed the error message
of the compiler...

It is impossible to 'System.Int32' from the String '<%=
usrCategories.SelectedCategoryId %>' for the property 'SelectedCategoryId'.

This is the xml element that produces the error.

<uc0:products id="usrProducts" runat="server" SelectedCategoryId='<%=
usrCategories.SelectedCategoryId.ToString() %>'></uc0:products>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top