标题:求助:asp.net不能显示
取消只看楼主
lbj163
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2012-7-26
结帖率:0
已结贴  问题点数:20 回复次数:0 
求助: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");
         

        }
    }


页面显示不出input提交的值      请大家给看看  是哪出问题了!  谢谢
搜索更多相关主题的帖子: html head server action method 
2012-07-26 10:48



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-374143-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.260832 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved