More in this section

Forums / Developing with Sitefinity / Event Registration in custom user control

Event Registration in custom user control

7 posts, 0 answered
  1. Corby Bender
    Corby Bender avatar
    16 posts
    Registered:
    05 Jan 2010
    27 Jan 2010
    Link to this post
    I've built an event registration user control and uploaded it to my Sitefinity site.  I can drop it on a page and it works fine, but the problem is that the built-in event listing tool shows on the screen, as does the event registration control.  I can't get the registration control to display on just the event detail page.  It has to be on the same page with the list of events that generates the individual event item page.

    What I want to do is show the event list, when the user selects an event have it take them to a new page to show the event details, and then on that event details page display the small registration form (that grabs from the query string, the event title...again, this part is working).

    How do I get my registration form user control to only display on the event detail page?

    Any help would be appreciated.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    27 Jan 2010
    Link to this post
    Hello Corby Bender,

    The easiest way is mapping the external template for details mode - ListPageDetail.ascx and there register your user control. All other relations should be made automatically by EventsView. The only problem that I can see here is how you will identify for which event a given user has subscribed/registered. If you have not exposed these logic in you control you need to create a custom control that inherits from EventsView and override SetSingleItemContent method from where you can get the id of each item and pass it to your form. Another option is using the ID of a single item appended to the url as a QueryString and read it from there.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Corby Bender
    Corby Bender avatar
    16 posts
    Registered:
    05 Jan 2010
    27 Jan 2010
    Link to this post
    Hi Ivan.  I am going to be grabbing the event information from the query string so the admins will know what the event the user has filled out the registration form on.

    I am going to look at the ListPageDetail.ascx page you suggested.  
  4. Corby Bender
    Corby Bender avatar
    16 posts
    Registered:
    05 Jan 2010
    27 Jan 2010
    Link to this post
    ListPageDetail.ascx does not exist in my project.  

    Any chance you have a link or URL that would show something similar to what you mentioned?
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    27 Jan 2010
    Link to this post
    Hi Corby Bender,

    This is an external template that you can download from your account >> downloads section. Then you have to map it through EventsView SingleItemTemplatePath property located in the Advanced Tab >> Appearance.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Corby Bender
    Corby Bender avatar
    16 posts
    Registered:
    05 Jan 2010
    27 Jan 2010
    Link to this post
    Just wanted to follow up.  This worked perfectly.  I downloaded the page you suggested, added it to my Visual Studio project, registered my custom registration user control on the page, and published.  Worked like a charm.  Thank you for your suggestion and help.
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    27 Jan 2010
    Link to this post
    Hi Corby Bender,

    Thank you for getting back to me. I am glad to hear that everything with the template is working fine for you.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
7 posts, 0 answered