Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aximili 177 posts 278 karma points
    Sep 28, 2011 @ 06:40
    Aximili
    0

    Redirect to another ascx file in an Umbraco section?

     

    I created a new section in Umbraco. It is a User Control (ProductList.ascx) displaying a list of Products.

    What I need to do is, when I click on a product, it should show me the Edit Product screen (EditProduct.ascx) in the same tab (ie. Products tab in the screenshot above).

    How can I achieve this? Thank you.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Sep 28, 2011 @ 11:17
    Tim
    0

    I'd merge the two controls into one, as you can't redirect to a user control, as it must be in a page. You can use the click event of the row (or add a button/link) to fire a server side event to hide the grid and show the form, and populate it with the values of the selected items. On save of the form, just hide the form, show the list, and update the list to show any changes.

    Hope that helps!

    :)

Please Sign in or register to post replies

Write your reply to:

Draft