It's not who you are underneath, it's what you do that defines you

摘要: 关于HyperLink的NavigateUrl属性的链接地址带参数出错的问题问题描述:HyperLink控件的NavigateUrl=’~/PersonalManage/userInfo.aspx?uid=<%#Eval("userID")%>’运行结果,链接变成:http://localhost:1107/.../PersonalManage/userInfo.aspx?uid=<%#Eval("userID")%>也就是说绑定部分没有被解析方法一:NavigateUrl=’<%#Eval("userID&quo 阅读全文
posted @ 2012-06-01 13:53 金铭杰 阅读(1158) 评论(0) 推荐(0) 编辑
摘要: string fileNameNo = Path.GetFileName(FileUploadImg.PostedFile.FileName);//获取文件名和扩展名string DirectoryName = Path.GetDirectoryName(FileUploadImg.PostedFile.FileName);//获取文件所在目录string Extension = Path.GetExtension(FileUploadImg.PostedFile.FileName);//获取扩展名string fileName = Path.GetFileNameWithoutExtensi 阅读全文
posted @ 2012-06-01 13:52 金铭杰 阅读(1553) 评论(0) 推荐(0) 编辑
摘要: 在web.config配置<system.web> <httpRuntime executionTimeout="300" maxRequestLength="204800" useFullyQualifiedRedirectUrl="false"/></system.web> <!--设置文件上传时的系统参数--><httpRuntimemaxRequestLength="10240"useFullyQualifiedRedirectUrl="tru 阅读全文
posted @ 2012-05-31 16:55 金铭杰 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 类型“Microsoft.Office.Interop.Word.ApplicationClass”未定义构造函数错误 4317无法嵌入互操作类型“Microsoft.Office.Interop.Word.ApplicationClass”。请改用适用的接口。类型“Microsoft.Office.Interop.Word.ApplicationClass”未定义构造函数解决办法:在Visual Studio 中点击菜单项“视图->解决方案资源管理器”,在其中点开“引用”文件夹,在"Microsoft.Office.Interop.Word"上点击鼠标右键,选择“属 阅读全文
posted @ 2012-05-31 14:38 金铭杰 阅读(162) 评论(0) 推荐(0) 编辑
摘要: window.open ("default.aspx", "", "scrollbars=no,fullscreen=yes")或者在default.aspx页面中的body标签中写scroll="no" 阅读全文
posted @ 2012-05-31 12:23 金铭杰 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 引:Window_Open详解一、window.open()支持环境:JavaScript1.0+/JScript1.0+/Nav2+/IE3+/Opera3+二、基本语法:window.open(pageURL,name,parameters)其中:pageURL 为子窗口路径name 为子窗口句柄parameters 为窗口参数(各参数用逗号分隔)三、示例:<SCRIPT><!--window.open ('page.html','newwindow','height=100,width=400,top=0,left=0,toolb 阅读全文
posted @ 2012-05-31 12:22 金铭杰 阅读(110) 评论(0) 推荐(0) 编辑
摘要: HMTL代码:以下 <HEAD> <style> .CssStyle1 { text-decoration:none; } </style>后台代码:HyperLink1.CssClass = "CssStyle1 "; 阅读全文
posted @ 2012-05-31 12:21 金铭杰 阅读(1780) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <noscript><meta http-equiv="refresh" content="0;url=about:noscript"></noscript> <title>屏蔽鼠标右键、Ctrl+N、Shift+F10、Alt+F4、F11、F5刷新、退格键</ 阅读全文
posted @ 2012-05-31 12:20 金铭杰 阅读(1291) 评论(0) 推荐(0) 编辑
摘要: 系统是windows 2003,并且安装了IE8, 但当浏览网页的时候,发现总是会弹出一个安全提示的窗口,十分麻烦。进入internet options -> security -> 设置为 Default Level,但显示的安全级别依然为高,无法将其设置到"中".搜索一番之后,按以下操作进行:打开HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3将MinLevel改为10000 (默认值是12000)再次进入IE8安全设置,但安全级别依旧是 阅读全文
posted @ 2012-05-28 17:02 金铭杰 阅读(2388) 评论(1) 推荐(0) 编辑
摘要: 方法有:1: if(e.KeyChar = '\r')SendKeys.Send("{TAB}");但是 也许是我程序里处理了太多的键盘事件,用它总是反映很慢,有时候还死机。这是常用的2:把Form的KeyPreView设为true,然后在Form的KeyPress中增加下列代码即可: private void Form1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') this.SelectNextControl(this.ActiveControl 阅读全文
posted @ 2011-10-19 11:12 金铭杰 阅读(323) 评论(0) 推荐(0) 编辑

Brick walls are there for a reason :they let us prove how badly we want things