随笔分类 -  [01] ASP.NET

1 2 3 4 5 ··· 9 下一页
ASP.NET用于开发或设计网页/网站。
摘要:我的数据库连接字符串是这样的:server=MachineName\SQLEXPRESS;database=test;trusted_connection=true 感到很是奇怪,当单独部署运行web service时没问题,但把它发布到IIS, 访问就有问题了,查了下资料,如下: SYMPTOMS When you create a trusted connection from M... 阅读全文
posted @ 2012-09-25 18:35 emanlee 阅读(2158) 评论(0) 推荐(0) 编辑
摘要:浏览网页出现错误: Server Application Error The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail informatio... 阅读全文
posted @ 2012-09-25 18:07 emanlee 阅读(1382) 评论(0) 推荐(0) 编辑
摘要:I have code that selects - find and select - 1 item in a large listbox. This works Ok but most of the time the selected item isn't visible without scrolling down manualy. Is this possible by code? --... 阅读全文
posted @ 2010-11-11 11:40 emanlee 阅读(638) 评论(0) 推荐(0) 编辑
摘要:            Dim isSafari As Boolean = False             Dim bc As HttpBrowserCapabilities ... 阅读全文
posted @ 2010-10-22 22:07 emanlee 阅读(406) 评论(0) 推荐(0) 编辑
摘要:I am populating a DDL with a Title (text: length 255) from my Access DB. If I don’t define a width ,in IE. The DDL assumes a width of my webpage, which is fine because the scroll bar on the lef... 阅读全文
posted @ 2010-10-22 21:14 emanlee 阅读(391) 评论(0) 推荐(0) 编辑
摘要:1.DataKeyNames 属性指定表示数据源主键的字段。 当设置了 DataKeyNames 属性时,GridView 控件用来自指定字段的值(数据库中表的值)填充它的 DataKeys 集合,这提供了一种访问每个行的主键的便捷方法。(因为表中的ID列一般不显示给网页上,如对表中的列更新时,就需要ID列了) DataKeyNames就是数据库表的字段,可以设置多个。注意 若要以声明方式设置... 阅读全文
posted @ 2010-10-13 20:40 emanlee 阅读(4471) 评论(1) 推荐(0) 编辑
摘要:The 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive.   ddlName.SelectedIndex = 0;  ddlName.SelectedValue = ""; 阅读全文
posted @ 2010-10-07 11:28 emanlee 阅读(1010) 评论(0) 推荐(0) 编辑
摘要:  Protected Sub gdv_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles gdv.RowDataBound         If e.Row.RowType = DataControlRowTyp... 阅读全文
posted @ 2010-09-02 21:07 emanlee 阅读(993) 评论(0) 推荐(0) 编辑
摘要:Enable/Disable RequiredFieldValidator with Javascript   document.getElementById("requiredfieldvalidatorid").enabled = false;   <asp:DropDownList ID="ddlServiceName"... 阅读全文
posted @ 2010-08-31 21:27 emanlee 阅读(1728) 评论(0) 推荐(0) 编辑
摘要:Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Description: An unhandled exception occurred during the execution of the current web request. Ple... 阅读全文
posted @ 2010-07-19 17:47 emanlee 阅读(7435) 评论(0) 推荐(0) 编辑
摘要:现象: 浏览ASP页面提示 500内部错误 事件查看器中: [1]: 服务器无法加载应用程序 '/LM/W3SVC/1/ROOT'。错误是 '没有注册类别'。 有关此消息的详细信息,请访问 Microsoft 联机支持站点: http://www.microsoft.com/contentredirect.asp。 有关更多信息,请参阅在 http://go.microsoft.com/f... 阅读全文
posted @ 2010-06-25 17:50 emanlee 阅读(507) 评论(0) 推荐(0) 编辑
摘要:A potentially dangerous Request.Form value was detected from the client解决方案一: 在.aspx文件头中加入这句: <%@ Page validateRequest="false" %> 解决方案二: 修改web.config文件: <configuration> <system.web>... 阅读全文
posted @ 2010-06-19 10:56 emanlee 阅读(380) 评论(0) 推荐(0) 编辑
摘要:因为工作需要,需要安装IIS,但是单位的计算机全部为随机带的WINDOWS XP HOME版,不想安装盗版的专业版,于是按照网上介绍的方法安装,经过如下: (说明:计算机全部为 SP2 的HOME版) 事前准备 1、Windows XP HomeEdit 中文版 CD(拷在硬盘也可以) 2、Windows 2000 Server CD(最好也是中文版 下载 Window 2000 http://d... 阅读全文
posted @ 2010-05-22 13:08 emanlee 阅读(1174) 评论(0) 推荐(0) 编辑
摘要:DropDownList1.SelectedItem.Attributes.Add("style", "Color:GREEN") This is set when a person clicks a button, "resubmit order"... then the selected item is turned green so... 阅读全文
posted @ 2010-05-19 21:35 emanlee 阅读(535) 评论(0) 推荐(1) 编辑
摘要:相信互联网已经越来越成为人们生活中不可或缺的一部分。ajax,flex等等富客户端的应用使得人们越加“幸福”地体验着许多原先只能在C/S实 现的功能。比如Google机会已经把最基本的office应用都搬到了互联网上。当然便利的同时毫无疑问的也使页面的速度越来越慢。自己是做前端开发的,在性能方面,根据yahoo的调查,后台只占5%,而前端高达95%之多,其中有88%的东西是可以优化的。 以上是一张... 阅读全文
posted @ 2010-05-18 19:45 emanlee 阅读(585) 评论(0) 推荐(3) 编辑
摘要:安装之后要配置 “Web 服务扩展”   使用IIS6.0 在本机上建的网站访问时系统要求输入用户名和密码 1 IIS是否允许匿名访问,检查站点属性 2 WEB目录是否给了IIS足够的权限访问 3 IIS所使用的权限是否被更改了或者你之前设置的站点用户帐号被更改了。   安装 xp 2003 注意事项 阅读全文
posted @ 2010-04-26 17:58 emanlee 阅读(270) 评论(0) 推荐(0) 编辑
摘要:A common question by asp.net developers is what project model should I use for asp.net application? Web Site project (which introduced with VS 2005) or Web Application project (which delivered as add-... 阅读全文
posted @ 2010-04-20 20:32 emanlee 阅读(358) 评论(0) 推荐(0) 编辑
摘要:Setting environment to use Microsoft .NET Framework v2.0 SDK tools. For a list of SDK tools, see the 'StartTools.htm' file in the bin folder. C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0>asp... 阅读全文
posted @ 2010-04-13 19:33 emanlee 阅读(209) 评论(0) 推荐(0) 编辑
摘要:Setting environment to use Microsoft .NET Framework v2.0 SDK tools. For a list of SDK tools, see the 'StartTools.htm' file in the bin folder. C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0>asp... 阅读全文
posted @ 2010-04-13 18:36 emanlee 阅读(207) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 9 下一页