文章分类 -  ASP.NET&AJAX

摘要:Model:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceMaticso... 阅读全文
posted @ 2010-03-23 23:28 qinyi 阅读(246) 评论(0) 推荐(0)
摘要:1:POSTtry { var xmlhttp = new XMLHttpRequest(); } catch (e) { var xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); } xmlhttp.open("POST", "AjaxUpdate.aspx", false); xmlhttp.setRequestHeader("Content-... 阅读全文
posted @ 2010-03-22 18:58 qinyi 阅读(168) 评论(0) 推荐(0)
摘要:1.ClientScript.RegisterStartupScript(GetType(),"message","<script>alert('第一种方式,无白屏!');</script>");2.HttpContext.Current.Response.Write("<script>alert('第二种方式,有白屏!')</script>");3... 阅读全文
posted @ 2010-03-22 18:45 qinyi 阅读(22697) 评论(0) 推荐(0)
摘要:一. 使用QueryString变量    QueryString是一种非常简单也是使用比较多的一种传值方式,但是它将传递的值显示在浏览器的地址栏中,如果是传递一个或多个安全性要求不高或是结构简单的数值时,可以使用这个方法。 Response.Redirect( "target.aspx?param1=hello&param2=hi ") 接收页面: string str = Reque... 阅读全文
posted @ 2010-03-22 18:33 qinyi 阅读(209) 评论(0) 推荐(0)