导航

2009年7月29日

摘要: 1.通过控件的Attributes属性注册客户端JavaScript 如在Page_Load中,Button1.Attributes.Add("onclick", "javascript:alert('多加注意!!!')");2.通过Page.ClientScript.RegisterStartupScript和Page.ClientScript.RegisterClientScriptBlock... 阅读全文

posted @ 2009-07-29 19:45 鸡尾虾的壳 阅读(210) 评论(0) 推荐(0) 编辑

摘要: 含义:保存客户端上期请求的URL。1.在服务器端通过Response.Redirect导航后,保存上一个页面的信息。2.在客户端JS中,通过document.location.href导航后,返回null。3.在服务器Page_Load事件中,通过Server.Transfer导航后,返回null。用途:和PreviousPage属性类似,可以在Page_Load中判断客户端是如何导航到当前页面的... 阅读全文

posted @ 2009-07-29 19:03 鸡尾虾的壳 阅读(734) 评论(0) 推荐(0) 编辑