love u

aps.net 生成静态页面

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta name="Robots" content="index,follow" />
    <title>第三波书店-最方便的网上书店</title>
    <link href="[WebRootPath]/CSS/global.css" rel="stylesheet" type="text/css" />
    
    <link href="[WebRootPath]/CSS/channel.css" rel="stylesheet" type="text/css" />

    <link href="[WebRootPath]/CSS/answer.css" rel="stylesheet" type="text/css" />

</head>
<body>
    <form name="aspnetForm" method="post" action="[WebRootPath]/BookDetail.aspx?bid=[BookId]" id="aspnetForm">
<div>
<input type="hidden" name="ctl00_trvwCategory_ExpandState" id="ctl00_trvwCategory_ExpandState" value="nnnnnnnnnnnnnnnnnn" />
<input type="hidden" name="ctl00_trvwCategory_SelectedNode" id="ctl00_trvwCategory_SelectedNode" value="" />
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="ctl00_trvwCategory_PopulateLog" id="ctl00_trvwCategory_PopulateLog" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY5MzEyNTgyMA9kFgJmD2QWAgIDD2QWCAIBDw8WAh4HVmlzaWJsZWhkZAIFDxYEHgRocmVmBQEjHglpbm5lcmh0bWwFHuebruWJjeaCqOeahOi0reeJqeevruaYr+epuueahGQCCw88KwAJAgAPFgYeDU5ldmVyRXhwYW5kZWRkHgxTZWxlY3RlZE5vZGVkHglMYXN0SW5kZXgCEmQIFCsAEwVPMDowLDA6MSwwOjIsMDozLDA6NCwwOjUsMDo2LDA6NywwOjgsMDo5LDA6MTAsMDoxMSwwOjEyLDA6MTMsMDoxNCwwOjE1LDA6M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ym5Liy5ZKM5paH5pysPEJSPuOAgOesrDEy56ugIOaemuS4vuexu+Wei+WSjOS9jeagh+W/lzxCUj7jgIDnrKwxM+eroCDmlbDnu4Q8QlI+44CA56ysMTTnq6Ag5o6l5Y+jPEJSPuOAgOesrDE156ugIOWnlOaJmDxCUj7jgIDnrKwxNueroCDms5vlnos8QlI+44CA56ysMTfnq6Ag6Ieq5a6a5LmJ5bGe5oCnPEJSPuOAgOesrDE456ugIOWPr+epuuWAvOexu+WeizxCUj7nrKzihaTpg6jliIYgQ0xS5a6e55So54m55oCnIDxCUj7jgIDnrKwxOeeroCDlvILluLg8QlI+44CA56ysMjDnq6Ag6Ieq5Yqo5YaF5a2Y566h55CG77yI5Z6D5Zy+5pS26ZuG77yJPEJSPuOAgOesrDIx56ugIENMUuWvhOWuv+WSjOW6lOeUqOeoi+W6j+WfnyA8QlI+44CA56ysMjLnq6Ag56iL5bqP6ZuG55qE5Yqg6L295LiO5Y+N5bCEIDxCUj7jgIDnrKwyM+eroCDmiafooYzlvILmraXmk43kvZw8QlI+44CA56ysMjTnq6Ag57q/56iL5ZCM5q2lZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgIFEmN0bDAwJHRydndDYXRlZ29yeQUYY3RsMDAkY3BoQ29udGVudCRpYnRuQnV5IOnPd/Uf3AtGtXSCoi/Te1AlU5fcCRoekRfRRXaqXyM=" />
</div>

