1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to extend the EditThread control in forums module to include email field?

How to extend the EditThread control in forums module to include email field?

2 posts, 0 answered
  1. Nagendra Sathyamurthy
    Nagendra Sathyamurthy avatar
    1 posts
    Registered:
    18 Aug 2009
    20 Apr 2010
    Link to this post
        I went through some articles in knowledge base, but could not able to get the right solution. I created a separate class library project. Created a class CustomEditThread derived from Telerik.Forums.WebControls.SingleThread. In the website project, inside the sitefinity folder, created a folder "ExtendedControls". Added EditThread.ascx file and edited it to include a textbox that accepts the email. Also added an Asp.Net folder "App_LocalResources" and added a file EditThread.ascx.resx. Added suitable string resources that I am using in EditThread.ascx file. Also I overridden the property TemplateSourceDirectory to point to "~/sitefinity/ExtendedControls/ " in CustomEditThread class.

       Now the question is how to add functionality to CustomEditThread class to save the email field into the database?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 May 2017
    20 Apr 2010
    Link to this post
    Hi Nagendra Sathyamurthy,

    You have to make control reference to the TexBox that is uses for getting the email address. Then you can use LINQ to SQL: .NET Language-Integrated Query for Relational Data to persist the data or another data layer like OpenAccess ORM

    Kind regards,
    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