当前位置: 移动技术网 > IT编程>开发语言>.net > 在ASP.NET 2.0中操作数据之六十四:GridView批量添加数据

在ASP.NET 2.0中操作数据之六十四:GridView批量添加数据

2017年12月12日  | 移动技术网IT编程  | 我要评论

8l9980,火星救援西瓜影音,绝唱刀

导言:

  在前面的第62章《gridview批量更新数据》里,我们用gridview控件里定制了一个批编辑界面,同样的我们也可以定制一个批添加界面.假设有这种情况,我们接受一批从tokyo(东京)发过来的货物:6种不同的tea 和 coffee,如果用户在一个detailsview控件里一次输入一个产品,他将会重复的输入很多相同的值,比如相同的种类(beverages),相同的供应商(tokyo traders),相同的discontinued值(false),以及相同的order值(0).重复性的输入这些相同的值不仅累,还很容易出错.只需额外多做一些工作,我们就可以创建一个批添加界面。用户只需一次行的选择supplier 和category,输入一系列产品的names 和unit prices,再点击一个按钮就可以将这些新产品添加进数据库(如图1所示).这些添加的产品的productname 和unitprice数据由界面上方的2个dropdownlist控件指定,discontinued 和unitsonorder的值由“硬编辑”指定,分别为false和0.

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908075880.jpg
图1:批添加界面


本教程,我们将创建一个如图1所示的批添加界面。在前面2章的基础上我们将把添加过程用事务封装以保证原子操作.让我们开始吧!

第一步:创建一个展示界面

  我们将创建一个包含2个区域的单一页面:展示区域和添加区域.我们在这一步创建的是展示区域,它包含一个用于展示产品的gridview控件以及一个标题为“process product shipment”的button按钮.当点击该按钮时,展示界面将替换为一个如图1所示的添加界面.如果点“add products from shipment” 或 “cancel”按钮时又会返回展示页面.添加界面将在第二步完成.

  这个包含2个界面的页面每次只能让一个界面可见。我们将用2个panel web控件作为容器包含这2个界面——一个panel web控件包含一个界面.

  首先打开batchdata文件夹里的batchinsert.aspx页面,在设计器模式里从工具箱里拖一个panel控件到页面(如图2所示),设置其id为displayinterface.当将panel控件拖到页面时其height 和 width属性分别为50px 和 125px.在属性窗口里清除这些属性.

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908078637.jpg
图2:从工具箱里拖一个panel控件到页面

  然后拖一个button 和 gridview控件到panel控件里。设button的id为processshipment ,text属性为“process product shipment”.  设gridview的id为productsgrid,从其智能标签里将其绑定到一个名为productsdatasource的objectdatasource.设置该objectdatasource调用productsbll class类的getproducts方法.由于该gridview控件只用来展示数据,从update, insert, delete标签里选“(none)”. 点finish完成设置

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908072680.jpg
图3:调用productsbll class类的getproducts方法来显示数据

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908077980.jpg
图4:在update, insert, delete标签里选“(none)”

  完成objectdatasource设置后,visual studio会自动地添加一些boundfields以及一个checkboxfield。只保留productname, categoryname, suppliername, unitprice, 以及discontinued这几列.你可以再做一些外观的改进.我将unitprice列定制为货币值,重新对列进行了排序,再对一些列的headertext值进行了修改.再在gridview的智能标签里启用了“分页”和“排序”功能.完成上述工作后,页面的声明代码看起来应该和下面的差不多:

<asp:panel id="displayinterface" runat="server">
 <p>
 <asp:button id="processshipment" runat="server"
  text="process product shipment" />
 </p>
 <asp:gridview id="productsgrid" runat="server" allowpaging="true"
 allowsorting="true" autogeneratecolumns="false"
 datakeynames="productid" datasourceid="productsdatasource">
 <columns>
  <asp:boundfield datafield="productname" headertext="product"
  sortexpression="productname" />
  <asp:boundfield datafield="categoryname" headertext="category"
  readonly="true" sortexpression="categoryname" />
  <asp:boundfield datafield="suppliername" headertext="supplier"
  readonly="true" sortexpression="suppliername" />
  <asp:boundfield datafield="unitprice" dataformatstring="{0:c}"
  headertext="price" htmlencode="false"
  sortexpression="unitprice">
  <itemstyle horizontalalign="right" />
  </asp:boundfield>
  <asp:checkboxfield datafield="discontinued" headertext="discontinued"
  sortexpression="discontinued">
  <itemstyle horizontalalign="center" />
  </asp:checkboxfield>
 </columns>
 </asp:gridview>
 <asp:objectdatasource id="productsdatasource" runat="server"
 oldvaluesparameterformatstring="original_{0}"
 selectmethod="getproducts" typename="productsbll">
 </asp:objectdatasource>
