ASP.NET2.0ClubWebSiteStarterKit补丁

来源:互联网 发布:nginx lua 开发文档 编辑:程序博客网 时间:2024/05/16 14:26
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
ASP.NET2.0 Club Web Site Starter Kit 具有一个很大的缺陷:不支持中文。
这里给出两种解决方案供大家参考
方法一:
1)由于大家大部分都是用SQL SERVER2005 EXPRESS开发的,所以在建立好Club需要的数据表后,将每一个表的varchar类型更改为nvarchar。
2)将app_code目录下的DataSet.xsd文件里的AnsiString全部替换为String。
就可以解决这个问题。
我花费了大约10分钟找到并修改了上面的BUG,但是不是每一个人都很容易解决这各问题的 ^_^(开玩笑)

第二中解决方法是用SQL 2000数据库,将默认的语言由中文改为英文。

当然,如果你使用SQL 2000,你还需要配置web.config,并提供自定义Provider模型或者重写内置的Provider。

<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>