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

Forums / Developing with Sitefinity / Disabling Save Changes button

Disabling Save Changes button

10 posts, 1 answered
  1. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    08 Sep 2010
    Link to this post
    Hi,

    I've implemented custom security model for my intra-site modules, for which I'm using a custom user-control that emulates the PermissionSet control, with a slight modification to suit my requirements. The problem is, in that user-control, I'm disabling the "Save Changes" button in the load event as the default role selected is "administrator" (please refer the screenshot). But thereafter on selection of another role, it doesn't get enabled even if I try enabling it from code-behind. Following is the code:

    protected void rolesList_SelectedIndexChanged(object sender, EventArgs e)
        {
            rolesList.Focus();
            SetPermissions();
        }
      
    private void SetPermissions()
        {
            ModuleManager manager = new ModuleManager();
            ModulePermissions permissions = manager.GetPermissions(rolesList.SelectedItem.Text, moduleList.SelectedItem.Text);
      
            if (permissions.AllowView)
            {
                allowView.Checked = true;
                denyView.Checked = false;
            }
            else
            {
                allowView.Checked = false;
                denyView.Checked = true;
            }
      
            if (permissions.AllowCreate)
            {
                allowCreate.Checked = true;
                denyCreate.Checked = false;
            }
            else
            {
                allowCreate.Checked = false;
                denyCreate.Checked = true;
            }
      
            if (permissions.AllowModify)
            {
                allowModify.Checked = true;
                denyModify.Checked = false;
            }
            else
            {
                allowModify.Checked = false;
                denyModify.Checked = true;
            }
      
            if (permissions.AllowDelete)
            {
                allowDelete.Checked = true;
                denyDelete.Checked = false;
            }
            else
            {
                allowDelete.Checked = false;
                denyDelete.Checked = true;
            }
      
            if (rolesList.SelectedItem.Text.ToUpper() == "ADMINISTRATORS")
            {
                allowView.Enabled = false;
                allowCreate.Enabled = false;
                allowModify.Enabled = false;
                allowDelete.Enabled = false;
                denyView.Enabled = false;
                denyCreate.Enabled = false;
                denyModify.Enabled = false;
                denyDelete.Enabled = false;
                saveButton.Enabled = false;
            }
            else
            {
                allowView.Enabled = true;
                allowCreate.Enabled = true;
                allowModify.Enabled = true;
                allowDelete.Enabled = true;
                denyView.Enabled = true;
                denyCreate.Enabled = true;
                denyModify.Enabled = true;
                denyDelete.Enabled = true;
                saveButton.Enabled = true;
            }
        }

    Please tell me where am I going wrong and how do I acheive that.

    Thanks,
    Saumitra
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Sep 2010
    Link to this post
    Hi Saumitra,

    Have you wrapped your control inside PermissionSet control? If yes then whether the button Enabled property is inside this class PreRender method which is called after your code and your settings are overridden from th base.

    Also make sure that rolesList_SelectedIndexChanged is triggered on each changed. It is possible that the event is not fired and saveButton is not affected in this case.

    Greetings,
    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
  3. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    13 Sep 2010
    Link to this post
    Hi,

    Sorry for replying late. No, I haven't wrapped my control inside the PermissionSet control. Its just a plain ASP.NET UserControl with the Sitefinity's CSS classes applied to make it look like the PermissionSet control.

    About the selectedIndexChanged event, I've checked and it gets triggered on each change. In fact, the line of code where I'm disabling the control also gets executed. But no effect on the UI.

    Thanks,
    Saumitra
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Sep 2010
    Link to this post
    Hello Saumitra,

    Then, something else is executed after you enable/disable the button and changes your have posted above do not apply. If you could send the template markup and runnable code behind I could give a  try at my end and see what the problem is.

    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
  5. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    13 Sep 2010
    Link to this post
    Hi Ivan,

    Following is the code for the Permissions.ascx usercontrol:

    1) The markup:
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Permissions.ascx.cs" Inherits="Sitefinity_Admin_ControlTemplates_Masters_Permissions" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register TagPrefix="sfMsg" Namespace="Telerik.Cms.Web.UI" Assembly="Telerik.Cms.Web.UI" %>
    <%@ Register Namespace="Telerik.Security.WebControls" Assembly="Telerik.Security"
        TagPrefix="sec1" %>
    <sfMsg:JsFileLink ID="CheckBoxLink" runat="server" FileName="~/Sitefinity/Admin/ControlTemplates/Permissions.js" />
    <div id="divWorkArea" runat="server" class="workArea PermissionSet insert">
        <div id="PermissionSet1" runat="server" class="mainForm">
            <h2>
                <asp:Literal ID="Literal7" runat="server" Text="Set permissions for Masters module"></asp:Literal>
            </h2>
            <fieldset class="set">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <ol class="setIn clearfix">
                            <li class="selectRole">
                                <h3>
                                    <asp:Literal ID="Literal8" runat="server" Text="Select role"></asp:Literal>
                                </h3>
                                <asp:DropDownList ID="rolesList" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="rolesList_SelectedIndexChanged">
                                </asp:DropDownList>
                            </li>
                            <li class="setPerm">
                                <h3>
                                    <asp:Literal ID="Literal1" runat="server" Text="Select a View"></asp:Literal>
                                </h3>
                                <asp:DropDownList ID="moduleList" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="moduleList_SelectedIndexChanged">
                                </asp:DropDownList>
                            </li>
                            <li class="selectScreen check">
                                <h3>
                                    <asp:Literal ID="Literal9" runat="server" Text="Set permissions for this role"></asp:Literal>
                                </h3>
                                <table>
                                    <tr>
                                        <th>
                                            <asp:Literal ID="Literal10" runat="server" Text="View"></asp:Literal>
                                        </th>
                                        <td>
                                            <asp:CheckBox ID="allowView" Text="Allow" runat="server" onclick="CheckBoxHandler(this, this.parentNode.parentNode.getElementsByTagName('input')[1].id)" />
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="denyView" Text="Deny" runat="server" onclick="CheckBoxHandler(this, this.parentNode.parentNode.getElementsByTagName('input')[0].id)" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            <asp:Literal ID="Literal11" runat="server" Text="Create"></asp:Literal>
                                        </th>
                                        <td>
                                            <asp:CheckBox ID="allowCreate" Text="Allow" runat="server" onclick="CheckBoxHandler(this, this.parentNode.parentNode.getElementsByTagName('input')[1].id)" />
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="denyCreate" Text="Deny" runat="server" onclick="CheckBoxHandler(this, this.parentNode.parentNode.getElementsByTagName('input')[0].id)" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            <asp:Literal ID="Literal12" runat="server" Text="Modify"></asp:Literal>
                                        </th>
                                        <td>
                                            <asp:CheckBox ID="allowModify" Text="Allow" runat="server" onclick="CheckBoxHandler(this, this.parentNode.parentNode.getElementsByTagName('input')[1].id)" />
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="denyModify" Text="Deny" runat="server" onclick="CheckBoxHandler(this, this.parentNode.parentNode.getElementsByTagName('input')[0].id)" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            <asp:Literal ID="Literal13" runat="server" Text="Delete"></asp:Literal>
                                        </th>
                                        <td>
                                            <asp:CheckBox ID="allowDelete" Text="Allow" runat="server" onclick="CheckBoxHandler(this, this.parentNode.parentNode.getElementsByTagName('input')[1].id)" />
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="denyDelete" Text="Deny" runat="server" onclick="CheckBoxHandler(this, this.parentNode.parentNode.getElementsByTagName('input')[0].id)" />
                                        </td>
                                    </tr>
                                </table>
                                <p>
                                    <asp:Literal ID="Literal15" runat="server" Text="Save permissions before selecting another role / view"></asp:Literal>
                                </p>
                            </li>
                        </ol>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </fieldset>
            <div class="bottom">
                <div>
                    <!-- -->
                </div>
            </div>
            <p class="button_area">
                <asp:LinkButton ID="saveButton" runat="server" CssClass="CmsButLeft okdark" 
                    onclick="saveButton_Click">
                    <strong class="CmsButRight dark">Save changes</strong>
                </asp:LinkButton>
            </p>
        </div>
    </div>

    2) The codebehind:
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Collections.Generic;
    using CustomerOrders.Modules;
    using CustomerOrders.Security;
    using Telerik.Security.Permissions;
    using Telerik.Security;
      
    public partial class Sitefinity_Admin_ControlTemplates_Masters_Permissions : UserControl
    {
        bool bAllowCreate;
        bool bAllowEdit;
        bool bAllowDelete;
      
        protected void Page_Load(object sender, EventArgs e)
        {
              
        }
      
        protected override void  OnInit(EventArgs e)
        {
            base.OnInit(e);
      
            UserManager userManager = new UserManager();
            string[] Roles = userManager.GetAllRoles();
            rolesList.DataSource = Roles;
            rolesList.DataBind();
      
            ModuleManager manager = new ModuleManager();
            List<Module> ModuleList = new List<Module>();
            ModuleList = manager.GetChildModules("Masters");
            moduleList.DataSource = ModuleList;
            moduleList.DataTextField = "ModuleName";
            moduleList.DataValueField = "ModuleID";
            moduleList.DataBind();
            this.SetPermissions();
        }
      
        protected void saveButton_Click(object sender, EventArgs e)
        {
            ModulePermissions permissions = new ModulePermissions();
            permissions.AllowView = allowView.Checked;
            permissions.AllowCreate = allowCreate.Checked;
            permissions.AllowModify = allowModify.Checked;
            permissions.AllowDelete = allowDelete.Checked;
      
            ModuleManager manager = new ModuleManager();
            manager.SetPermissions(rolesList.SelectedItem.Text.Trim(), moduleList.SelectedItem.Text.Trim(), permissions);
        }
      
        protected void moduleList_SelectedIndexChanged(object sender, EventArgs e)
        {
            moduleList.Focus();
            SetPermissions();
        }
      
        private void SetPermissions()
        {
            ModuleManager manager = new ModuleManager();
            ModulePermissions permissions = manager.GetPermissions(rolesList.SelectedItem.Text, moduleList.SelectedItem.Text);
      
            if (permissions.AllowView)
            {
                allowView.Checked = true;
                denyView.Checked = false;
            }
            else
            {
                allowView.Checked = false;
                denyView.Checked = true;
            }
      
            if (permissions.AllowCreate)
            {
                allowCreate.Checked = true;
                denyCreate.Checked = false;
            }
            else
            {
                allowCreate.Checked = false;
                denyCreate.Checked = true;
            }
      
            if (permissions.AllowModify)
            {
                allowModify.Checked = true;
                denyModify.Checked = false;
            }
            else
            {
                allowModify.Checked = false;
                denyModify.Checked = true;
            }
      
            if (permissions.AllowDelete)
            {
                allowDelete.Checked = true;
                denyDelete.Checked = false;
            }
            else
            {
                allowDelete.Checked = false;
                denyDelete.Checked = true;
            }
      
            if (rolesList.SelectedItem.Text.ToUpper() == "ADMINISTRATORS")
            {
                allowView.Enabled = false;
                allowCreate.Enabled = false;
                allowModify.Enabled = false;
                allowDelete.Enabled = false;
                denyView.Enabled = false;
                denyCreate.Enabled = false;
                denyModify.Enabled = false;
                denyDelete.Enabled = false;
                saveButton.Enabled = false;
            }
            else
            {
                allowView.Enabled = true;
                allowCreate.Enabled = true;
                allowModify.Enabled = true;
                allowDelete.Enabled = true;
                denyView.Enabled = true;
                denyCreate.Enabled = true;
                denyModify.Enabled = true;
                denyDelete.Enabled = true;
                saveButton.Enabled = true;
            }
        }
      
        protected void rolesList_SelectedIndexChanged(object sender, EventArgs e)
        {
            rolesList.Focus();
            SetPermissions();
        }
    }

    Please do let me know if I need to send the code for the other supporting classes too.

    Thanks,
    Saumitra
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    14 Sep 2010
    Link to this post
    Hi Saumitra,

    Add the SaveButton inside your UpdatePanel. This should fix the issue. I am sending you a sample video.


       <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     
               .....
                     ....
                  <p>
                        <asp:Literal ID="Literal15" runat="server" Text="Save permissions before selecting another role / view"></asp:Literal>
                    </p>
                    <p class="button_area">
                        <asp:LinkButton ID="saveButton" runat="server" CssClass="CmsButLeft okdark"
                        onclick="saveButton_Click">
                            <strong class="CmsButRight dark">Save changes</strong>
                        </asp:LinkButton>
                    </p>
                </li>
            </ol>
        </ContentTemplate>
    </asp:UpdatePanel>


    Sincerely yours,
    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
    Answered
  7. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    16 Sep 2010
    Link to this post
    Hi Ivan,

    I've included the button inside the updatepanel. But when I browse the site, I get a run-time error. I tried restoring the button position, but in vain. I've attached the screenshot of the error. This error has started popping-up suddenly since last couple of days. I restarted the IIS Server too. Still no use.

    Any clues on why this must be happening?

    Thanks,
    Saumitra
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Sep 2010
    Link to this post
    Hello Saumitra,

    I do not believe that this error is caused by adding the button in a panel. The error says that you have duplicate lines with the same name in your web.config. This could happen if there are two lines or you have nested the application in another one and you should break the application inheritance by using <clrear> or <remove> attributes.

    Sincerely yours,
    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
  9. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    16 Sep 2010
    Link to this post
    Hi Ivan,

    I found the following stack trace in the Sitefinity.log in App_Data:

    9/16/2010 4:43:53 PM [EXCEPTION]

    ************************************************************************************

    ID: 94469441-2740-465d-9387-644b41568585; Code: 100103; Occurrence: 1; Sequence: 2

    ------------------------------------------------------------------------------------

    Application information:

    Machine name: ILDOT251

    OS Version: Microsoft Windows NT 6.1.7600.0

    Product Version: 3.7.2022.2

    Application Path: C:\Program Files\telerik\Sitefinity3.7\WebSites\CustomerOrders\

    Debug: True

    Process information:

    Process ID: 3640

    Process Name: w3wp

    Request information:

    Request URL: /CustomerOrders/

    Rewrite URL: http://127.0.0.1/CustomerOrders/

    Url Referrer: Is Authenticated: False

    Authentication Type: User: User Agent:

    User Address: 127.0.0.1

    Variables:

    - L0 -------------------------------------------------------------------------------

    Exception Type: System.TypeInitializationException

    Message: The type initializer for 'Telerik.DataAccess.Configuration.ConfigHelper' threw an exception.

    Source: Telerik.DataAccess

    Stack Trace:

    at Telerik.DataAccess.Configuration.ConfigHelper.get_Handler()

    at Telerik.DataAccess.NolicsHelper.SetConnection(String connectionName, String providerName)

    at Telerik.Cms.Data.DefaultProvider.Initialize(String name, NameValueCollection config)

    at Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings, Type providerType)

    at Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings)

    at Telerik.ManagerBase`1.InstantiateProviders(ProviderSettingsCollection configProviders)

    ------------------------------------------------------------------------------------

    - L1 -------------------------------------------------------------------------------

    Exception Type: System.Configuration.ConfigurationErrorsException

    Message: The entry 'DefaultConnection' has already been added. (C:\Program Files\telerik\Sitefinity3.7\WebSites\CustomerOrders\web.config line 264)

    Source: System.Configuration

    Stack Trace:

    at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)

    at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)

    at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)

    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)

    at System.Web.HttpContext.GetSection(String sectionName)

    at System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)

    at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)

    at System.Configuration.ConfigurationManager.GetSection(String sectionName)

    at Telerik.DataAccess.Configuration.ConfigHelper..cctor()

    ------------------------------------------------------------------------------------

     

     

    9/16/2010 4:43:53 PM [UNKNOWN]

    ************************************************************************************

    ID: cdb05be6-ddba-4cad-b66b-3883cc97fd52; Code: 3008; Occurrence: 1; Sequence: 3

    ------------------------------------------------------------------------------------

    Application information:

    Machine name: ILDOT251

    OS Version: Microsoft Windows NT 6.1.7600.0

    Product Version: 3.7.2022.2

    Application Path: C:\Program Files\telerik\Sitefinity3.7\WebSites\CustomerOrders\

    Debug: True

    Process information:

    Process ID: 3640

    Process Name: w3wp

    Request information:

    Request URL: /CustomerOrders/Sitefinity

    Rewrite URL: http://localhost/CustomerOrders/Sitefinity

    Url Referrer: Is Authenticated: False

    Authentication Type: User: User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3)

    User Address: ::1

    Variables:

    - L0 -------------------------------------------------------------------------------

    Exception Type: System.TypeInitializationException

    Message: The type initializer for 'Telerik.Cms.CmsWorkflowService' threw an exception.

    Source: Telerik.Cms

    Stack Trace:

    at Telerik.Cms.CmsWorkflowService.Initialize()

    at Telerik.Cms.CmsManager.OnInitialized()

    at Telerik.ManagerBase`1.Initialize()

    at Telerik.ManagerBase`1..ctor(String providerName)

    at Telerik.ManagerBase`1..ctor()

    at Telerik.Cms.Web.UrlHelper.Initialize(CmsHttpModule cmsModule)

    at Telerik.Cms.Web.CmsHttpModule.Init(HttpApplication context)

    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)

    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)

    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)

    at System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context)

    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

    ------------------------------------------------------------------------------------

    - L1 -------------------------------------------------------------------------------

    Exception Type: System.TypeInitializationException

    Message: The type initializer for 'Telerik.DataAccess.Configuration.ConfigHelper' threw an exception.

    Source: Telerik.DataAccess

    Stack Trace:

    at Telerik.DataAccess.Configuration.ConfigHelper.get_Handler()

    at Telerik.DataAccess.NolicsHelper.SetConnection(String connectionName, String providerName)

    at Telerik.Cms.Data.DefaultProvider.Initialize(String name, NameValueCollection config)

    at Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings, Type providerType)

    at Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings)

    at Telerik.ManagerBase`1.SetProvider(String providerName)

    at Telerik.ManagerBase`1..ctor(String providerName)

    at Telerik.ManagerBase`1..ctor()

    at Telerik.Cms.CmsWorkflowService..ctor()

    at Telerik.Cms.CmsWorkflowService..cctor()

    ------------------------------------------------------------------------------------

    - L2 -------------------------------------------------------------------------------

    Exception Type: System.Configuration.ConfigurationErrorsException

    Message: The entry 'DefaultConnection' has already been added. (C:\Program Files\telerik\Sitefinity3.7\WebSites\CustomerOrders\web.config line 264)

    Source: System.Configuration

    Stack Trace:

    at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)

    at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)

    at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)

    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)

    at System.Web.HttpContext.GetSection(String sectionName)

    at System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)

    at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)

    at System.Configuration.ConfigurationManager.GetSection(String sectionName)

    at Telerik.DataAccess.Configuration.ConfigHelper..cctor()

    ------------------------------------------------------------------------------------

    Thanks,
    Saumitra

  10. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    16 Sep 2010
    Link to this post
    Hi Ivan,

    Yes, you were right. The error wasn't due to adding the button in the panel. Somehow all the connectionstrings elements in the web.config had <clear /> element missing ! I don't know if they were deleted by mistake. But anyways, adding them back solved the error. Also the updatepanel solution given by you worked !

    Thanks a lot.

    Saumitra
Register for webinar
10 posts, 1 answered