本文介绍了如何在不与数据库绑定的情况下在ASP C#中创建网格视图。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是初学程序员。我想在我的网络表单中创建一个网格视图,但我不想要b $ b想要使用数据库。我正在创建静态Web表单页面。有人告诉我创建对象和列表来创建静态网格。 PLZ帮助我,对不起我的英语有点弱点忽略它。



我尝试过:



< asp:GridView ID =GridView1runat =serverAutoGenerateColumns =False

BackColor =White/>

< columns>

< asp:TemplateField HeaderText =ID>

< edititemtemplate>

< asp:TextBox ID =TextBox1runat =serverText =1>



< itemtemplate>

< asp:Label ID =Label1runat =serverText =Label1>





< asp:TemplateField HeaderText =Name>

< edititemtemplate>

< asp:TextBox ID =TextBox2runat =serverText =Mohit>



< itemtemplate>

< asp:Label ID =Label2runat =serverText =Label2>

I am a beginner programmer. I want to create a grid view in my web form but i do not
want to use database. I am creating static web form pages. Someone told me to create object and list to create static grid. plz help me and sorry my english is little weak ignore it.

What I have tried:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
BackColor="White" />
<columns>
<asp:TemplateField HeaderText="ID">
<edititemtemplate>
<asp:TextBox ID="TextBox1" runat="server" Text="1">

<itemtemplate>
<asp:Label ID="Label1" runat="server" Text="Label1">


<asp:TemplateField HeaderText="Name">
<edititemtemplate>
<asp:TextBox ID="TextBox2" runat="server" Text="Mohit">

<itemtemplate>
<asp:Label ID="Label2" runat="server" Text="Label2">

推荐答案


这篇关于如何在不与数据库绑定的情况下在ASP C#中创建网格视图。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 21:22