博客园 联系 订阅 订阅 管理  

Blog Stats

News

昵称:nicesnow
园龄:5年10个月
粉丝:0
关注:0

随笔分类

文章分类

随笔档案

相册

.NET设计模设、高级编程

项目管理论坛

nc's world:

天行健,君子以自强不息
地势坤,君子以厚德载物

2007年1月19日 #

http://www.microsoft.com/downloads/thankyou.aspx?familyId=10CC340B-F857-4A14-83F5-25634C3BF043&displayLang=zh-cn

http://blog.csdn.net/keyler/archive/2006/11/17/1389609.aspx

 

posted @ 2007-01-19 08:46 nicesnow 阅读(58) 评论(0) 编辑

2007年1月12日 #

http://skygui.spaces.live.com/
posted @ 2007-01-12 12:06 nicesnow 阅读(73) 评论(0) 编辑

2007年1月9日 #

如何在DNN站点的虚拟目录下安装CS(Community Server) 第一次尝试安装CS(Community Server) ,想把DNN和CS结合起来,所以就在DNN的站点下面建了虚拟目录CSS存放CS的文件,但是,一打开运行,就出现如下错误 Line 37: Line 38: Line 39: Line 40: Line 41: 一运行,还是同样错误,看来只能把哪几个DLL Copy到CS的bin目录下了, DNNSQLMembershipProvider.dll DNNSQLProfileProvider.dll DNNSQLRoleProvider.dll DotNetNuke.dll DotNetNuke.HttpModules.DNNMembership.dll DotNetNuke.HttpModules.Exception.dll DotNetNuke.HttpModules.Personlization.dll DotNetNuke.HttpModules.URLRewrite.dll DotNetNuke.HttpModules.UsersOnline.dll 再运行,终于,这个问题不再出现了,但是又有了新的问题 Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Annoymous_id_module_not_enabled: Country Source Error: [No relevant source lines] Source File: none Line: 0 在google上查找了一下,果然,出现这个问题的人还挺多的, 在外面找到的解决方案 In CS web.config I removed ( commented out ) following lines: _______________________________________________________________________________ _______________________________________________________________________________ Now CommunityServer takes over DNN's Setting which enables anonymous Identification per default. It should also work if you set this option in both DNN's and CS's web.config in the same way! 还要在CS的web.config中注释掉的有这一句 OK,CS总算能运行起来了,不知道还有没有别的问题 ps: 补充一点, 由于,DNN的Timezone属性定义是 integer" allowAnonymous="true" /> 而CS的是 System.Double" defaultValue="0" /> 所以要把CS的CommunityServerComponents\Componets\Profile.cs文件作相庆的更改,把int转为dobule publicdoubleTimezone { get { objectobj; try//CSstoresthisasandouble"timezone"(hoursoffGMT) { obj=GetObject("timezone"); returnobj==null?0:(double)obj; } catch//DNNstoresthisasanINT"TimeZone"(MinutesoffGMT) { obj=GetObject("TimeZone"); returnobj==null?0:(double)(Convert.ToDouble(obj)/60); } } set { try//CSstoresthisasandouble"timezone"(hoursoffGMT) { if(value<-12||value>12) Set("timezone",0); else Set("timezone",value); } catch//DNNstoresthisasanINT"TimeZone"(MinutesoffGMT) { if(value<-12||value>12) Set("TimeZone",0); else Set("TimeZone",Convert.ToInt32(value*60)); } } } posted @ 2005-09-20 12:30 无心之柳.NET 阅读(779) |
如何不继承主目录的Web.config 我把DNN装在了站点主目录,把CS安装在其下的一个虚拟目录下,但是CS 应用程序继承了DNN的WEB.Config,一运行就出现 Parser Error Message: 找不到文件或程序集名称“DotNetNuke.HttpModules.UrlRewrite”,或找不到它的一个依赖项。尝试过, 都没有效果如何解决, 急,放一下首页,解决就删除
posted @ 2007-01-09 22:55 nicesnow 阅读(151) 评论(0) 编辑

2006年12月28日 #

最重要的部分共有两处:一个是存储过程,通过fileid把文件名取出来:

CREATE PROCEDURE {databaseOwner}{objectQualifier}GetTopics
    (
        
@ModuleID int
    )

    
AS

    
SELECT
    .
        inGuests,
        
'inImgUrl' = CASE WHEN F.FileName IS NULL THEN A.inImgUrl ELSE F.Folder + F.FileName END
From
    TopicsList A    
    
LEFT OUTER JOIN Files F ON A.inImgUrl = 'fileid=' + CONVERT(VARCHAR,F.FileID)
     
    
WHERE ModuleID = @ModuleID    

    
RETURN

    
GO
前面的businesslayer里面的代码如下
 protected string HeaderPic(string s)
        
{
   
if( s != "")
   
{
    
if( s.StartsWith("http://"))
    
{
     
return  s;
    }

    
return this.PortalSettings.HomeDirectory.TrimEnd('\\'+ "\\" + s;
   }
          
            
else
            
{
                
return "";
            }

        }

界面层如下
ImageUrl='<%# HeaderPic(DataBinder.Eval(Container.DataItem, "inImgUrl").ToString()) %>'
posted @ 2006-12-28 10:04 nicesnow 阅读(114) 评论(0) 编辑

   <DIV align="center"   id="contentpane" runat="server"
      style='
      overflow: scroll;
      overflow: auto;
      overflow: scroll;
      overflow-x: hidden;
      overflow-y: scroll;
      scrollbar-face-color: #ebf8e7;

      '></DIV>

用到叶面里可以直接写入aspx/ascx文件或者写入css文件调用。
asp:label id="lblContent" CssClass="Normal" Runat="server" style="OVERFLOW: auto;HEIGHT: 550px;font-size:12px"

posted @ 2006-12-28 09:43 nicesnow 阅读(98) 评论(0) 编辑

2006年12月25日 #

,又学了点关于存储过程的知识
CREATE PROCEDURE HVC_ChatRoom_UpdateTopic
    (
        
@topic_id int,
        
@title nvarchar(255),
        
@summary nvarchar(2000),
        
@time datetime,
        
@guests nvarchar(255),
        
@imgurl nvarchar(255)
    )
    
AS
    
UPDATE HVC_ChatRoom_TopicsList
    
SET

        inTitle 
= @title,
        inSummary 
= @summary,
        inGuests 
= @guests,
        inTime 
= @time,
        inImgUrl 
= @imgurl    
    
WHERE TopicId = @topic_id

    
GO
update数据时一定要把数据item的类型和长度写清楚,要是不写长度,系统会默认只取第一个字符。
数据的类型和长度要和当初建表时定义的类型长度一致。
posted @ 2006-12-25 17:18 nicesnow 阅读(118) 评论(0) 编辑

2006年12月21日 #

posted @ 2006-12-21 08:33 nicesnow 阅读(56) 评论(0) 编辑

2006年12月19日 #

posted @ 2006-12-19 11:11 nicesnow 阅读(197) 评论(0) 编辑

2006年12月18日 #

posted @ 2006-12-18 13:24 nicesnow 阅读(61) 评论(0) 编辑

2006年12月7日 #

posted @ 2006-12-07 14:10 nicesnow 阅读(131) 评论(0) 编辑