Вы находитесь на странице: 1из 2

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.

cs" Inheri
ts="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
&nbsp;
<asp:Button ID="Button1" runat="server" Style="z-index: 100; left: 474px
; position: absolute;
top: 56px" Text="Show" OnClick="Button1_Click" />
<asp:Panel ID="pnlShow" runat="server" BackColor="#FF8080" Height="188px
" Style="z-index: 101;
left: 217px; position: absolute; top: 340px" Width="483px">
<asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left:
255px; position: absolute;
top: 30px"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server" Style="z-index: 101; left:
253px; position: absolute;
top: 80px"></asp:TextBox>
<asp:TextBox ID="TextBox3" runat="server" Style="z-index: 102; left:
254px; position: absolute;
top: 126px"></asp:TextBox>
<asp:Label ID="Label1" runat="server" ForeColor="#E0E0E0" Style="z-i
ndex: 103; left: 132px;
position: absolute; top: 31px" Text="Company"></asp:Label>
<asp:Label ID="Label2" runat="server" ForeColor="#E0E0E0" Style="z-i
ndex: 104; left: 137px;
position: absolute; top: 84px" Text="Address"></asp:Label>
<asp:Label ID="Label3" runat="server" ForeColor="#E0E0E0" Style="z-i
ndex: 105; left: 132px;
position: absolute; top: 128px" Text="Website"></asp:Label>
<asp:Button ID="Button2" runat="server" Style="z-index: 107; left: 2
21px; position: absolute;
top: 156px" Text="Close" />
</asp:Panel>
<asp:GridView ID="gvComp" DataKeyNames="CompId" runat="server" AutoG
enerateColumns="False" Width="70%" BorderStyle="Solid" BorderWidth="1px" CellPad
ding="4" CellSpacing="2" ForeColor="#2f66bb" OnRowCommand="gvComp_RowCommand"
style="z-index: 103; left: 152px; position: absolute; top: 90px" >
<Columns >
<asp:BoundField DataField="Comany" HeaderText="Company Name">
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="Website" HeaderText="Company Website"
>
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:ButtonField Text="Show" HeaderText="Show" CommandName="cmd
Show" ImageUrl="~/Show.gif" ButtonType="Image">
</asp:ButtonField>
<asp:ButtonField Text="Delete" HeaderText="Delete" CommandName
="CmdDelete" ImageUrl="~/close.gif" ButtonType="Image" />
</Columns>
<RowStyle BackColor="White" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" F
oreColor="White" />
<PagerStyle BackColor="#CCCCCC" ForeColor="#2F66BB" Hori
zontalAlign="Left" />
<HeaderStyle BackColor="#2F66BB" Font-Bold="True" ForeCo
lor="White" />
</asp:GridView>
</div>
</form>
</body>
</html>

Вам также может понравиться