![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ASP.NET对象
文章平均质量分 78
greatverve
Revit二次开发
展开
-
Response实例导学
1.在Page_Load事件添加以下代码: protected void Page_Load(object sender, EventArgs e) { string name = "大气象"; string age = "27"; Response.Write("你的姓名是:" + name + "" + "你的年龄是:" + age + "原创 2008-04-10 16:01:00 · 489 阅读 · 0 评论 -
HttpCookie实例导学
1.写入Cookie,在Page_Load事件添加代码如下: HttpCookie nc = new HttpCookie("newcookie"); nc.Values["name"] = "大气象"; nc.Values["age"] = "27"; nc.Values["dt"] = DateTime.Now.ToString(); Response.Cookies.Add(nc);原创 2008-04-10 16:08:00 · 596 阅读 · 0 评论 -
Request实例导学
等价方法Request.QueryString["b"]等价于Request["b"]if (this.Request.QueryString["b"] == null) 1.放两个textBox一个Button ID分别为:name,age,Button1 添加单击事件如下: protected void Button1_Click(object sender, Eve原创 2008-04-10 16:05:00 · 530 阅读 · 0 评论 -
HttpContext对象
1.应用一http://www.cnblogs.com/adsiz/articles/1047090.html /// /// 弹出JavaScript小窗口,并转向指定的页面 /// /// 弹出信息 /// 专转向的网页 public static void AlertAndRedirect(strin原创 2008-11-07 15:48:00 · 571 阅读 · 0 评论 -
Page.ViewSate
应用一 %@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewState_test.aspx.cs" Inherits="ViewState_test" %>html xmlns="http://www.w3.org/1999/xhtml" >head runat="server"> titl原创 2008-11-07 13:48:00 · 821 阅读 · 1 评论 -
HttpUtility.Encode与Server.Encode
在对URL进行编码时,该用哪一个?这两都使用上有什么区别吗?测试:string file="文件上(传)篇.doc";string Server_UrlEncode=Server.UrlEncode(file);string Server_UrlDecode=Server.UrlDecode(Server_UrlEncode);string HttpUtility_UrlEncode=System原创 2008-11-13 15:50:00 · 2155 阅读 · 0 评论 -
Page.Controls对象
实例一:前台%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>html xmlns="http://www.w3.org/1999/xhtml" >head runat="server"> title>无标题页t原创 2008-11-19 16:52:00 · 699 阅读 · 0 评论