</asp:panel>

  我们注意到button 和 gridview控件的声明代码出现在<asp:panel>标签内部,因为这些控件置于名为displayinterface的panel控件里面,我们可以将panel控件的visible 属性设置为false来隐藏这些控件.我们将在第三步看到,当点击一个按钮时,通过编程的方式改变panel控件的visible属性以显示添加界面.

  花点时间在浏览器里登录该页面.如图5所示,你将看到一个显示为“process product shipment”的button按钮,其下的gridview控件每次列出10个产品.

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908075251.jpg
图5:gridview列出了产品并启用排序和分页功能

第二步:创建添加界面

  创建完展示界面后,我们将创建添加界面。在本教程,我们的添加界面允许用户同时添加5个产品,且这5个产品的category 和 supplier是一样的,而names 和 nit price值不同.在id为displayinterface的panel控件下面,从工具箱里拖一个panel控件到页面,设置其id为insertinginterface,visible属性为false,并清除其height 和 width属性值。我们将在第三步添加代码将其visible属性改为true.

  接下来我们将创建如图1所示的添加界面。该界面本来可以通过一些html技术来创建的,不过在这里我们将使用一个很简单的4列7行的table表.

  注意:虽然在设计器模式里可以使用工具箱的工具来添加<table> elements元素,不过那样会自动添加一些我们不需要的style属性设置.因此,我更偏向于在源视图模式里添加html <table> elements元素. 当写好类<table>声明代码后,我喜欢立即切换到设计器模式,再添加web控件并设置其属性。当心中有数,已经想好了要创建几行几列的时候,我倾向于使用静态html(static html)而不是table web控件,原因是如果使用table web控件的话,我们必须通过findcontrol("controlid")的方式来访问放置在里面的的web控件.不过话又说回来,如果是要创建一个动态变化的表(dynamically-sized tables)的话——比如该表的行和列都绑定到数据库或者基于用户自定义的标准格式,我还是要使用table web控件,原因很简单,我们可以通过编程来创建该table web控件.

在id为insertinginterface的panel控件的<asp:panel>标签里输入如下的声明代码:

<table class="datawebcontrolstyle" cellspacing="0">
 <tr class="batchinsertheaderrow">
 <td class="batchinsertlabel">supplier:</td>
 <td></td>
 <td class="batchinsertlabel">category:</td>
 <td></td>
 </tr>
 <tr class="batchinsertrow">
 <td class="batchinsertlabel">product:</td>
 <td></td>
 <td class="batchinsertlabel">price:</td>
 <td></td>
 </tr>
 <tr class="batchinsertalternatingrow">
 <td class="batchinsertlabel">product:</td>
 <td></td>
 <td class="batchinsertlabel">price:</td>
 <td></td>
 </tr>
 <tr class="batchinsertrow">
 <td class="batchinsertlabel">product:</td>
 <td></td>
 <td class="batchinsertlabel">price:</td>
 <td></td>
 </tr>
 <tr class="batchinsertalternatingrow">
 <td class="batchinsertlabel">product:</td>
 <td></td>
 <td class="batchinsertlabel">price:</td>
 <td></td>
 </tr>
 <tr class="batchinsertrow">
 <td class="batchinsertlabel">product:</td>
 <td></td>
 <td class="batchinsertlabel">price:</td>
 <td></td>
 </tr>
 <tr class="batchinsertfooterrow">
 <td colspan="4">
 </td>
 </tr>
