requirement is when user wants to download the case study or when he
clicks on the link(fullstory) he has to be redirected to a contact
form(user control) where he enters the details and he is redirected to
the case study page(full story page) for the download.
Here is a sample that demonstrates how you can achieve this approach.
1. You should have a BlogPosts control on a page which has full story link
2. Custom Page with your form - where I am adding an "Submit" button
In the template I am changing the hyperlink controls to an a href ( the problem is that the value of the HyperLink will be overridden from ContentView control even we set a value0
| <a href='BlogForm.aspx?BlogPostID=<%# Eval("ID") %>'>
| <asp:Literal ID="LiteralFS" runat="server" Text="<%$Resources:FullStory %>"></asp:Literal>
Here are are binding to the ID of the item we have selected and adding a href value to our BlogForm page.
In our BlogFrom page we are getting teh Icontent by the QueryString BlogPostID
| // add your form logic here
| ContentManager manager = new ContentManager("Blogs");
| IContent blogPost = manager.GetContent(new Guid(Request.QueryString["BlogPostID"]));
| string url = "YOUR_DOMAIN_PATH_GOES_HERE" + blogPost.UrlWithExtension;
Finally we are returning user to the full story page or another one.
the Telerik team