%@ Page Language=';C#'; %%26gt;
%26lt;!DOCTYPE html PUBLIC ';-//W3C//DTD XHTML 1.1//EN';
';http://www.w3.org/TR/xhtml11/DTD/xhtml1鈥?br>
%26lt;script runat=';server';%26gt;
%26lt;/script%26gt;
%26lt;html %26gt;
%26lt;head runat=';server';%26gt;
%26lt;title%26gt;Untitled Page%26lt;/title%26gt;
%26lt;/head%26gt;
%26lt;body%26gt;
%26lt;form id=';form1'; runat=';server';%26gt;
%26lt;div%26gt;
%26lt;asp:SqlDataSource ID=';productsDataSource'; Runat=';server';
';SelectCommand=';SELECT [ProductID], [ProductName], '; %26amp; _
';[QuantityPerUnit], [UnitPrice], [UnitsInStock] '; %26amp; _
';FROM [Products]';
ConnectionString=
';%26lt;%$ ConnectionStrings:NWConnectionString %%26gt;';
DataSourceMode=';DataReader';%26gt;
%26lt;/asp:SqlDataSource%26gt;
%26lt;asp:GridView ID=';productGridView'; Runat=';server';
DataSourceID=';productsDataSource';
DataKeyNames=';ProductID'; AutoGenerateColumns=';False';%26gt;
%26lt;Columns%26gt;
%26lt;asp:BoundField ReadOnly=';True';
HeaderText=';ProductID'; InsertVisible=';False';
DataField=';ProductID';
SortExpression=';ProductID';%26gt;%26lt;/asp:BoundFi鈥?br>
%26lt;asp:BoundField HeaderText=';ProductName';
DataField=';ProductName';
SortExpression=';ProductName';%26gt;%26lt;/asp:Bound鈥?br>
%26lt;asp:BoundField HeaderText=';QuantityPerUnit';
DataField=';QuantityPerUnit';
SortExpression=';QuantityPerUnit';%26gt;%26lt;/asp:B鈥?br>
%26lt;asp:BoundField HeaderText=';UnitPrice';
DataField=';UnitPrice'; SortExpression=';UnitPrice';%26gt;
%26lt;/asp:BoundField%26gt;
%26lt;asp:BoundField HeaderText=';UnitsInStock';
DataField=';UnitsInStock';
SortExpression=';UnitsInStock';%26gt;%26lt;/asp:Boun鈥?br>
%26lt;/Columns%26gt;
%26lt;/asp:GridView%26gt;
%26lt;/div%26gt;
%26lt;/form%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;How to update particular row in gridview in Asp.net 2.0 in 3 tier architecture?
You might find this page useful:
http://msconline.maconstate.edu/tutorial鈥?/a>
No comments:
Post a Comment