form表单提交没有反应
从04-06.aspx提交到04-07.aspx
页面不跳转到04-07.aspx
只是刷新了一下04-06.aspx<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form name="form1" action="04-07.aspx" runat="server">
<asp:textbox id="data1" runat="server"/>+
<asp:TextBox ID="data2" runat="server"/>=?
<asp:Button ID="total" runat="server" Text="提交"/>
</form>
</body>
</html>
04-07.aspx<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
dim intData1 as integer
dim intData2 as integer
if request.QueryString("data1")<>"" and request.QueryString("data2")<>"" then
intdata1=Cint(request.QueryString("data1"))
intdata2=Cint(request.QueryString("data2"))
response.Write(intdata1+intdata2)
end if
%>
</body>
</html>
从04-06.aspx提交到04-07.aspx
页面不跳转到04-07.aspx
只是刷新了一下04-06.aspx<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form name="form1" action="04-07.aspx" runat="server">
<asp:textbox id="data1" runat="server"/>+
<asp:TextBox ID="data2" runat="server"/>=?
<asp:Button ID="total" runat="server" Text="提交"/>
</form>
</body>
</html>
04-07.aspx<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
dim intData1 as integer
dim intData2 as integer
if request.QueryString("data1")<>"" and request.QueryString("data2")<>"" then
intdata1=Cint(request.QueryString("data1"))
intdata2=Cint(request.QueryString("data2"))
response.Write(intdata1+intdata2)
end if
%>
</body>
</html>
解决方案 »
- 页面不跳转帮忙看看
- ASP.net网站发布到IIS后出问题了。。快被搞死了。
- 关于C#连接数据库
- 使用VB.NET编写的阳历与农历转换的算法谁有??????
- asp.net调用DLL问题!
- 如何得到table中一行的数据
- Global.asax中Application_Error页面跳转无效
- public class BasePage: System.Web.UI.Page,为所有页面定义了一个基类,但是提示下面错误,望赐教
- 没分了,问个问题
- 动态添加的RadioButton控件,怎么获得,它是否被选中
- asp.net弹出新窗口问题
- 关于Multilview 中切换时如何保存值的问题?? (顶者有分)
……………………;
……………………;
response.redirict("04-07.aspx");
asp.net2.0之前的只能提交到本身的页面
2.0可以提交到别的页面
搞定
postbackurl="...."