</table>

  该<table>声明代码里暂时还未包含任何的web控件。我们注意到每一个<tr> element元素都有明确的css class设置:放置名为supplier 和category的dropdownlists控件的“头顶行”对应的是batchinsertheaderrow;放置“add products from shipment” 和“cancel”按钮的“底部行”对应的是batchinsertfooterrow;那些包含product和unit price的textbox控件的行交替的运用batchinsertrow和batchinsertalternatingrow.我已经在styles.css文件里创建里相应的css classes,代码如下:

/*** styles for ~/batchdata/batchinsert.aspx tutorial ***/
.batchinsertlabel
{
 font-weight: bold;
 text-align: right;
}

.batchinsertheaderrow td
{
 color: white;
 background-color: #900;
 padding: 11px;
}

.batchinsertfooterrow td
{
 text-align: center;
 padding-top: 5px;
}

.batchinsertrow
{
}

.batchinsertalternatingrow
{
 background-color: #fcc;
}

输入这些代码后,切换到设计视图,该<table>看起来是一个4列7行的表,如图6所示:

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908074780.jpg
图6:添加界面为一个4列7行的表

  现在我们在添加界面里添加web控件.从工具箱拖2个dropdownlist到表的相应方格里——一个用来显示supplier另一个用来显示category.

  将用来显示supplier的那个dropdownlist的id设为suppliers,并将其绑定到一个名为suppliersdatasource的objectdatasource.设置该objectdatasource调用suppliersbll class类的getsuppliers方法.并在update标签里选“(none)”,点击finish完成设置向导.

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908087538.jpg
图7:设置objectdatasource调用suppliersbll class类的getsuppliers方法

设置该dropdownlist显示companyname列,而传递的值为supplierid列.

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908081140.jpg
图8:显示companyname列,传递的是supplierid列的值

  将第2个dropdownlist的id设为categories,并将其绑定到一个名为categoriesdatasource的objectdatasource.该objectdatasource调用categoriesbll class类的getcategories方法. 在update标签里选“(none)”,再点finish完成设置. 最后设置该dropdownlist控件显示categoryname列,传递categoryid列的值.

当添加这2个dropdownlist控件并绑定到相应的objectdatasources后,你的屏幕看起来应该和图9差不多:

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908082425.jpg
图9:“头部行”包含显示suppliers和categories的dropdownlist控件

  我们现在需要创建收集每个产品的name和price信息的textbox控件。在下面的每行对应的name和price方格里各拖放一个textbox控件. 分别设置它们的id为productname1, unitprice1,productname2, unitprice2,依次类推.

  对每个price textboxes添加一个comparevalidator控件,设置其controltovalidate属性为相应控件的id值.同时将operator属性设置为greaterthanequal,valuetocompare 属性设置为“0”, type属性设置为currency.这样一来可以保证输入的价格为有效的大于或等于0的货币值.同时将text属性设置为“*”;errormessage属性为“the price must be greater than or equal to zero. also, please omit any currency symbols.”。

  注意:我们并没有在添加界面里包含任何的requiredfieldvalidator控件,即便是数据库表products的productname不允许为null值.举个例子,如果用户只想在前3行输入产品的name和unit price,而最后2行为空,我们就仅仅向数据库添加了3个产品。由于productname是必需的,当输入了name值后,我们只需要通过编程检查用户是否输入了该产品的unit price值.我们将在第四步进行该检查.

  当用户输入了数据,但如果输入值包含货币符号的话,comparevalidator控件将报告无效数据.在每个unit price textboxe控件前添加一个“$”符合,提示用户输入数据的时候忽略货币符号.

  最后,在insertinginterface panel控件里添加一个validationsummary控件,设置其showmessagebox属性为true,showsummary属性为false.有了这些设置后,当用户输入一个无效的unit price值后,在textbox控件旁边将会出现一个星号,且validationsummary控件将显示一个客户端的消息框,显示相应的错误消息.

  此时,你的屏幕看起来和图10差不多.

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908095467.jpg
图10:添加界面现在包含显示产品的names和prices的textbox控件

  接下来我们要在底部行添加“add products from shipment” 和 “cancel”按钮.从工具箱拖2个button控件到界面的底部,分别设置其id为addproducts和cancelbutton;同时分别设其text属性为“add products from shipment”和“cancel”.此外,将 cancelbutton按钮的causesvalidation属性设置为false.

  最后,我们需要添加一个label web控件来显示有关这2个界面的状态信息.比如:当用户成功地添加了一批产品时我们希望切换到展示界面并显示确认消息.当然,如果用户输入产品信息时只提供了price而没有提供name信息,我们就需要显示一个警告信息,提示用户productname是必需的.由于我们需要显示与这2个界面有关的信息,将该控件放在这2个panel控件的上方.

  从工具箱里拖一个label web控件到页面顶部,设其id为statuslabel,清除其text属性,设其visible属性和enableviewstate属性为false. 我们在以前的教程里探讨过,将enableviewstate属性设为false的话,我们可以通过编程的方式改变label控件的属性值,而当发生页面回传时其又回到默认状态.当发生某些用户行为(user action)时,会显示状态信息,而当页面回传时,状态信息又消失了.最后设置statuslabel的cssclass属性为“warning”,这是我们在styles.css文件里定义的css class名称.

