文章分类 - ASP.NET
一些.NET(C#)注意事项以及问题的解决
摘要:IIS上面所有的webservices都出现异常,异常代码:The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" b...
阅读全文
摘要:contentWindow 兼容各个浏览器,可取得子窗口的 window 对象。contentDocument Firefox 支持,> ie8 的ie支持。可取得子窗口的 document 对象。在子级iframe设置 父级 iframe ,或 孙级 iframe 高度。 1 function showIframeH(){ 2 var parentWin = parent.document.getElementById("test"); 3 if(!parentWin) return false; 4 5 var sub = parentWin.contentWin
阅读全文
摘要:最近的项目用到这样一段代码://要根据后台取的值初始化页面显示protected void Page_Load(object sender, EventArgs e){if (!IsPostBack){GetGovShiftSetInfo();//此方法作用:取数据库数据来设置rbTwo状态if (rbTwo.Checked){//Page.RegisterStartupScript("", "<script>istwo();</script>"); //1.0的语法构造,已过时Page.ClientScript.Register
阅读全文
摘要:方法一:工程->属性->签名->为ClickOnce清单签名 去掉这个勾方法二:在"签名"中选择"创建测试证书..."按钮,建一个证书即可
阅读全文
摘要:表单form的提交有两种方式,一种是get的方法,一种是post 的方法.看下面代码,理解ASP.NET Get和Post两种提交的区别: 1 < form id="form1" method="get" runat="server"> 2 < div> 3 你的名字< asp:TextBox ID="name" runat="server">< /asp:TextBox>< br /> 4 < br /> 5 你的网站&l
阅读全文
摘要:在前台代码<OBJECT id="OBJECT1" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="播放器的高度" width="播放器的宽度" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT><PARAM NAME="_cx&qu
阅读全文