<script type="text/javascript">
//<![CDATA[
    var theForm = document.forms['aspnetForm'];
    if (!theForm) {
        theForm = document.aspnetForm;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
//]]>

</script>


<script src="[WebRootPath]/WebResource.axd?d=9UsazsljM1mShKU-_g-MRA2&amp;t=634128952642599412" type="text/javascript"></script>


<script src="[WebRootPath]/WebResource.axd?d=fNxEEVQrmMwAyIffdczOcg2&amp;t=634128952642599412" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[

    function TreeView_PopulateNodeDoCallBack(context, param) {
        WebForm_DoCallback(context.data.treeViewID, param, TreeView_ProcessNodeData, context, TreeView_ProcessNodeData, false);
    }
    var ctl00_trvwCategory_Data = null;//]]>
</script>

<div>

    <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBAKTqJP2AQKFlOrlDQL9n+COAgL/oLzkCq7pzZsKbf9JVEt6LT1aVhJ/fhIZwJg8jBFgeljCexAh" />
</div>

    <div id="top">
        <div class="status">
            您好,
            
                <a href="[WebRootPath]/LogIn.aspx">【登录】</a><a href="[WebRootPath]/Register.aspx">【免费注册】</a>
            
        </div>
        <div class="member">
            <ul>
                <li><a href="#">

                    <img src="[WebRootPath]/Images/payVIP.gif" height="18" alt="开通VIP" /></a></li>
                <li><a href="#">
                    <img src="[WebRootPath]/Images/payCoin.gif" height="18" alt="学币中心" /></a></li>
            </ul>
        </div>
    </div>
    <div id="header">
        <div id="logo">
            <img src="[WebRootPath]/Images/logo.gif" alt="第三波书店" /></div>

        <div id="nav">
            <div id="a_b_01">
               </div>
            <ul id="mainnav">
                <li><a href="[WebRootPath]/Default.aspx">首页</a></li>
                <li><a href="#">商讯</a></li>

                <li><a href="#">个性化推荐</a></li>
                <li><a href="#">购物流程</a></li>
                <li><a href="#">在线客服</a></li>
                <li><a href="#">积分兑换</a></li>
                <li><a href="[WebRootPath]/Membership/AdminLogin.aspx">管理入口</a></li>
                <li><a href="#">帮助</a></li>

            </ul>
        </div>
    </div>
    <div id="container">
        <!--left content-->
        <div id="intro">
            <div id="basket">
                <a href="#" id="ctl00_hrefShoppinCart">目前您的购物篮是空的</a></div>

            <div id="search">
                <input name="ctl00$txtKeyword" type="text" id="ctl00_txtKeyword" class="search_key" />
                <input type="submit" name="ctl00$btnSearch" value="" id="ctl00_btnSearch" class="search_sub" />
            </div>
             <div id="alltype">
                <h1 class="all_type black">
                    <a href="#">查看所有分类>></a></h1>
                <div id="subnav">
                    <a href="#ctl00_trvwCategory_SkipLink"><img alt="跳过导航链接。" src="[WebRootPath]/WebResource.axd?d=zwOe7xy247CaiP3yKyBn3w2&amp;t=634128952642599412" width="0" height="0" style="border-width:0px;" /></a><div id="ctl00_trvwCategory">

    <table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=1" id="ctl00_trvwCategoryt0i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=1" id="ctl00_trvwCategoryt0" style="text-decoration:none;">&nbsp; C#</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=2" id="ctl00_trvwCategoryt1i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=2" id="ctl00_trvwCategoryt1" style="text-decoration:none;">&nbsp;J2EE</a></td>

        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=4" id="ctl00_trvwCategoryt2i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=4" id="ctl00_trvwCategoryt2" style="text-decoration:none;">&nbsp;CSS Div</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=15" id="ctl00_trvwCategoryt3i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=15" id="ctl00_trvwCategoryt3" style="text-decoration:none;">&nbsp;C C++ VC VC++</a></td>

        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=16" id="ctl00_trvwCategoryt4i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=16" id="ctl00_trvwCategoryt4" style="text-decoration:none;">&nbsp;Basic VB VB Script</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=17" id="ctl00_trvwCategoryt5i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=17" id="ctl00_trvwCategoryt5" style="text-decoration:none;">&nbsp;计算机等级考试</a></td>

        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=20" id="ctl00_trvwCategoryt6i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=20" id="ctl00_trvwCategoryt6" style="text-decoration:none;">&nbsp;计算机理论</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=21" id="ctl00_trvwCategoryt7i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=21" id="ctl00_trvwCategoryt7" style="text-decoration:none;">&nbsp;Java Script Java</a></td>

        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=22" id="ctl00_trvwCategoryt8i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=22" id="ctl00_trvwCategoryt8" style="text-decoration:none;">&nbsp;HTML XML</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=25" id="ctl00_trvwCategoryt9i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=25" id="ctl00_trvwCategoryt9" style="text-decoration:none;">&nbsp;.NET</a></td>

        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=26" id="ctl00_trvwCategoryt10i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=26" id="ctl00_trvwCategoryt10" style="text-decoration:none;">&nbsp;Perl</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=27" id="ctl00_trvwCategoryt11i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=27" id="ctl00_trvwCategoryt11" style="text-decoration:none;">&nbsp;网站开发</a></td>

        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=28" id="ctl00_trvwCategoryt12i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=28" id="ctl00_trvwCategoryt12" style="text-decoration:none;">&nbsp;其他</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=29" id="ctl00_trvwCategoryt13i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=29" id="ctl00_trvwCategoryt13" style="text-decoration:none;">&nbsp;ASP.NET</a></td>

        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=31" id="ctl00_trvwCategoryt14i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=31" id="ctl00_trvwCategoryt14" style="text-decoration:none;">&nbsp;JSP</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=35" id="ctl00_trvwCategoryt15i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=35" id="ctl00_trvwCategoryt15" style="text-decoration:none;">&nbsp;WINDOWS</a></td>

        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=38" id="ctl00_trvwCategoryt16i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=38" id="ctl00_trvwCategoryt16" style="text-decoration:none;">&nbsp;电子商务</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><img src="[WebRootPath]/WebResource.axd?d=q6MBOHafPTMSSGZpEwCuZoGtBCgcXfDANenRJNuF2d01&amp;t=634128952642599412" alt="" /></td><td><a href="[WebRootPath]/BookList.aspx?typeid=44" id="ctl00_trvwCategoryt17i" tabindex="-1"><img src="[WebRootPath]/Images/arrow.gif" alt="" style="border-width:0;" /></a></td><td style="white-space:nowrap;"><a href="[WebRootPath]/BookList.aspx?typeid=44" id="ctl00_trvwCategoryt17" style="text-decoration:none;">&nbsp;动态语言</a></td>

        </tr>
    </table>
</div><a id="ctl00_trvwCategory_SkipLink"></a>
                    <div id="subnavbottom">
                        &nbsp;
                    </div>
                </div>
                <!--subnav end-->
            </div>


            <!--link start-->
            <div id="choice_pub">
                <select name="publishs" id="publishs" class="n_select">
                    <option>>>根据出版社选择图书</option>
                    <option>北京师范大学出版社</option>
                    <option>电子工业出版社</option>
                </select>

                <select name="publishs" id="special" class="n_select">
                    <option>>>根据专题选择图书</option>
                    <option>国庆出游专题</option>
                    <option>新年计划专题</option>
                </select>
            </div>
            <div id="s_b_03">

                <a href="#">赖世雄美语从头学</a><br />
                <a href="#">沪江团购 ,价格更优惠</a></div>
            <!--link end-->
        </div>
        
    <div class="book_view">
        <h1 class="b_title">
            <span id="ctl00_cphContent_lblBookName">[Title]</span></h1>

        <div class="b_exa">
            <span class="book_group">书籍分类:<span id="ctl00_cphContent_lblCategory">[BookCategory]</span></span> <span class="book_status">正在阅读(150 人),已经阅读(4521
                人) <span><a href="#">放入书架</a></span> <a href="#">什么是书架?</a></span>
        </div>
        <!--book basic start-->
        <dl class="put_book">

            <dt>
                <img id="ctl00_cphContent_imgBook" src="[WebRootPath]/Images/BookCovers/[ISBN].jpg" style="border-width:0px;" />
                <div class="chakan">
                    <img src="[WebRootPath]/Images/zoom.gif" />
                    <a class="gray878787a" href="#" name="bigpicture">点击查看大图</a></div>
            </dt>
            <dd>
                <div id="book_editor">

                    作 者:
                    <span id="ctl00_cphContent_lblAuthor">[Author]</span><br />
                    出 版 社:<span id="ctl00_cphContent_lblPublisher">[PublishName]</span></div>
                <ul id="book_attribute">
                    <li>出版时间:
                        <span id="ctl00_cphContent_lblPublishDate">[PublishDate]</span></li>

                    <li>字 数: </li>
                    <li>版 次: </li>
                    <li>页 数:</li>
                    <li>印刷时间: </li>
                    <li>开 本: </li>
                    <li>印 次: </li>

                    <li>纸 张: </li>
                    <li>I S B N :
                        <span id="ctl00_cphContent_lblISBN">[ISBN]</span></li>
                    <li>包 装: 平装</li>
                </ul>
                <div id="book_price">
                    定价:<span id="ctl00_cphContent_lblPrice" class="red">¥[UnitPrice]</span>

                </div>
                <div id="book_point">
                    <span>送积分:<span id="pointsTag">354</span></span> <a target="_blank" href="2">积分说明</a>
                    <br />
                    <br />
                    <a href="#">
                        <input type="image" name="ctl00$cphContent$ibtnBuy" id="ctl00_cphContent_ibtnBuy" onmouseover="this.src=&#39;[WebRootPath]/Images/btn_goumai_click.gif&#39;" onmouseout="this.src=&#39;[WebRootPath]/Images/btn_goumai.gif&#39;" src="[WebRootPath]/Images/btn_goumai.gif" style="border-width:0px;" />

                    </a>
                </div>

            </dd>
        </dl>
        <!--book basic end-->
        <!--book intro start-->
        <dl class="book_intro">
            <dt>内容提要</dt>

            <dd>
                <span id="ctl00_cphContent_lblContent">[ContentDescription]</span></dd>
        </dl>
        <dl class="book_intro">
            <dt>目录</dt>
            <dd>
                <span id="ctl00_cphContent_lblTOC">[TOC]</span></dd>

        </dl>
        <!--book intro end-->
      
    </div>

    </div>
    <div id="footer">
        <!--contac us-->
        <div class="telephone">
            <strong>热线</strong> 021-61508168 <strong>传真</strong> 021-61508168-8020
            <br />

            <strong>Q Q</strong>375013071 13483528 562655482 1143735195(技术)<br />
            <strong>MSN</strong> hjservice@hotmail.com <strong>信箱</strong> shop@hjenglish.com<br />
            <strong>帮助</strong> <a href="[WebRootPath]//help/help.aspx" target="_blank">银行汇款帐户</a> <a href="[WebRootPath]//help/help.aspx#help_post"
                target="_blank">邮局汇款地址</a> <a href="[WebRootPath]//help/help.aspx#help_ship" target="_blank">送货方式及费用</a>

            <a href="[WebRootPath]/http://www.hjenglish.com/down/faq_2.htm" target="_blank">如何进行下载</a>
        </div>
        <!---->
        <div class="imp_link">
            <img src="[WebRootPath]/Images/alipay.gif" alt="支付宝支付" /><img src="[WebRootPath]/Images/online_pay.gif" alt="在线支付" /><br />
            <a href="[WebRootPath]/http://www.hjenglish.com/about/aboutus.htm" target="_blank">网站介绍</a> <a
                href="[WebRootPath]/http://www.hjenglish.com/about/partner.htm" target="_blank">合作伙伴</a> <a href="#"
                    target="_blank">网站地图</a> <a href="#" target="_blank">联系我们</a><br />

            <a href="#" target="_blank">增值电信业务经营许可证沪B2-20040503</a>
        </div>
    </div>
    <div id="child_site">
        <strong>分站</strong> <a href="#" target="_blank">沪江网</a> <a href="#" target="_blank">
            听说</a> <a href="#" target="_blank">口译</a> <a href="#" target="_blank">CET</a>

        <a href="#" target="_blank">考研</a> <a href="#" target="_blank">雅思</a> <a href="#"
            target="_blank">托福</a> <a href="#" target="_blank">日语</a> <a href="#" target="_blank">
                法语</a> <a href="#" target="_blank">下载</a> <a href="#" target="_blank">文库</a>

        <a href="#" target="_blank">部落</a> <a href="#" target="_blank">博客</a> <a href="#"
            target="_blank">词典</a> <a href="#" target="_blank">IT新闻</a> <a href="#" target="_blank">
                博客园</a> <a title="新世界日语" href="#" target="_blank">新世界日语</a> <a title="2010考研书籍推荐专题"
                    href="#" target="_blank">2010考研书籍</a>

    </div>
    
<script type="text/javascript">
//<![CDATA[
    var ctl00_trvwCategory_ImageArray = new Array('', '', '', '[WebRootPath]/WebResource.axd?d=tWWaStdRM-KnyRT4U5rp_eG3LD07lc6iWxcv-mmEiXg1&t=634128952642599412', '[WebRootPath]/WebResource.axd?d=tWWaStdRM-KnyRT4U5rp_UNMZVYnTRTeceij3zfol_Q1&t=634128952642599412', '[WebRootPath]/WebResource.axd?d=tWWaStdRM-KnyRT4U5rp_Q4lO3fAC52_d02Dd4lPriI1&t=634128952642599412');
//]]>
</script>


<script type="text/javascript">
//<![CDATA[

    WebForm_InitCallback(); var ctl00_trvwCategory_Data = new Object();
    ctl00_trvwCategory_Data.images = ctl00_trvwCategory_ImageArray;
    ctl00_trvwCategory_Data.collapseToolTip = "折叠 {0}";
    ctl00_trvwCategory_Data.expandToolTip = "展开 {0}";
    ctl00_trvwCategory_Data.expandState = theForm.elements['ctl00_trvwCategory_ExpandState'];
    ctl00_trvwCategory_Data.selectedNodeID = theForm.elements['ctl00_trvwCategory_SelectedNode'];
    (function () {
        for (var i = 0; i < 6; i++) {
            var preLoad = new Image();
            if (ctl00_trvwCategory_ImageArray[i].length > 0)
                preLoad.src = ctl00_trvwCategory_ImageArray[i];
        }
    })();
    ctl00_trvwCategory_Data.lastIndex = 18;
    ctl00_trvwCategory_Data.populateLog = theForm.elements['ctl00_trvwCategory_PopulateLog'];
    ctl00_trvwCategory_Data.treeViewID = 'ctl00$trvwCategory';
    ctl00_trvwCategory_Data.name = 'ctl00_trvwCategory_Data';
//]]>
</script>
</form>
</body>
</html>

上面是模板html页

下面是handler处理程序

 public void ProcessRequest(HttpContext context)
    {
        //由地址获取bookId
        int i = context.Request.Path.LastIndexOf("/");
        string strBookId = context.Request.Path.Substring(i + 1, context.Request.Path.Length - (i + 6));
        int bookId = Convert.ToInt32(strBookId);
        //生成实际路径
        string filePath = context.Server.MapPath("~/BookDetails/Book_" + bookId + ".html");

        BookManager manager = new BookManager();

        context.Application.Lock();//加锁
        if (!File.Exists(filePath))
        {
            string templatePath = context.Server.MapPath("~/BookDetails/template.html");//模板路径
            string template = "";//模板内容
            using (StreamReader sr = new StreamReader(templatePath))
            {
                template = sr.ReadToEnd();//读取模板内容
            }

            Book book = manager.GetBookById(bookId);//获取Book信息
            /*模板内容替换*/
            string html = template.Replace("[WebRootPath]", context.Request.ApplicationPath)//替换路径
               .Replace("[BookId]", bookId.ToString())
               .Replace("[Author]", book.Author)
               .Replace("[Title]", book.Title)
               .Replace("[PublishName]", book.Publisher.Name)
               .Replace("[BookCategory]", book.Category.Name)
               .Replace("[ISBN]", book.ISBN)
               .Replace("[PublishDate]", book.PublishDate.ToShortDateString())
               .Replace("[UnitPrice]", StringUtility.ToMoney(book.UnitPrice))
               .Replace("[ContentDescription]", book.ContentDescription)
               .Replace("[TOC]", book.TOC);

            using (StreamWriter sw = new StreamWriter(filePath))
            {
                sw.Write(html);//写入静态化页面内容
            }
        }
        context.Application.UnLock();//解锁

        manager.AddClick(bookId);//增加点击数
        context.Server.Execute("~/bookDetails/Book_" + bookId + ".html");//转到实际路径
    }

 

posted @ 2013-09-05 10:07  王云云  阅读(672)  评论(0编辑  收藏  举报