我们知道,在Windows中新建的快捷方式名称中都有" - 快捷方式"字样。但是,我们并不买微软的这个帐,十之八九都会手工删除这几个字。嫌累吧?Howtogeek会告诉你如何不让这几个字自动出现。
很简单,注册表位置:
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorer
右侧找到"link",把"1e 00 00 00"改为"00 00 00 00"即可。
注意:注册表生效需要注销或重启。
Read More →在VS2005发布网站的时候,出现了这个问题:.net2005发布网站报错问题(类型webusercontrol同时存在于...和...中)
原来是自己在定义类的时候出现了重复类定交,所以会出现错误!
改了类名之后,就OK了
在发布网站的时候,一开始不舌如何生成固定名的DLL文件,后来百度了一下,因为很常用,所以还是记下来:
方法:需下载MS提供的插件,经过简单的设置可生成自定义的文件名(.dll):
Web Deployment Projects with Visual Studio 2005
下载地址:
http://download.microsoft.com/download/c/c/b/ccb4877f-55f7-4478-8f16-e41886607a0e/WebDep
Read More →收集到的一个按钮样式!觉得还可以,所以记下来!
<style>
.btn1_mouseout {
BORDER-RIGHT: #7EBF4F 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7EBF4F 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px;
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#B3D997); BORDER-LEFT:
#7EBF4F 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER
Read More →调试快捷键
F6: 生成解决方案
Ctrl+F6: 生成当前项目
F7: 查看代码
Shift+F7: 查看窗体设计器
F5: 启动调试
Ctrl+F5: 开始执行(不调试)
Shift+F5: 停止调试
Ctrl+Shift+F5: 重启调试
F9: 切换断点
Ctrl+F9: 启用/停止断点
Ctrl+Shift+F9: 删除全部断点
F10: 逐过程
Ctrl+F10: 运行到光标处
F11: 逐语句<
Read More →定义与用法
The pre element defines preformatted text. The text enclosed in the pre element usually preserves spaces and line breaks. The text renders in a fixed-pitch font.
用pre元素可定义预先格式文字。所有在pre元素内文字的空白间隔以及换行都会被保留。
在HTML和XHTML中的区别
The "width" attribute of the pre element was deprecated in HTML 4.01.
在HTML4.01中pre元素的"width"属性不被支持。
The &
Read More →protected string GetUrl() { //取本页URL地址 //2004-3-3 wskyo string strTemp = ""; if(Request.ServerVariables["HTTPS"] == "off") { strTemp = "http://"; } else { strTemp = "https://"; } strTemp = strTemp + Request.ServerVariables["SERVER_NAME"]; if(Request.ServerVariables["SERVER_PORT"] != "80") { strTemp = strTemp + ":" + Request.ServerVariables["SERVER_PORT"]; } strTemp = strTemp + Request.ServerVariables["URL"]; if(Request.QueryString != null) { strTemp = strTemp + "?" + Request.QueryString; } return strTemp; } string myurl = GetUrl();Read More →
select中语句后面的WHERE语句是这样的:
WHERE (visit.type = ?) AND (visit.content_id = ?)
注意参数的顺序是type 在前,content_id 在后面!反过来不是不能正确显示数据据,今天为这个问题搞了好几个小时,不过总算解决了!
加油!
Read More →如果不断的话,对于不存在的type会报错,一开始想用的是try-catch语句,不过异常处理语句比较占资源!
找了一下,加个IF语句就可以了,记下来!
if (Request.QueryString["type"] != null)
{
return true;//存在
}
else
{
return
Read More →服务器
private void Page_Load(object sender, System.EventArgs e)
{
LinkButton1.Attributes.Add("onclick","openmessagewin()");
}
客户端: &n
Read More →