http://nfex.ru/index.php?title=ASP.NET_Tutorial/Data_Binding/DataSource_control&feed=atom&action=historyASP.NET Tutorial/Data Binding/DataSource control - История изменений2024-03-29T02:18:21ZИстория изменений этой страницы в викиMediaWiki 1.30.0http://nfex.ru/index.php?title=ASP.NET_Tutorial/Data_Binding/DataSource_control&diff=3149&oldid=prev в 15:30, 26 мая 20102010-05-26T15:30:57Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style="vertical-align: top;" lang="ru">
<td colspan="1" style="background-color: white; color:black; text-align: center;">← Предыдущая</td>
<td colspan="1" style="background-color: white; color:black; text-align: center;">Версия 15:30, 26 мая 2010</td>
</tr><tr><td colspan="2" style="text-align: center;" lang="ru"><div class="mw-diff-empty">(нет различий)</div>
</td></tr></table>http://nfex.ru/index.php?title=ASP.NET_Tutorial/Data_Binding/DataSource_control&diff=3150&oldid=prevAdmin: 1 версия2010-05-26T11:58:08Z<p>1 версия</p>
<p><b>Новая страница</b></p><div>== You bind a DataBound control to a DataSource control.==<br />
<br />
<br />
<br />
<br />
<!-- start source code --><br />
<br />
<source lang="csharp"><br />
A DataSource control is used to represent a particular type of data.<br />
The ASP.NET 3.5 Framework includes the following six DataSource controls:<br />
SqlDataSource: SQL relational database, including Microsoft SQL Server, Oracle, or DB2.<br />
LinqDataSource: Represents a LINQ to SQL query.<br />
AccessDataSource: Represents data retrieved from a Microsoft Access database.<br />
ObjectDataSource: Represents data retrieved from a business object.<br />
XmlDataSource: Represents data retrieved from an XML document.<br />
SiteMapDataSource: Represents data retrieved from a Site Map Provider. <br />
<br />
<%@ Page Language="C#" %><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"<br />
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head id="Head1" runat="server"><br />
<title>Bound GridView</title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<asp:GridView<br />
id="GridView1"<br />
DataSourceId="srcProducts"<br />
Runat="server" /><br />
<asp:SqlDataSource<br />
id="srcProducts"<br />
ConnectionString="Data Source=.\SQLExpress;<br />
AttachDbFilename=|DataDirectory|MyDatabase.mdf;<br />
Integrated Security=True;User Instance=True"<br />
SelectCommand="SELECT * FROM Products"<br />
Runat="server" /><br />
</div><br />
</form><br />
</body><br />
</html></source></div>Admin