求助:asp.net不能显示
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" %><html>
<head>
</head>
<body>
<form method="post" id="form1" action="" runat="server">
<input type="text" name="name" runat="server">
<input type="submit" value="提交" runat="server" onclick="Clicka" >
</form>
</body>
</html>
WebForm1.aspx.cs 页面
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace WebApplication3
{
public partial class WebForm4 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Clicka(object sender, EventArgs e)
{
int name1 = Convert.ToInt32(Request.Form["name"]);
Response.Write("name1");
}
}