1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Page sans titre</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="InfosLigneSup1" HeaderText="InfosLigneSup1"
SortExpression="InfosLigneSup1" />
<asp:BoundField DataField="InfosLigneSup6" HeaderText="InfosLigneSup6"
SortExpression="InfosLigneSup6" />
<asp:BoundField DataField="InfosLigneSup7" HeaderText="InfosLigneSup7"
SortExpression="InfosLigneSup7" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" CacheDuration="1800"
ConnectionString="<%$ ConnectionStrings:QFactPMEConnectionString %>"
EnableCaching="True"
ProviderName="<%$ ConnectionStrings:QFactPMEConnectionString.ProviderName %>"
SelectCommand="SELECT [InfosLigneSup1], [InfosLigneSup6], [InfosLigneSup7] FROM [CommandesLignes] WHERE ([InfosLigneSup1] = ?)">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="InfosLigneSup1"
PropertyName="Text" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</form>
</body>
</html> |
Partager