- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.aspx
More file actions
Latest commit
95 lines (89 loc) · 4.13 KB
/
Copy pathexample.aspx
File metadata and controls
95 lines (89 loc) · 4.13 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<%@ Language="C#" Inherits="jCryption.SecurePage"%>
<html>
<head>
<scripttype="text/javascript"src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<scripttype="text/javascript"src="Scripts/jquery.jcryption.3.1.0.js"></script>
<scripttype="text/javascript">
$(function () {
$("#normal").jCryption({
getKeysURL:"<%= Request.Path %>?getPublicKey=true",
handshakeURL:"<%= Request.Path %>?handshake=true"
});
});
</script>
</head>
<body>
<h1>ASPX example</h1>
<formid="normal"class="general"method="post">
<fieldset>
<tableborder="0"cellspacing="5"cellpadding="0">
<tbody>
<tr>
<td>Sex:</td>
<td>
<inputclass="radio"name="Sex"type="radio"value="male"checked="checked" />Male
<inputclass="radio"name="Sex"type="radio"value="female" />Female</td>
</tr>
<tr>
<td>Firstname:</td>
<td>
<inputclass="text"name="Firstname"type="text"value="John" /></td>
</tr>
<tr>
<td>Lastname:</td>
<td>
<inputclass="text"name="Lastname"type="text"value="Wayne" /></td>
</tr>
<tr>
<td>E-Mail:</td>
<td>
<inputclass="text"name="Email"type="text"value="john@wayne.com" /></td>
</tr>
<tr>
<td>What would you like to eat?</td>
<td>
<inputclass="checkbox"name="Food[]"type="checkbox"value="pizza"checked="checked" />Pizza
<inputclass="checkbox"name="Food[]"type="checkbox"value="hamburger" />Hamburger
<inputclass="checkbox"name="Food[]"type="checkbox"value="salad"checked="checked" />Salad
<inputclass="checkbox"name="Food[]"type="checkbox"value="steak" />Steak</td>
</tr>
<tr>
<td>Age:</td>
<td>
<selectname="age">
<optionvalue="under 18"selected="selected">under 18</option>
<optionvalue="over 18">over 18</option>
<optionvalue="over 30">over 30</option>
</select></td>
</tr>
<trvalign="top">
<tdvalign="top">I like (you can select more than one):</td>
<td>
<selectname="likes[]"size="5"multiple="multiple">
<optionvalue="Michael Jackson">Michael Jackson</option>
<optionvalue="rainy wheater"selected="selected">rainy wheater</option>
<optionvalue="a hot summer">a hot summer</option>
<optionvalue="small cats"selected="selected">small cats</option>
<optionvalue="funny movies">funny movies</option>
<optionvalue="I like everything"selected="selected">I like everything</option>
</select></td>
</tr>
<tr>
<td></td>
<td>
<inputtitle="Submit"alt="Submit"name="submitButton"type="submit"value="Submit"class="submit" />
<inputtitle="Reset"alt="Reset"name="reset"type="reset"value="Reset" /></td>
</tr>
</tbody>
</table>
</fieldset>
</form>
<div>
<ul>
<% foreach (var _k inRequest.Form.AllKeys){ %>
<li><b><%=_k%></b> = <span><%=Request.Form[_k]%></span></li>
<% } %>
</ul>
</div>
</body>
</html>