2011年3月14日

摘要: 1.实现页面自动刷新把如下加入到<head>区域中:<meta http-equiv = "refresh" content = "5">其中"5"指每隔5秒刷新一次页面。2.页面自动跳转<meta http-equiv = "refresh" content = "5;url = " _mce_href="http://www.maticsoft.com">">http://www.maticsoft.com"& 阅读全文
posted @ 2011-03-14 15:01 云起的自学笔记 阅读(375) 评论(0) 推荐(1) 编辑
摘要: 以下内容摘自百度知道:1. get是从服务器上获取数据,post是向服务器传送数据。2. get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在URL中可以看到。post是通过HTTP post机制,将表单内各个字段与其内容放置在HTML HEADER内一起传送到ACTION属性所指的URL地址。用户看不到这个过程。3. 对于get方式,服务器端用Request.QueryString获取变量的值,对于post方式,服务器端用Request.Form获取提交的数据。4. get传送的数据量较小,不能大于2KB。post传送的数据量较大,一般被默认为不 阅读全文
posted @ 2011-03-14 11:08 云起的自学笔记 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 发送页: <form id="form1"action = "WebForm1.aspx" method ="post"> <div> <input name ="txtname" type ="text" value ="awei" /> <input type = "submit" value ="提交到WebForm1.aspx" /> </div> </form& 阅读全文
posted @ 2011-03-14 11:02 云起的自学笔记 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 发送页后台CS代码: protected void Button1_Click(object sender, EventArgs e) { Session["name"] = this.TextBox1.Text; //Application ["name"] = this.TextBox1.Text; Server.Transfer("WebForm1.aspx"); }接收页后台CS代码: protected void Page_Load(object sender, ... 阅读全文
posted @ 2011-03-14 10:37 云起的自学笔记 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 发送页: <form id="form1" runat="server"> <div> <asp:TextBox ID="TextBox1" runat="server">awei</asp:TextBox> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="进入WebForm1页面" /> 阅读全文
posted @ 2011-03-14 10:18 云起的自学笔记 阅读(556) 评论(0) 推荐(0) 编辑

导航