P
Paul K
I'm having a bit of trouble understanding how to get an
asp.net page to look and feel like the asp page I have
already created. It's a basic login page, which I have
attempted to create in the vs html editor as so (just the
form code):
<form id="Form1" method="post" runat="server">
<asp:table id="Table1" runat="server"
HorizontalAlign="Center" CssClass="LogInHead"
Width="300px">
<asp:TableRow CssClass="LogIn">
<asp:TableCell Text="Log In to EPES"></asp:TableCell>
</asp:TableRow>
</asp:table>
<asp:table id="Table2" HorizontalAlign="Center"
CssClass="LogInBody" Width="300px" Runat="server">
<asp:TableRow>
<asp:TableCell CssClass="LogInDesc" Text="User
ID:"></asp:TableCell>
<asp:TableCell CssClass="LogInCtrl">
<asp:TextBox ID="txtUID" runat="server" Width="150px"
MaxLength="20" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell CssClass="LogInDesc"
Text="Password:"></asp:TableCell>
<asp:TableCell CssClass="LogInCtrl">
<asp:TextBox ID="txtPassword" Runat="server"
Width="150px" MaxLength="20" TextMode="Password" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>
<asp:Button ID="btnSubmit" Runat="server" Text="Log In" />
</asp:TableCell>
</asp:TableRow>
</asp:table>
</form>
I have tried to drag a button on to the table control in
the designer (which didn't work). The method I have used
above displays the page the way I want it to, but I can't
seem to find a way to link the controls (specifically the
button) to a server-side event.
Any help (or any links) would be greatly appreciated.
Paul K
asp.net page to look and feel like the asp page I have
already created. It's a basic login page, which I have
attempted to create in the vs html editor as so (just the
form code):
<form id="Form1" method="post" runat="server">
<asp:table id="Table1" runat="server"
HorizontalAlign="Center" CssClass="LogInHead"
Width="300px">
<asp:TableRow CssClass="LogIn">
<asp:TableCell Text="Log In to EPES"></asp:TableCell>
</asp:TableRow>
</asp:table>
<asp:table id="Table2" HorizontalAlign="Center"
CssClass="LogInBody" Width="300px" Runat="server">
<asp:TableRow>
<asp:TableCell CssClass="LogInDesc" Text="User
ID:"></asp:TableCell>
<asp:TableCell CssClass="LogInCtrl">
<asp:TextBox ID="txtUID" runat="server" Width="150px"
MaxLength="20" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell CssClass="LogInDesc"
Text="Password:"></asp:TableCell>
<asp:TableCell CssClass="LogInCtrl">
<asp:TextBox ID="txtPassword" Runat="server"
Width="150px" MaxLength="20" TextMode="Password" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>
<asp:Button ID="btnSubmit" Runat="server" Text="Log In" />
</asp:TableCell>
</asp:TableRow>
</asp:table>
</form>
I have tried to drag a button on to the table control in
the designer (which didn't work). The method I have used
above displays the page the way I want it to, but I can't
seem to find a way to link the controls (specifically the
button) to a server-side event.
Any help (or any links) would be greatly appreciated.
Paul K