下图显示的是添加并设置label控件后的样子

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908096753.jpg
图11:在panel控件上面放置id为statuslabel的label控件

第三步:在展示界面和添加界面之间切换

到此,我们已经完成了展示和添加界面,不过我们仍然有2个任务要做:

1.在展示界面和添加界面之间切换
2.将产品添加到数据库

当前,展示界面是可见的而添加界面是隐藏的.这是因为displayinterface panel控件的visible属性为true(默认值), 而insertinginterface panel控件的visible属性为false.

当点击“process product shipment”按钮时,我们向从展示界面切换到添加界面。为此,创建该按钮的click事件处理器,包含以下代码:

protected void processshipment_click(object sender, eventargs e)
{
 displayinterface.visible = false;
 insertinginterface.visible = true;
}

该代码仅仅隐藏displayinterface panel而显示insertinginterface panel.

  接下来,我们为添加界面里的“add products from shipment”和“cancel” 按钮创建事件处理器.当任何一个按钮点击时,我们需要切换到展示界面.创建这2个按钮的click事件处理器以调用returntodisplayinterface方法——我们马上就要创建该方法.

  该方法除了隐藏insertinginterface panel并显示displayinterface panel外,还需要将web控件返回到其预编辑状态(pre-editing state).即把dropdownlist控件的属性selectedindex设置为0,清除textbox控件的text属性.

  注意:仔细思考一下,如果在返回展示界面以前,我们没有将这些控件返回到预编辑状态的话将会发生什么事情呢?比如用户点击“process products from shipment”按钮,然后输入产品信息,再点“add products from shipment”按钮,这样将添加产品并返回展示页面。如果用户又想添加另一批产品,一旦点击“process product shipment”按钮时将切换到添加界面,但是dropdownlist控件的值和textbox控件的值依然是以前的值.

protected void addproducts_click(object sender, eventargs e)
{
 // todo: save the products

 // revert to the display interface
 returntodisplayinterface();
}

protected void cancelbutton_click(object sender, eventargs e)
{
 // revert to the display interface
 returntodisplayinterface();
}

const int firstcontrolid = 1;
const int lastcontrolid = 5;

private void returntodisplayinterface()
{
 // reset the control values in the inserting interface
 suppliers.selectedindex = 0;
 categories.selectedindex = 0;

 for (int i = firstcontrolid; i <= lastcontrolid; i++)
 {
 ((textbox)insertinginterface.findcontrol("productname" + i.tostring())).text =
  string.empty;
 ((textbox)insertinginterface.findcontrol("unitprice" + i.tostring())).text =
  string.empty;
 }

 displayinterface.visible = true;
 insertinginterface.visible = false;
}

  上述2个click事件处理器都仅仅简单的调用returntodisplayinterface方法,不过我们将在第四步完善“add products from shipment”的click事件,添加代码以保存产品.

  returntodisplayinterface方法一开始就把suppliers和categories的dropdownlist控件返回其第一项;常量firstcontrolid和lastcontrolid分别用来设置添加界面里的标明产品名称和单价的textboxe控件的开始和结束索引值. 在一个for循环里设置这些控件的text属性为空字符串.最后重新设置panels控件的visible属性,以显示展示界面而隐藏添加界面.

  花点时间在浏览器里测试该页面,当首次登录时你将看到如图5所示的画面,点“process product shipment”按钮,页面将回传并切换到如图12所示的添加界面,不管点“add products from shipment”还是“cancel”按钮都将返回展示界面.

  注意:当浏览添加界面时,测试一下与unit price textbox对应的验证控件。如果你输入的不是货币值或价格比0小,当点击“add products from shipment”按钮时,就会弹出一个客户端的警告消息.

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908092268.jpg
图12:点击process product shipment” 按钮后,将切换到添加界面.

