最近利用空闲时间所做的一个小型个人网站,主要是用来发布好的资料用的,大家可以看看,也可以发表自已的文章
http://friend.qsh.in/

解决方案 »

  1.   

    做得相当不错把上面照片,简历那行的button,也加上onmouse方法 ,就更好了
      

  2.   

    为什么ASP.NET的链接都打不开?
      

  3.   

    我想知道你的HTML是怎么生成静态页面的,可以教下我吗    QQ:285921021  或者你留个你的QQ给我
      

  4.   

    其实做成这样已经很不错了
    以前我做的时候,都是一个模块一个模块做的,到了最后重新界面设计,把这些模块在整合在一个系统中的,这个就是我的毕业合计。呵呵,给学校做的,现在正运行在学校服务器上。其实现在流行的DIV+CSS布局,楼主的网站里应该用到了这个。
      

  5.   


    string TempHtml = HtmlCode;
            try
            {
                string Sql = "select id,title,img,adder,addtime,readsum,content from news where id=" + PageId;
                SqlDataReader dr = db.SeleteDataDr(Sql);
                string _NewsTitle = "";
                string _NewsAdder = "";
                string _NewsReadSum = "";
                string _NewsAddtime = "";
                string _NewsContent = "";
                if (dr.Read())
                {
                    _NewsTitle = dr["title"].ToString();
                    _NewsAdder = dr["adder"].ToString();
                    _NewsAddtime = dr["addtime"].ToString();
                    _NewsReadSum = dr["readsum"].ToString();
                    _NewsContent = dr["content"].ToString();
                    if (dr["img"].ToString().Trim() != "")
                        _NewsContent = "<img src='../upImg/" + dr["img"].ToString() + "' Border='0' style='MARGIN-BOTTOM:10px;MARGIN-RIGHT:10px;border-color:#E2E2E2;' align='left'>" + _NewsContent;
                }
                else
                {
                    LabState.Text += "<br>" + PageId + " <font color='red'>该新闻不存在!</font>";
                    dr.Close(); 
                    return;
                }
                dr.Close();
                TempHtml = TempHtml.Replace("NewsTitle", _NewsTitle.ToString());
                TempHtml = TempHtml.Replace("NewsReadSum", _NewsReadSum.ToString());
                TempHtml = TempHtml.Replace("NewsAdder", _NewsAdder.ToString());
                TempHtml = TempHtml.Replace("NewsAddtime", _NewsAddtime.ToString());
                TempHtml = TempHtml.Replace("NewsContent", _NewsContent.ToString());
                TempHtml = TempHtml.Replace("readsumPageId", PageId.ToString());
                TempHtml = TempHtml.Replace("'", Convert.ToString('"'));
                //System.Text.Encoding enc = System.Text.Encoding.GetEncoding("gb2312");
                string path = Server.MapPath("../news/") + PageId + ".shtm";
                StreamWriter sw = new StreamWriter(path, false, System.Text.Encoding.GetEncoding("gb2312"));//定义写入流
                sw.Write(TempHtml);//生成index.html
                sw.Flush();
                sw.Close();
                LabState.Text += "<br>"+PageId + " 该新闻生成成功!";
            }
            catch (Exception ex)
            {
                LabState.Text += "<br>错误:" + ex.Message;
            }这是我以前项目中的部分代码,拿出来看下。呵呵,不是很好
      

  6.   

    http://friend.qsh.in/images/photos/01.jpg
    不知道照片中哪位是楼主 呵呵
      

  7.   

    http://friend.qsh.in/article/News/20080730051942.html
    类似于这样的页面,天头应该留大些。
      

  8.   

    Internet Explorer 无法显示该页面 
       
       最可能的原因是:
    未连接到 Internet。 
    该网站遇到了问题。 
    在地址中可能存在键入错误。 
      

  9.   

    你很有才呀楼主,能留个联系方式吗?我很想结交你这样的程序员朋友。有时间给我发邮件呀?[email protected]
      

  10.   

    浏览器兼容性有待加强
    用FireFox访问,页面布局混乱
      

  11.   

    Server Error in '/' Application.
    --------------------------------------------------------------------------------Unspecified error 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: Unspecified errorSource Error: 
    Line 43:                 connection = new OleDbConnection(connectionString);
    Line 44:             if (connection.State == ConnectionState.Closed)
    Line 45:                 connection.Open();
    Line 46: 
    Line 47:             OleDbCommand comm = new OleDbCommand(commandText, connection);
     Source File: h:\home\webs\qsh.in\friend_03a71a2f-37c5-4602-ad26-cf2ef4afd5f5\www\App_Code\DbHelperOleDb.cs    Line: 45 你怎么不设置统一的错误页面   这样直接跳出错误提示很不安全
      

  12.   

    继续加油,看看我的:http://www.svnhost.cn
      

  13.   

    我也有一个
    www.codeusing.com