Passing values to an exposed properties of an user control

Discussion in 'ASP .Net Web Controls' started by kostas, Jan 24, 2005.

  1. kostas

    kostas Guest

    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>
     
    kostas, Jan 24, 2005
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.