Advertisement
Advertisement
| 04.24.2008 at 07:55AM PDT, ID: 23350462 |
|
[x]
Attachment Details
|
||
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: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: |
<table class="SearchCustIDTable">
<tr>
<td>First Name:</td>
<td>
<asp:TextBox ID="FName" runat="server"></asp:TextBox>
</td>
<td>Email Address:</td>
<td>
<asp:TextBox ID="EmailAdd" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>Last Name:</td>
<td>
<asp:TextBox ID="LName" runat="server"></asp:TextBox>
</td>
<td>Post Code:</td>
<td>
<asp:TextBox ID="PostCode" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td><asp:Button ID="Button1" runat="server" Text="Search" /></td>
</tr>
</table>
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
SelectCommand="FindCustID" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="FName" Name="FirstName" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="LName" Name="LastName" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="EmailAdd" Name="Email" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="PostCode" Name="PostCode" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px"
CellPadding="2" DataKeyNames="CustID" DataSourceID="SqlDataSource1"
ForeColor="Black" GridLines="None" style="font-size: small" EnableViewState="true">
<FooterStyle BackColor="Tan" />
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="CustID" HeaderText="CustID" InsertVisible="False"
ReadOnly="True" SortExpression="CustID" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName"
SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="LastName"
SortExpression="LastName" />
<asp:BoundField DataField="Address1" HeaderText="Address1"
SortExpression="Address1" />
<asp:BoundField DataField="PostCode" HeaderText="PostCode"
SortExpression="PostCode" />
<asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
<asp:BoundField DataField="EmailAddress" HeaderText="EmailAddress"
SortExpression="EmailAddress" />
<asp:BoundField DataField="ContactTel" HeaderText="ContactTel"
SortExpression="ContactTel" />
<asp:BoundField DataField="DateJoined" DataFormatString="{0: dd/mm/yyy}"
HeaderText="DateJoined" SortExpression="DateJoined" />
</Columns>
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:GridView>
|