高手帮个忙:jsp转化为asp.net

来源:百度知道 编辑:UC知道 时间:2024/05/22 03:40:10
哪位大哥帮帮忙,把这段jsp代码转化为asp.net的。数据库为access
enter.jsp(登录页面,用来验正身份的)
-----------------------------------------------
<%@ page contentType="text/html;charset=gb2312"%>
<html>
<title>个人成绩查询登录</title>
<body>
<center>
<font color=blue size=4><b><i>
请输入你的学号和密码</b></i>
</font>
<hr>
<form action="result.jsp" method="post">
<table border="1">
<tr><th bgcolor="yellow">学号</th><td>
<input type="text" size=10 name="number"></td></tr>
<tr><th bgcolor="yellow">密码</th><td>
<input type="password" size=10 name="password"></td></tr>
<tr><td colspan="2" align="center">
<input type="submit" vaule="查询

两者的编程思想都不一样。只好重写代码了。
================demo\enter.aspx=================
<%@ Page Title="个人成绩查询登录" Language="C#" AutoEventWireup="true" CodeFile="enter.aspx.cs"
Inherits="DEMO_enter" %>

<!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" />
<body>
<form id="form1" runat="server">
<asp:MultiView ID="mvMain" ActiveViewIndex="0" runat="server">
<asp:View runat="server">
<tab