具有id' GridView1'的GridView的数据源在asp.net中没有任何属性或属性

时间:2016-02-13 11:12:32

标签: c# asp.net json gridview

这是我的default.aspx:

volvo

CS:

<body>
    <form id="form1" runat="server">
    <div>
 <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>

    </div>

    </form>
</body>

它显示错误,如下所示:

  

具有id&#39; GridView1&#39;的GridView的数据源没有任何属性或属性来生成列。确保您的数据源包含内容。

在我现有的代码中显示的是在json的文本框中输出, http://s30.postimg.org/p8dx9p33l/untitled.jpg

为了将文本框中的json数据仅显示在gridview中,我更改了上面的代码。

我是.net的新手,任何人都可以帮我解决这个问题,

任何帮助都将受到高度赞赏。

提前致谢。

1 个答案:

答案 0 :(得分:4)

您的!ENTRY org.eclipse.osgi 4 0 2016-02-13 18:10:53.990 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: C:\Users\Zhan Feng\eclipse\java-mars\eclipse\configuration\org.eclipse.osgi\388\0\.cp\swt-win32-4528.dll: Invalid access to memory location no swt-win32 in java.library.path Can't load library: C:\Users\Zhan Feng\.swt\lib\win32\x86_64\swt-win32-4528.dll Can't load library: C:\Users\Zhan Feng\.swt\lib\win32\x86_64\swt-win32.dll C:\Users\Zhan Feng\.swt\lib\win32\x86_64\swt-win32-4528.dll: Invalid access to memory location at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236) at org.eclipse.swt.internal.C.<clinit>(C.java:16) at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:734) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162) at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:169) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:111) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) at org.eclipse.equinox.launcher.Main.run(Main.java:1515) 类没有生成列的属性。您需要在Product类中定义属性。

Product

您希望在gridview中显示为列的其他属性。