Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have tried to place a GridView inside an UpdatePanel to use in a custom section in Umbraco backoffice.
The page is showing fine, when I'm not using the UpdatePanel, but when I do it cause a "Server Error in "/" Application" error..
Should I modify something to get AJAX to work?
I'm using Umbraco 4.7 .NET 4.0 and in the web.config I have the following, which I haven't changed something in.
<runtime> <!-- Old asp.net ajax assembly bindings --> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime>
- Bjarne
Hi Bjarne,
Can you post the full error (stack trace), which will give us more clues to go on?
Thanks
Hi..
I recieve the following error:
And in my code I have this:
<%@ Page Language="C#" MasterPageFile="../masterpages/umbracoPage.master" validateRequest="false" AutoEventWireup="true" CodeBehind="viewSubscribers.aspx.cs" Inherits="News.viewSubscribers" %> <%@ Register Namespace="umbraco.uicontrols" Assembly="controls" TagPrefix="umb" %> <asp:Content ID="Content" ContentPlaceHolderID="body" runat="server"> <umb:UmbracoPanel ID="Panel1" runat="server" hasmenu="false" Text="Vis tilmeldte"> <umb:Pane ID="Pane1" runat="server" Height="600px" Width="330px"> <umb:PropertyPanel runat="server" ID="pp_sample1"> <asp:Label ID="lblSubscribers" runat="server" /> </umb:PropertyPanel> </umb:Pane> <umb:Pane ID="Pane2" runat="server" Height="600px" Width="330px"> <umb:PropertyPanel runat="server" ID="pp_sample2"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:GridView ID="GridView1" runat="server" CssClass="basix" GridLines="Both" Width="100%" AllowSorting="true" AllowPaging="true" AutoGenerateColumns="False" PageSize="10" OnPageIndexChanging="GridView1_PageIndexChanging" OnSorting ="GridView1_OnSorting" DataKeyNames="Fornavn" CellPadding="3"> <Columns> <asp:CommandField ShowDeleteButton="False" ShowEditButton="False" Visible="false" /> <asp:TemplateField HeaderText="Fornavn" SortExpression="Fornavn"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Fornavn") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("Fornavn") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Efternavn" SortExpression="Efternavn"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Efternavn") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("Efternavn") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="E-mail" SortExpression="Email" ItemStyle-Width="200px"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("Email") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Sportsgren" SortExpression="Sportsgren"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Sportsgren") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("Sportsgren") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Forening" SortExpression="Forening"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Forening") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("Forening") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Titel" SortExpression="Titel"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Titel") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Bind("Titel") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <asp:label ID="lblStatus" runat="server"></asp:label> </ContentTemplate> </asp:UpdatePanel> </umb:PropertyPanel> </umb:Pane> </umb:UmbracoPanel> </asp:Content>
It works just fine without the UpdatePanel ..
It should be working like this example: http://programming.top54u.com/Samples/ASP-Net-AJAX-cs/GridView-Control/AJAX-GridView-Paging/Default.aspx , where it doesn't refresh the page/the content outside the UpdatePanel.
Please edit your web.config to change customErrors mode="On" - this will give the full details on the error page - and repost.
Edit: Sorry, I did mean "Off" !
You mean Off? I recieve the same error when I set it to On.. but when I set it to Off I get this message:
I've removed the ScriptManager from my page and then it works :)
The umbracoPage.master page has Probably a ScriptManager .. therefore I should have one here too ..
Thanks for your help :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
GridView inside UpdatePanel
I have tried to place a GridView inside an UpdatePanel to use in a custom section in Umbraco backoffice.
The page is showing fine, when I'm not using the UpdatePanel, but when I do it cause a "Server Error in "/" Application" error..
Should I modify something to get AJAX to work?
I'm using Umbraco 4.7 .NET 4.0 and in the web.config I have the following, which I haven't changed something in.
- Bjarne
Hi Bjarne,
Can you post the full error (stack trace), which will give us more clues to go on?
Thanks
Hi..
I recieve the following error:
And in my code I have this:
It works just fine without the UpdatePanel ..
It should be working like this example: http://programming.top54u.com/Samples/ASP-Net-AJAX-cs/GridView-Control/AJAX-GridView-Paging/Default.aspx , where it doesn't refresh the page/the content outside the UpdatePanel.
Please edit your web.config to change customErrors mode="On" - this will give the full details on the error page - and repost.
Edit: Sorry, I did mean "Off" !
You mean Off? I recieve the same error when I set it to On.. but when I set it to Off I get this message:
I've removed the ScriptManager from my page and then it works :)
The umbracoPage.master page has Probably a ScriptManager .. therefore I should have one here too ..
Thanks for your help :)
- Bjarne
is working on a reply...