asp.net中如何回车触发指定按钮的事件
在.aspx页面中添加:
<SCRIPT LANGUAGE="javascript">
function SubmitKeyClick(button)
{
if (event.keyCode != 13) ;return;
{
event.keyCode=9;
event.returnValue = false;
document.all[button].click();
}
}</SCRIPT>
在Page_Load事件中添加:
textbox1.Attributes.Add("onkeydown","SubmitKeyClick('btnOK');");
相关文档:
1、安装IIS;
2、安装.NET Framework 3.5;
3、运行C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i;
4、新建虚拟目录(网站)地址对应文件夹(该文件夹包含:.master .aspx css js imge bin等等);
5、配置虚拟目录(网站)属性ASP.NET,版本为v2.0.50727,文档:默认文档为Default.aspx;
6、设置虚 ......
在asp.net中使用fckeditor ,页面使用them时,通过编辑器上传图片或文件提示
"Using themed css files requires a header control on the page"
解决办法:
在fckeditor的web.config文件中做如下修改
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<pages styleSheet ......
前台代码
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='<%=focus_width %>' height='<%=swf_height %>'>
<pa ......
因为服务器的性能有限,发现自从使用了 Castle + Nhibernate 之后,服务器在更新web站点之后的重新编译过程特别漫长,有时候都超过了1分钟,尽管发布的web程序也是编译好的。下面是web使用的动态库:
Castle.Core.dll
Castle.DynamicProxy2.dll
Castle.Facilities.AutomaticTransactionManagement.dll
Castle.Facilities ......