第四步:添加产品

  剩下要做的事情是在“add products from shipment”按钮的click事件处理器里将产品添加到数据库.为此,我们可以创建一个productsdatatable,并为要插入的产品添加一个productsrow instance实例。一旦添加完productsrows后,我们就调用并把productsdatatable传递给productsbll class类的updatewithtransaction方法.记得我们是在第61章《》里创建的updatewithtransaction方法,该方法将productsdatatable传递给productstableadapter的updatewithtransaction方法.于是启动一个ado.net事务,tableadatper针对添加的每一个productsrow向数据库发出一个insert命令.如果所有的添加无误则提交事务,否则对事务回滚.

  对“add products from shipment”按钮的click处理器进行编码时,应该执行一些误差校验,因为我们没有在添加界面里使用requiredfieldvalidators控件,某个用户可能输入了产品的price而忽视里其name。由于产品的name是必须的,如果出现这种情况的话,我们需要提醒用户并中断inserts操作.完整的代码如下:

protected void addproducts_click(object sender, eventargs e)
{
 // make sure that the unitprice comparevalidators report valid data...
 if (!page.isvalid)
 return;

 // add new productsrows to a productsdatatable...
 northwind.productsdatatable products = new northwind.productsdatatable();
 for (int i = firstcontrolid; i <= lastcontrolid; i++)
 {
 // read in the values for the product name and unit price
 string productname = ((textbox)insertinginterface.findcontrol
  ("productname" + i.tostring())).text.trim();
 string unitprice = ((textbox)insertinginterface.findcontrol
  ("unitprice" + i.tostring())).text.trim();

 // ensure that if unitprice has a value, so does productname
 if (unitprice.length > 0 && productname.length == 0)
 {
  // display a warning and exit this event handler
  statuslabel.text = "if you provide a unit price you must also " +
  "include the name of the product.";
  statuslabel.visible = true;
  return;
 }

 // only add the product if a product name value is provided
 if (productname.length > 0)
 {
  // add a new productsrow to the productsdatatable
  northwind.productsrow newproduct = products.newproductsrow();

  // assign the values from the web page
  newproduct.productname = productname;
  newproduct.supplierid = convert.toint32(suppliers.selectedvalue);
  newproduct.categoryid = convert.toint32(categories.selectedvalue);
  if (unitprice.length > 0)
  newproduct.unitprice = convert.todecimal(unitprice);

  // add any "default" values
  newproduct.discontinued = false;
  newproduct.unitsonorder = 0;

  products.addproductsrow(newproduct);
 }
 }

 // if we reach here, see if there were any products added
 if (products.count > 0)
 {
 // add the new products to the database using a transaction
 productsbll productsapi = new productsbll();
 productsapi.updatewithtransaction(products);

 // rebind the data to the grid so that the producst just added are displayed
 productsgrid.databind();

 // display a confirmation (don't use the warning css class, though)
 statuslabel.cssclass = string.empty;
 statuslabel.text = string.format(
  "{0} products from supplier {1} have been added and filed under " +
  "category {2}.", products.count, suppliers.selecteditem.text,
  categories.selecteditem.text);
 statuslabel.visible = true;

 // revert to the display interface
 returntodisplayinterface();
 }
 else
 {
 // no products supplied!
 statuslabel.text = "no products were added. please enter the product " +
  "names and unit prices in the textboxes.";
 statuslabel.visible = true;
 }
}

  该事件处理器开始时检查page.isvalid属性返回的值是否为true。如果返回的为false,那就意味着至少有一个comparevalidators控件发现了无效的数据.此时,我们要么停止添加产品;要么将用户键入的unit price值向productsrow的unitprice属性赋值时,以抛出一个异常告终.

  接下来创建一个新的productsdatatable instance实例(也就是products),在一个for循环里遍历有关name和unit price的textbox控件,并将其text属性读取到局部变量productname 和 unitprice里.如果用户输入了产品的unit price值而没有输入产品的name值,那么statuslabel控件就会显示消息“if you provide a unit price you must also include the name of the product”并退出事件处理器.

  如果用户输入了产品name的话,就用productsdatatable的newproductsrow方法创建一个新的productsrow instance实例.对实例的productname属性而言,是用相应的textbox来赋值;而对supplierid 和 categoryid属性而言,是用添加界面顶部的相应的dropdownlist控件的selectedvalue属性值来赋值的;如果用户输入里产品的价格,就对productsrow instance实例的unitprice属性进行赋值,如果用户没有输入价格那么就置空,向数据库添加数据时unitprice的值就为null值.最后,对discontinued 和 unitsonorder属性用硬编码的值“false”和“0”分别赋值.

  完成对productsrow instance实例的相关属性赋值后,将其添加到productsdatatable.

  完成for循环后我们将检查是否已经添加了产品.毕竟,用户可能没有输入任何的信息就点击了“add products from shipment”按钮.如果在productsdatatable里至少存在一个产品,将调用productsbll class类的updatewithtransaction方法,接下来对名为productsgrid的gridview控件重新进行绑定,最新添加的产品就会出现在出现在展示界面里.statuslabel将被更新以显示一个确认消息,然后调用returntodisplayinterface,隐藏添加界面而显示展示界面.

  如果没有添加任何产品,添加界面照样会隐藏,不过会显示一个消息“no products were added. please enter the product names and unit prices in the textboxes”.

