-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault2.aspx
58 lines (57 loc) · 2.75 KB
/
Default2.aspx
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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
function vals()
{
var re = /^[A-Za-z0-9 -]*[A-Za-z0-9][A-Za-z0-9 -]*$/;
alert(re.test(document.getElementById("testtxt").value))
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox runat="server" ID="testtxt" ></asp:TextBox>
<asp:Button ID="testbtn" runat="server" Text="submitss"/>
<%--<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
DataKeyNames="id" ForeColor="#333333" GridLines="None" OnRowCancelingEdit="GridView1_RowCancelingEdit"
OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
OnRowUpdating="GridView1_RowUpdating" AllowPaging="True"
onpageindexchanging="grdView_PageIndexChanging">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:CommandField HeaderText="Edit-Update" ShowEditButton="True" />
<asp:BoundField DataField="id" HeaderText="ID" ReadOnly="True" />
<asp:BoundField DataField="descp" HeaderText="Description" />
<asp:BoundField DataField="price" HeaderText="Price" />
<asp:CommandField HeaderText="Delete" ShowDeleteButton="True" />
</Columns>
<RowStyle BackColor="#E3EAEB" />
<EditRowStyle BackColor="#7C6F57" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>--%>
</div>
<table width="100%" style="font-size: small">
<tr>
<td style="width: 30%" align="center">
<span style="color: #990000; font-size: 140%">■</span> Contact us : contact@trojanslist.com
| <span style="color: #990000; font-size: 140%">■</span> <a href="Default2.aspx" class="myclass">Terms and conditions</a>
</td>
</tr>
<tr>
<td align="center" style="font-size: smaller">
<p>
Copyrights © 2011. All Rights Reserved.
</p>
</td>
</tr>
</table>
</form>
</body>
</html>