html部分
<label for="muxiaolianjie"></label>
<label>用户名 </label> <input type="text" name="_user" id="username" size="8" class="mailinputbox"/>
<label>密 码 </label> <input type="password" name="_pass" id="password" size="8" class="mailinputbox"/>
<input type="image" name="button" src="images/index2009_13.gif">
</form>
asp.net 代码如下:
{
string str_username = Request.Form["_user"];
string str_password = Request.Form["_pass"];
MODEL_stu_info model_stu = new MODEL_stu_info();
model_stu.User_name = str_username;
model_stu.Stu_password = str_password;
return model_stu;
}
通过下面的代码实现对用户名进行调用