图13显示的情况是用户输入了unit price值而没有输入相应的产品name;图14显示的是成功添加3个产品后的展示界面.图15显示的是其中2个产品的界面(还有1个在前面那一页)

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908099324.jpg
图13:当输入unit price值,产品的name也是必需的

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908096596.jpg
图14:添加了3个由供应商mayumi提供的veggies类产品

http://www.lhsxpumps.com/_images/10qianwan/20171212/b_1_201712121908093583.jpg
图15:新添加的产品可以在gridview里的最后一页找到

  注意:本文使用的批添加逻辑将insert封装在一个事务里.要证实的话,我们可以有意的导入一个数据库级的错误(database-level error).比如:对productsrow instance实例的 categoryid属性而言,我们不像上面那样用categories dropdownlist控件的selected值来赋值,而是用i * 5对其赋值.这里的i是指介于1到5之间的循环索引值(loop indexer).因此,当添加2个或更多的产品时,第一个产品的categoryid值(5)是有效的,而后面的产品的categoryid值就无效了,因为其值与表categories里的categoryid值不匹配(译注:因为第2个产品的categoryid值为10;第3个的为15,依次类推).后果是第一个产品的insert操作成功,后面的操作失败,因为违反了外键约束.由于我们的该批添加是原子操作,第一个insert会回滚,数据库就会返回到开始批添加前的状态

结语:

  在本文及前2章,我们创建里对数据进行批更新、批删除、批添加的界面.这些界面都用到了事务。该事务,我们是在第61章《》里在数据访问层data access layer里添加的.在某些情况下,这些批数据处理界面可以极大的提升最终用户的效率.

  对处理批数据的考察到此为止.接下来的系列文章里我们将考察data access layer数据访问层里的多种更高级的情况。包括在tableadapter的方法里使用存储过程、在dal里进行连接和命令级(connection- and command-level)的设置、对连接字符串进行加密等.

  祝编程快乐!

作者简介

  本系列教程作者 scott mitchell,著有六本asp/asp.net方面的书,是4guysfromrolla.com的创始人,自1998年以来一直应用 微软web技术。大家可以点击查看全部教程《[翻译]scott mitchell 的asp.net 2.0数据教程》,希望对大家的学习asp.net有所帮助。

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网