我不知道你要判断属性是做什么的,我觉得像下面这么写就不会有啥问题 if (!IsPostBack)
{
// bind();
}
{
// bind();
}
解决方案 »
- 国际化 asp.net 用于读取的替换的 中英文 变量 应存成什么形式
- fileupload选择图片后立即显示
- 一个小问题,却百思不得其解。。。。。
- GridView有关行绑定
- 这种情况,是正常的吗?
- 我在datagrid的footer里添加了一个textbox,如何得到textbox里的值?
- ====100分求一个取字符串的问题,请CSDN的朋友帮帮我,解决立即结帖=====
- 请教TreeView控件的使用
- 关于encodeURIComponent编码后,返回页面接收问题。
- 水晶报表批量打印的难题!!!急!
- 大侠帮分析,AutoCompleteExtender控件在这种情况下为什么不起作用
- js 怎么加密字符串 <html>
A页面里 有 服务器text控件,输入值,用js提交form 到 B页面 B页面load事件里 判断 IsPostBack 本来 IsPostBack 应该为 false ,结果 在 win8 下面 却是 true有喜欢研究的同学 可以试验一下
B.aspx 页面
-------------------------<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="B.aspx.cs" Inherits="PromotionManage.Promotion.B" %><!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">
<title>无标题页</title>
<script type="text/javascript">
function f()
{
form1.action = "B2.aspx";
form1.method = "post";
form1.submit();
}
</script>
</head>
<body>
<form id="form1" runat="server" method="post">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input type="button" value="提交" onclick="f();" /></div>
</form>
</body>
</html>------------------------------------
B2.aspx 后台代码protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this.Response.Write("第一次加载");
}
else
{
this.Response.Write("回发");
}
}
-------------------------
大家有用win8的 可以试验一下
在 win8系统里 用 2.0 netframenwork 测试结果 :回发
在 win8系统里 用 4.0 netframenwork 测试结果 :第一次加载
在win server2003 用 2.0 netframenwork 测试结果 :第一次加载 不知何解?