Using the module

To use the Testimonials module in your website, you first must register it in the backend or programmatically through code in Global.asax. When the module is registered, the Testimonials control is also registered in the toolbox. To use the Testimonials control you must create a page with the name Submit to correctly navigate when clicked Submit your own testimonial button. You can do this in the code inGlobal.asax:

// "Submit Testimonial" page
result = SampleUtilities.CreatePage(new Guid(SubmitTestimonialPageID), "Submit", false);
if (result)
{
    SampleUtilities.SetTemplateToPage(new Guid(SubmitTestimonialPageID), new Guid(SamplesTemplateId));
    SampleUtilities.AddControlToPage(new Guid(SubmitTestimonialPageID), "~/Modules/Testimonials/SubmitTestimonial.ascx", "Content", "Submit Testimonial Widget");
}

The following screenshot displays an example Submit page created in Global.asax:

The following screenshot displays the backend of the Testimonials module:

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK