Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Johansen 1 post 21 karma points
    Aug 01, 2012 @ 13:21
    Peter Johansen
    0

    Gridview in usercontrol

     

    Hello

    I have tried to create a UserControl with a grid view. It is not successful, the end of the load UserControl gridview'en. The load does not gridview'en.

    If I use the UserControl in a normal temperature. side outside of Umbraco it works fine.

    ASCX Code:
            <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Selfcare_Test.ascx.cs" Inherits="PZ_Gruppen_Web_Umbraco.usercontrols.Selfcare_Test" %>
            Before
            <asp:GridView runat="server" ID="GridViewTest"></asp:GridView>
            After
    ASCX CS Code:
                String[] invoices = new String[] { "Test 1" , "Test 2" , "Test 3" };
                GridViewTest.DataSource = invoices;
                GridViewTest.DataBind();
    In umbraco its only write "Before" - not more, and no errors.
    What is the problem? Please heeeelp :-)

     

Please Sign in or register to post replies

Write your reply to:

Draft