随笔分类 -  页面

AjaxPro组件实现前后台数据无刷新交互
摘要:1、添加引用:AjaxPro.dll、Microsoft.AjaxCommon.dll。2、web.config中加入:  <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Servic... 阅读全文
posted @ 2010-06-28 17:45 heart-in-sky 阅读(419) 评论(0) 推荐(0)
使用 StateServer 持久保存 Session 会话状态 !
摘要:ASP.NET 使用mode=”InProc”方式保存Session老是丢失,无奈改成StateServer 模式。session是工作在你的应用程序进程中的。asp.net进程、iis往往会在20分钟之后重启相关的应用程序,缓冲池满了(例如100个之后)也会重启,各种进程保护措施都会随时重新启动,因此InProc方式丢失session是很正常的事。csdn上明确告诉了这种... 阅读全文
posted @ 2010-06-28 14:23 heart-in-sky 阅读(212) 评论(0) 推荐(0)
web打印
摘要:设置IE,将站点加入受信任的站点并将受信任站点级别设为低<%@ Page Language="C#" AutoEventWireup="true" CodeFile="print.aspx.cs" Inherits="print" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww... 阅读全文
posted @ 2009-08-07 16:20 heart-in-sky 阅读(206) 评论(0) 推荐(0)
屏蔽表单的自动记忆功能
摘要:form中加入:AUTOCOMPLETE="off" 阅读全文
posted @ 2009-07-30 15:03 heart-in-sky 阅读(141) 评论(0) 推荐(0)
页面跳转提示框
摘要:Response.Write("<script>alert('您没该权限!');</script>");Response.Write("<script>window.location.href='../NoPower.aspx'</script>"); 阅读全文
posted @ 2009-05-06 12:03 heart-in-sky 阅读(287) 评论(0) 推荐(0)
页面传值
摘要:当在一个ASP.NET Web页面中进行操作时,在默认情况下向当前页进行提交。这种行为在ASP.NET出现之前并没有什么关系,但在 ASP.NET中当我们想向另外一个Web页提交一个Web Form时该如何做呢?在ASP.NET1.0中这个问题变得很难解决,但在 ASP.NET2.0中为开发人员提供了更容易的解决的技术:跨网页提交。这种技术允许一个网页在提交数据时提交给另外的一个页面。在跨网页提交... 阅读全文
posted @ 2009-04-07 11:49 heart-in-sky 阅读(242) 评论(0) 推荐(0)
模态窗口
摘要:.模态窗口的打开,model window open2.模态窗口的关闭,model window close3.模态窗口的传递参数,model window get valuse4.其他....,other .. 1.window.showModalDialog("DialogPage.aspx","newwin","dialogHeight: 200px; dialogWidth: 150px;... 阅读全文
posted @ 2008-04-21 16:11 heart-in-sky 阅读(4677) 评论(0) 推荐(0)
page不刷新
摘要:page.smartNavigation=true ; 阅读全文
posted @ 2008-04-01 16:54 heart-in-sky 阅读(129) 评论(0) 推荐(0)
打开窗口
摘要:1:打开新窗口(后台)HttpContext.Current.Response.Write("<script language='javascript'>window.open('"+"../Report/Print.aspx?formno="+formno +"');</script>"); 2:打开新窗口(前台)onclick="javascript:window.op... 阅读全文
posted @ 2008-03-24 17:26 heart-in-sky 阅读(156) 评论(0) 推荐(0)
子页面刷新及调用父页面方法
摘要:main.aspx: <form runat="server" id="form1"> ..... <asp:Button id="btn1" runat="server"style="display:none" /> </form> child.aspx: window.opener.document.form1.submit(); or window... 阅读全文
posted @ 2008-03-16 17:32 heart-in-sky 阅读(308) 评论(0) 推荐(0)
选择框触发dopostback事件
摘要:1:选择框页面选择页面JS触发控件的fireEvent事件:string js= "window.opener.document.Form1." + controlID + ".value='" + des + "';window.opener.document.Form1." + controlID +".fireEvent('onchange')";2:设置控件属性AutoPostBack="... 阅读全文
posted @ 2007-12-06 15:54 heart-in-sky 阅读(237) 评论(0) 推荐(0)