質問編集履歴
4
説明詳しく
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
string id,pwで入力欄の値を取得して、nullの場合以下のアラートが出るようにしています。どうかご教授のほどよろしくお願いします。
|
4
4
|
|
5
|
+
Windows10pro 2017ver NET framework webforms 4.61ver
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
```ここに言語を入力
|
6
10
|
|
7
11
|
|
3
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -61,3 +61,193 @@
|
|
61
61
|
}
|
62
62
|
|
63
63
|
```
|
64
|
+
|
65
|
+
```ここに言語を入力
|
66
|
+
|
67
|
+
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="WebApplication_hara_kadai._01login.login" %>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<!DOCTYPE html>
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
76
|
+
|
77
|
+
<head runat="server">
|
78
|
+
|
79
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
80
|
+
|
81
|
+
<link rel="stylesheet" href="01login.css"/>
|
82
|
+
|
83
|
+
<title></title>
|
84
|
+
|
85
|
+
<style type="text/css">
|
86
|
+
|
87
|
+
#Button1 {
|
88
|
+
|
89
|
+
width: 148px;
|
90
|
+
|
91
|
+
margin-top: 0px;
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
#form1 {
|
96
|
+
|
97
|
+
text-align: center;
|
98
|
+
|
99
|
+
height: 90px;
|
100
|
+
|
101
|
+
width: 553px;
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
#Label5{ margin-left: 37px;
|
106
|
+
|
107
|
+
margin-right: 0px;
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
.auto-style1 {
|
112
|
+
|
113
|
+
width: 100px;
|
114
|
+
|
115
|
+
text-align:center;
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
.auto-style2 {
|
120
|
+
|
121
|
+
width: 100px;
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
.auto-style3 {
|
126
|
+
|
127
|
+
position: absolute;
|
128
|
+
|
129
|
+
top: 50%;
|
130
|
+
|
131
|
+
left: 50%;
|
132
|
+
|
133
|
+
transform: translateY(-50%) translateX(-50%);
|
134
|
+
|
135
|
+
width: 300px;
|
136
|
+
|
137
|
+
height: 109px;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
</style>
|
142
|
+
|
143
|
+
</head>
|
144
|
+
|
145
|
+
<body style="height: 125px; width: 1140px">
|
146
|
+
|
147
|
+
<form id="form1" runat="server">
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<br />
|
152
|
+
|
153
|
+
<p> <asp:Label ID="Label5" runat="server" Text="IDまたはパスワードに誤りがあります" ForeColor="Red" Width="548px" Height="55px" Font-Size="X-Large" Visible="false"></asp:Label></p>
|
154
|
+
|
155
|
+
<br />
|
156
|
+
|
157
|
+
<br />
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<table class = "auto-style3" >
|
162
|
+
|
163
|
+
<tr>
|
164
|
+
|
165
|
+
<td class="auto-style1">
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
<asp:Label ID="Label1" runat="server" Text="Label">ID</asp:Label>
|
170
|
+
|
171
|
+
</td>
|
172
|
+
|
173
|
+
<td class="auto-style2">
|
174
|
+
|
175
|
+
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged" Width="150px"></asp:TextBox>
|
176
|
+
|
177
|
+
<br />
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<asp:Label ID="Label3" runat="server" ForeColor="Red" CssClass="error"></asp:Label>
|
182
|
+
|
183
|
+
</td>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</tr>
|
188
|
+
|
189
|
+
<tr>
|
190
|
+
|
191
|
+
<td class="auto-style1"><asp:Label ID="Label2" runat="server" Text="Label">パスワード</asp:Label>
|
192
|
+
|
193
|
+
</td>
|
194
|
+
|
195
|
+
<td class="auto-style2">
|
196
|
+
|
197
|
+
<asp:TextBox ID="TextBox2" runat="server" OnTextChanged="TextBox2_TextChanged" Width="150px"></asp:TextBox>
|
198
|
+
|
199
|
+
<br />
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
<asp:Label ID="Label4" runat="server" ForeColor="Red" CssClass="error"></asp:Label>
|
204
|
+
|
205
|
+
</td>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</tr>
|
210
|
+
|
211
|
+
<tr>
|
212
|
+
|
213
|
+
<td class="auto-style1"> </td>
|
214
|
+
|
215
|
+
<td class="auto-style2">
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<asp:Button ID="Button1" runat="server" Text="次へ" OnCommand="Button1_Command" Width="157px" />
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
</td>
|
224
|
+
|
225
|
+
</tr>
|
226
|
+
|
227
|
+
<tr>
|
228
|
+
|
229
|
+
<td class="auto-style1"> </td>
|
230
|
+
|
231
|
+
<td class="auto-style2">
|
232
|
+
|
233
|
+
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="../03input1/input1.aspx">新規登録はこちら</asp:HyperLink>
|
234
|
+
|
235
|
+
</td>
|
236
|
+
|
237
|
+
</tr>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
</table>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</form>
|
246
|
+
|
247
|
+
</body>
|
248
|
+
|
249
|
+
</html>
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
```
|
2
説明追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
二次元配列の値を仮id,pwとして、入力チェックを行いたいのですが、c#での記入方法が検索してもわかりません。
|
1
|
+
二次元配列の値を仮id,pwとして、入力チェックを行いたいのですが、c#での記入方法が検索してもわかりません。イメージとしては、入力欄に仮id,pwが入力されたら次の画面へ遷移。idかpwのどちらかが間違っていたら"この~は使用できません"と表示させたいです。
|
2
|
+
|
3
|
+
string id,pwで入力欄の値を取得して、nullの場合以下のアラートが出るようにしています。どうかご教授のほどよろしくお願いします。
|
2
4
|
|
3
5
|
```ここに言語を入力
|
4
6
|
|
1
タグ追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|