Coding with .NET

Live with passion, coding with passion....

首页 新随笔 联系 订阅 管理

随笔分类 -  ASP.Net

摘要:There is a great feature in ASP.NET v2 that we can directly use embedded resources in compiled assemblies. For example, we have an image compiled in a assembly. Without this feature, we might have to ... 阅读全文
posted @ 2005-08-07 13:09 Lin 阅读(1706) 评论(2) 推荐(0)

摘要:在 .net 1.0/1.1 中,.net framework给我们提供了基于 xml 文件的配置系统,使我们能够非常方便的读取和扩展配置数据。在 .net 2.0 中,这种基于 xml 文件的配置系统被进一步改善了,更容易被读取和扩展,而且增加了在运行时更改配置和加密配置数据的支持。 如何配置应用程序在 .net 配置系统中一般包括两种类型的元素: Section: 配置节。 Section G... 阅读全文
posted @ 2005-07-27 16:55 Lin 阅读(3553) 评论(7) 推荐(0)

摘要:From: http://blogs.worldnomads.com.au/matthewb/archive/2004/01/12/194.aspx Its suprising how many people are attempting to do team development with ASP.NET, or even just .NET, and have not even known ... 阅读全文
posted @ 2005-06-17 12:43 Lin 阅读(1834) 评论(4) 推荐(0)

摘要:最近做一个项目,需要在数据库中动态创建表格(Create Table)来保存数据。为了保证表格名称的唯一,我将新创建表格的名称定义为“[prefix]_[guid]”。但是在创建表格的同时需要做一些其他相关的事情,而且需要保证这两个动作的事务性。 原来在看 Sql Server 的联机帮助的时候,看到有一些在事务不能使用的语句,误将Create TABLE也包含在内了!在开... 阅读全文
posted @ 2005-06-13 12:49 Lin 阅读(2207) 评论(0) 推荐(0)

摘要:缓存的作用相信大家都很清楚,我就不多说了。大家可以看看这篇文章: ASP.NET Micro Caching: Benefits of a One-Second Cache 。 另外,也推荐大家阅读这篇文章: Caching Architecture Guide for .NET Framework Applications 。 1. asp.net 缓存功能的不足 在 .net framew... 阅读全文
posted @ 2005-06-05 17:59 Lin 阅读(4912) 评论(13) 推荐(0)

摘要:前言 从第一次接触 asp.net 到现在差不多快两年了。在这两年时间里,我碰到了大堆大堆的问题,不知道敖过多少个通宵,从空白开始逐渐了解和认识 HTML 语法、客户端脚本、asp.net 的架构等。我很愿意将我的一些经验拿出来和大家一起分享。当然也免不了错误和了解不够深入的地方,也非常欢迎大家的任何意见和评论! 我以后将逐渐写一个《漫谈 asp.net》的系列文章。在这些文章里面,将会涉及到... 阅读全文
posted @ 2005-06-03 00:05 Lin 阅读(6256) 评论(9) 推荐(0)

摘要:在 asp.net 中,在为服务器端控件添加客户端脚本(比如 onclick 事件)时,比较常用的方法就是设置此服务器端控件的 Attributes。比如: control.Attributes["onclick"] = "return(window.confirm('....'));"; 。然而,在使用上述方法的时候,我们必须要拥有此控件的引用。可是,在某些情况下,我们是不太好获取(或者说获取非... 阅读全文
posted @ 2005-06-01 23:53 Lin 阅读(2262) 评论(13) 推荐(0)

摘要:I guess most of us may be confronted with a same issue: we can not see our assemblies displayed in Add Reference dialog box in Visual Studio .net. Generally, an assembly may be used by several solut... 阅读全文
posted @ 2005-05-30 22:55 Lin 阅读(484) 评论(0) 推荐(0)

摘要:Visual studio is a powerful IDE for languages such as C#, C++.net, VB.net. However, because there are so many functions, it's a bit difficult for a developer to become familiar with visual studio. It... 阅读全文
posted @ 2005-05-30 22:49 Lin 阅读(2126) 评论(5) 推荐(0)