|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RegisterUser.aspx.cs" Inherits="RegisterUser" %>
<!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>Add New User</title>
<style type="text/css">
.style1 {
width: 80%;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div align="center">
<div align="left" class="style1">
<asp:GridView ID="GridViewUserList" runat="server" AutoGenerateColumns="False"
DataSourceID="LinqDataSource1" Width="400px">
<Columns>
<asp:TemplateField HeaderText="Registered Users">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("UniqueName", "~/User/{0}") %>'
Text='<%# Eval("Name") %>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Unique Name">
<ItemTemplate>
<asp:Label ID="HyperLink1" runat="server" Text='<%# Eval("UniqueName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="DataClassesDataContext"
Select="new (UniqueName, Id, Name)" TableName="Users">
</asp:LinqDataSource>
</div>
</div>
<div> </div>
<div align="center">
<div align="left" style="font-weight:bold;">Add New User</div>
</div>
<div align="center">
<table class="style1">
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
Full Name</td>
<td>
<asp:TextBox ID="TextBoxFullName" runat="server" Width="200px"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr>
<td>
Summary</td>
<td>
<asp:TextBox ID="TextBoxSummary" runat="server" Height="50px"
TextMode="MultiLine" Width="200px"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr>
<td>
Unique Name</td>
<td>
<asp:TextBox ID="TextBoxUniqueName" runat="server" Width="200px"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Label ID="LabelMessage" runat="server" Font-Bold="True" Font-Size="Small"
ForeColor="Red"></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="ButtonRegister" runat="server" onclick="ButtonRegister_Click"
Text="Register" />
</td>
<td>
</td>
</tr>
</table>
</div>
</form>
</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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.