Try Now
More in this section

Forums / Developing with Sitefinity / capture user email if they download pdf brochure?

capture user email if they download pdf brochure?

2 posts, 0 answered
  1. Mark
    Mark avatar
    86 posts
    08 Feb 2010
    27 Sep 2010
    Link to this post
    We have a load of brochures on our website
    Instead of allowing users to download these PDF's, we want to capture their email address so we can follow up with a sales lead

    does this functioanlity exist? i've not seen it in the market place or out of the box

    how would we integrate something like this?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    27 Sep 2010
    Link to this post
    Hi Markus,

    1. If you require login before giving these users access to the download section you can use their Membership data - MembershipUser.Email Property

    2. If you do not require login you can create an standard ASP.NET HttpHandler and if someone makes are request to your library send it to a custom email form. The user should type its email there and you can persist it in a custom table by using LINQ or Open Access ORM.  You can easily query this table and check if the email exists so you can add a new record or just proceed with a download. To avoid multiple redirection for the  same user you can create a cookie with maximum expiration date which will allow the same user to download files multiple times without going to your form which will be not necessary. 

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered