|
<%@ Page language="c#" Codebehind="frmSample.aspx.cs" AutoEventWireup="false" Inherits="SamWebApp.frmSample" %>
<%@ Register TagPrefix="uc1" TagName="frmUserControl" Src="frmUserControl.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>frmSample</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body bgColor="ghostwhite" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<uc1:frmusercontrol id="GenericUserControl" runat="server"></uc1:frmusercontrol><asp:panel id="Panel1" style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 64px" runat="server"
Height="120px" Width="648px">
<TABLE id="Table1" style="WIDTH: 376px; HEIGHT: 270px" cellSpacing="1" cellPadding="1"
rules="none" width="376" border="0">
<TR>
<TD style="WIDTH: 388px">
<asp:Label id="lblCustId" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Customer ID</asp:Label>
<asp:TextBox id="txtCustId" tabIndex="1" runat="server" Width="224px" MaxLength="5"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px; HEIGHT: 26px">
<asp:Label id="lblCompName" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Company Name</asp:Label>
<asp:TextBox id="txtCompName" tabIndex="2" runat="server" Width="224px" MaxLength="40"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px">
<asp:Label id="lblContName" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Contact Name</asp:Label>
<asp:TextBox id="txtContName" tabIndex="3" runat="server" Width="224px" MaxLength="30"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px; HEIGHT: 34px">
<asp:Label id="lblContTitle" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Contact Title</asp:Label>
<asp:TextBox id="txtContTitle" tabIndex="4" runat="server" Width="224px" MaxLength="30"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px; HEIGHT: 29px">
<asp:Label id="lblAddress" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Address</asp:Label>
<asp:TextBox id="txtAddress" tabIndex="5" runat="server" Width="224px" MaxLength="60"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px">
<asp:Label id="lblCity" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">City</asp:Label>
<asp:TextBox id="txtCity" tabIndex="6" runat="server" Width="224px" MaxLength="15"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px">
<asp:Label id="lblRegion" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Region</asp:Label>
<asp:TextBox id="txtRegion" tabIndex="7" runat="server" Width="224px" MaxLength="15"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px">
<asp:Label id="lblPostCode" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Postal Code</asp:Label>
<asp:TextBox id="txtPostalCode" tabIndex="8" runat="server" Width="224px" MaxLength="10"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px; HEIGHT: 25px">
<asp:Label id="lblCountry" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Country</asp:Label>
<asp:TextBox id="txtCountry" tabIndex="9" runat="server" Width="224px" MaxLength="15"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px">
<asp:Label id="lblPhone" runat="server" Width="144px" Height="18px" Font-Bold="True" ForeColor="Purple">Phone</asp:Label>
<asp:TextBox id="txtPhone" tabIndex="10" runat="server" Width="224px" MaxLength="24"></asp:TextBox></TD>
</TR>
<TR>
<TD style="WIDTH: 388px; HEIGHT: 23px">
<asp:Label id="lblFax" runat="server" Width="144px" Font-Bold="True" ForeColor="Purple">Fax</asp:Label>
<asp:TextBox id="txtFax" tabIndex="11" runat="server" Width="224px" MaxLength="24"></asp:TextBox><INPUT id="txtNew" type="hidden" runat="server">
</TD>
<TR>
<TD>
<DIV style="OVERFLOW: auto; WIDTH: 980px; HEIGHT: 240px">
<asp:DataGrid id="dgCustomer" runat="server" AutoGenerateColumns="False" BorderColor="Purple">
<ItemStyle ForeColor="DarkMagenta"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Purple"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="CustomerID" HeaderText="Customer ID"></asp:BoundColumn>
<asp:BoundColumn DataField="CompanyName" HeaderText="Company Name"></asp:BoundColumn>
<asp:BoundColumn DataField="ContactName" HeaderText="Contact Name"></asp:BoundColumn>
<asp:BoundColumn DataField="ContactTitle" HeaderText="Contact Title"></asp:BoundColumn>
<asp:BoundColumn DataField="Address" HeaderText="Address"></asp:BoundColumn>
<asp:BoundColumn DataField="City" HeaderText="City"></asp:BoundColumn>
<asp:BoundColumn DataField="Region" HeaderText="Region"></asp:BoundColumn>
<asp:BoundColumn DataField="PostalCode" HeaderText="Postal Code"></asp:BoundColumn>
<asp:BoundColumn DataField="Country" HeaderText="Country"></asp:BoundColumn>
<asp:BoundColumn DataField="Phone" HeaderText="Phone"></asp:BoundColumn>
<asp:BoundColumn DataField="Fax" HeaderText="Fax"></asp:BoundColumn>
<asp:ButtonColumn Text="Select" HeaderText="Select" CommandName="Select"></asp:ButtonColumn>
</Columns>
</asp:DataGrid></DIV>
</TD>
</TR>
</TABLE>
</asp:panel></form>
<DIV></DIV>
</body>
</HTML>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.