您的位置:程序门 -> .net技术 -> asp.net



用dreamweaver编写的html 网页 转换成asp.net 错误 要求帮助(有代码)??


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


用dreamweaver编写的html 网页 转换成asp.net 错误 要求帮助(有代码)??[已结贴,结贴人:cjx1234cjx]
发表于:2007-01-22 13:32:41 楼主
html:
<!doctype   html   public   "-//w3c//dtd   html   4.01   transitional//en "
"http://www.w3.org/tr/html4/loose.dtd ">
<html>
<head>
<meta   http-equiv= "content-type "   content= "text/html;   charset=gb2312 ">
<title> 北京京古韵欢迎您 </title>
<style   type= "text/css ">
<!--
body   {
margin-left:   0px;
margin-top:   0px;
margin-right:   0px;
margin-bottom:   0px;
background-color:   #663333;
}
a   {
font-size:   12px;
}
a:link   {
text-decoration:   none;
}
a:visited   {
text-decoration:   none;
}
a:hover   {
text-decoration:   none;
}
a:active   {
text-decoration:   none;
}
-->
</style>
<script   language= "javascript "   type= "text/javascript ">
<!--
function   mm_swapimgrestore()   {   //v3.0
    var   i,x,a=document.mm_sr;   for(i=0;a&&i <a.length&&(x=a[i])&&x.osrc;i++)   x.src=x.osrc;
}

function   mm_preloadimages()   {   //v3.0
    var   d=document;   if(d.images){   if(!d.mm_p)   d.mm_p=new   array();
        var   i,j=d.mm_p.length,a=mm_preloadimages.arguments;   for(i=0;   i <a.length;   i++)
        if   (a[i].indexof( "# ")!=0){   d.mm_p[j]=new   image;   d.mm_p[j++].src=a[i];}}
}

function   mm_findobj(n,   d)   {   //v4.01
    var   p,i,x;     if(!d)   d=document;   if((p=n.indexof( "? "))> 0&&parent.frames.length)   {
        d=parent.frames[n.substring(p+1)].document;   n=n.substring(0,p);}
    if(!(x=d[n])&&d.all)   x=d.all[n];   for   (i=0;!x&&i <d.forms.length;i++)   x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i <d.layers.length;i++)   x=mm_findobj(n,d.layers[i].document);
    if(!x   &&   d.getelementbyid)   x=d.getelementbyid(n);   return   x;
}

function   mm_swapimage()   {   //v3.0
    var   i,j=0,x,a=mm_swapimage.arguments;   document.mm_sr=new   array;   for(i=0;i <(a.length-2);i+=3)
      if   ((x=mm_findobj(a[i]))!=null){document.mm_sr[j++]=x;   if(!x.osrc)   x.osrc=x.src;   x.src=a[i+2];}
}
//-->
</script>
</head>

<body   onload= "mm_preloadimages( 'images/baner/index_3..gif ', 'images/baner/index_4..gif ', 'images/baner/index_5..gif ', 'images/baner/index_6..gif ', 'images/baner/index_8..gif ', 'images/baner/index_9..gif ', 'images/baner/index_7..gif ') ">
<table   width= "979 "   border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 ">
    <tr>
        <td> <img   src= "images/index_1.gif "   width= "979 "   height= "54 "> </td>
    </tr>
    <tr>
        <td> <table   width= "100% "     border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
            <tr>
                <td   width= "19% "> <img   src= "images/baner/index_2.gif "   width= "183 "   height= "40 "> </td>
                <td   width= "8% "> <a   href= "index.asp "   onmouseout= "mm_swapimgrestore() "   onmouseover= "mm_swapimage( 'image28 ', ' ', 'images/baner/index_3..gif ',1) "> <img   src= "images/baner/index_3.gif "   alt= "首页 "   name= "image28 "   width= "78 "   height= "40 "   border= "0 "> </a> </td>
                <td   width= "9% "> <a   href= "companys.htm "   onmouseout= "mm_swapimgrestore() "   onmouseover= "mm_swapimage( 'image29 ', ' ', 'images/baner/index_4..gif ',1) "> <img   src= "images/baner/index_4.gif "   name= "image29 "   width= "84 "   height= "40 "   border= "0 "> </a> </td>
                <td   width= "9% "> <a   href= "prouduct.htm "   onmouseout= "mm_swapimgrestore() "   onmouseover= "mm_swapimage( 'image30 ', ' ', 'images/baner/index_5..gif ',1) "> <img   src= "images/baner/index_5.gif "   name= "image30 "   width= "85 "   height= "40 "   border= "0 "> </a> </td>
                <td   width= "8% "> <a   href= "new.htm "   onmouseout= "mm_swapimgrestore() "   onmouseover= "mm_swapimage( 'image31 ', ' ', 'images/baner/index_6..gif ',1) "> <img   src= "images/baner/index_6.gif "   name= "image31 "   width= "69 "   height= "40 "   border= "0 "> </a> </td>
                <td   width= "8% "> <a   href= "personnel.htm "   onmouseout= "mm_swapimgrestore() "   onmouseover= "mm_swapimage( 'image35 ', ' ', 'images/baner/index_7..gif ',1) "> <img   src= "images/baner/index_7.gif "   name= "image35 "   width= "75 "   height= "40 "   border= "0 "> </a> </td>
                <td   width= "7% "> <a   href= "partnership.htm "   onmouseout= "mm_swapimgrestore() "   onmouseover= "mm_swapimage( 'image33 ', ' ', 'images/baner/index_8..gif ',1) "> <img   src= "images/baner/index_8.gif "   name= "image33 "   width= "72 "   height= "40 "   border= "0 "> </a> </td>
                <td   width= "6% "> <a   href= "voice.htm "   onmouseout= "mm_swapimgrestore() "   onmouseover= "mm_swapimage( 'image34 ', ' ', 'images/baner/index_9..gif ',1) "> <img   src= "images/baner/index_9.gif "   name= "image34 "   width= "62 "   height= "40 "   border= "0 "> </a> </td>
                <td> <img   src= "images/baner/index_10.gif "   width= "271 "   height= "40 "> </td>
                </tr>
        </table> </td>
    </tr>
    <tr>
        <td> <table   width= "979 "   height= "211 "   border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 ">
            <tr>
                <td   background= "images/index_3.gif "> <object   classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 "   codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 "   width= "972 "   height= "201 ">
                    <param   name= "movie "   value= "images/15.swf ">
                    <param   name= "quality "   value= "high ">
                    <param   name= "wmode "   value= "transparent ">
                    <embed   src= "images/15.swf "   width= "972 "   height= "201 "   quality= "high "   pluginspage= "http://www.macromedia.com/go/getflashplayer "   type= "application/x-shockwave-flash "   wmode= "transparent "> </embed>
                </object> </td>
            </tr>
        </table> </td>
    </tr>
    <tr>
        <td> <img   src= "images/index_4.gif "   width= "979 "   height= "75 "> </td>
    </tr>
</table>
发表于:2007-01-22 13:32:561楼 得分:0
<table   width= "979 "   border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 ">
    <tr>
        <td   width= "222 "   height= "100 "   align= "left "   valign= "top "> <table   width= "222 "   border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
            <tr>
                <td   height= "114 "   background= "images/zbg_1.gif "> &nbsp; </td>
            </tr>
            <tr>
                <td> <img   src= "images/index_8.gif "   width= "222 "   height= "23 "> </td>
            </tr>
            <tr>
                <td> <img   src= "images/index_9.gif "   width= "222 "   height= "55 "> </td>
            </tr>
            <tr>
                <td> <table   width= "100% "     border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
                        <tr>
                            <td> <img   src= "images/kh_bg0.jpg "   width= "222 "   height= "8 "> </td>
                        </tr>
                        <tr>
                            <td   background= "images/kh_bg.gif "> &nbsp; </td>
                        </tr>
                        <tr>
                            <td> <img   src= "images/kh_bg2.gif "   width= "222 "   height= "7 "> </td>
                        </tr>
                </table> </td>
            </tr>
            <tr>
                <td> <table   width= "100% "     border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
                        <tr>
                            <td> <img   src= "images/kh_bg0.jpg "   width= "222 "   height= "8 "> </td>
                        </tr>
                        <tr>
                            <td   background= "images/kh_bg.gif "> &nbsp; </td>
                        </tr>
                        <tr>
                            <td> <img   src= "images/kh_bg2.gif "   width= "222 "   height= "7 "> </td>
                        </tr>
                </table> </td>
            </tr>
            <tr>
                <td> <table   width= "100% "     border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
                        <tr>
                            <td> <img   src= "images/kh_bg0.jpg "   width= "222 "   height= "8 "> </td>
                        </tr>
                        <tr>
                            <td   background= "images/kh_bg.gif "> &nbsp; </td>
                        </tr>
                        <tr>
                            <td> <img   src= "images/kh_bg2.gif "   width= "222 "   height= "7 "> </td>
                        </tr>
                </table> </td>
            </tr>
            <tr>
                <td> <table   width= "100% "     border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
                        <tr>
                            <td> <img   src= "images/kh_bg0.jpg "   width= "222 "   height= "8 "> </td>
                        </tr>
                        <tr>
                            <td   background= "images/kh_bg.gif "> &nbsp; </td>
                        </tr>
                        <tr>
                            <td> <img   src= "images/kh_bg2.gif "   width= "222 "   height= "7 "> </td>
                        </tr>
                </table> </td>
            </tr>
            <tr>
                <td> <img   src= "images/index_13.gif "   width= "222 "   height= "50 "> </td>
            </tr>
            <tr>
                <td   height= "80 "   background= "images/index_15.gif "> &nbsp; </td>
            </tr>
            <tr>
                <td> <img   src= "images/index_17.gif "   width= "222 "   height= "16 "> </td>
            </tr>
            <tr>
                <td> <img   src= "images/index_18.gif "   width= "222 "   height= "68 "> </td>
            </tr>
            <tr>
                <td   height= "46 "   background= "images/lx_bg.gif "> &nbsp; </td>
            </tr>
            <tr>
                <td> <img   src= "images/index_33.gif "   width= "222 "   height= "19 "> </td>
            </tr>
        </table> </td>
        <td   width= "757 "   align= "left "   valign= "top "   background= "images/bg1.gif "   bgcolor= "#bf7e2b "> <table   width= "757 "   border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
            <tr>
                <td> <img   src= "images/index_6.gif "   width= "757 "   height= "36 "> </td>
            </tr>
            <tr>
                <td> <img   src= "images/newbg.gif "   width= "757 "   height= "12 "> </td>
            </tr>
            <tr>
                <td   height= "159 "   background= "images/newbg1.gif "> &nbsp; </td>
            </tr>
            <tr>
                <td> <img   src= "images/newbg2.gif "   width= "757 "   height= "13 "> </td>
            </tr>
            <tr>
                <td> <img   src= "images/index_10.gif "   width= "757 "   height= "70 "> </td>
            </tr>
            <tr>
                <td   height= "225 "   background= "images/product_bg1.gif "> &nbsp; </td>
            </tr>
            <tr>
                <td> <img   src= "images/index_20.gif "   width= "757 "   height= "13 "> </td>
            </tr>
            <tr>
                <td> &nbsp; </td>
            </tr>
            <tr>
                <td> &nbsp; </td>
            </tr>
            <tr>
                <td> &nbsp; </td>
            </tr>
            <tr>
                <td> &nbsp; </td>
            </tr>
        </table> </td>
    </tr>
</table>
<table   width= "979 "   height= "184 "   border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 ">
    <tr>
        <td   height= "26 "   align= "left "   valign= "top "> <img   src= "images/index_29.gif "   width= "979 "   height= "26 "> </td>
    </tr>
    <tr>
        <td   height= "133 "   align= "left "   valign= "top "> <table   width= "100% "     border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
            <tr>
                <td   width= "36% "> <img   src= "images/bottom/bottom_1.gif "   width= "348 "   height= "46 "> </td>
                <td   width= "61% "   bgcolor= "#f8f4ee "> &nbsp; </td>
                <td   width= "3% "> <img   src= "images/bottom/bottom_3.gif "   width= "32 "   height= "46 "> </td>
            </tr>
            <tr>
                <td   height= "99 "> <img   src= "images/bottom/bottom_4.gif "   width= "348 "   height= "99 "> </td>
                <td   bgcolor= "#cf9e5f "> &nbsp; </td>
                <td> <img   src= "images/bottom/bottom_6.gif "   width= "32 "   height= "99 "> </td>
            </tr>
            <tr>
                <td   height= "13 "> <img   src= "images/bottom/bottom_7.gif "   width= "348 "   height= "25 "> </td>
                <td> <img   src= "images/bottom/bottom_8.gif "   width= "599 "   height= "25 "> </td>
                <td> <img   src= "images/bottom/bottom_9.gif "   width= "32 "   height= "25 "> </td>
            </tr>
        </table> </td>
    </tr>
    <tr>
        <td   align= "left "   valign= "top "> &nbsp; </td>
    </tr>
</table>
</body>
</html>
发表于:2007-01-22 13:33:562楼 得分:0
粘贴近   asp.net   去   显示问题     还不如从新拉控件   呢       有能帮我的   么   谢谢了   。
发表于:2007-01-22 13:37:463楼 得分:0
<!doctype   html   public   "-//w3c//dtd   html   4.01   transitional//en "
"http://www.w3.org/tr/html4/loose.dtd ">

把这行删了拉
发表于:2007-01-22 13:39:174楼 得分:0
删除页不管用啊   云
发表于:2007-01-22 13:41:155楼 得分:20
基本上,asp.net是一个组件开发平台,而不是专门做静态页面的。所以很多这类静态页面的问题你大概应该去   html/css   论坛去讨论更合适。

在asp.net中,界面往往通过绑定模版、母版、动态装载的控件等来动态创建。例如划分出一些布局格子,然后将格子里放入不同的ascx并且定义好接口和通讯控制程序,再将ascx承包给不同的人去开发(他们并不知道别人在干什么,并不掌握页面完整的源代码),这些ascx是以“通用插件”的观念去开发而不是某个写死的页面上的某一个固定的一块代码。如果在作坊里按照页面为单位去开发,技术太落后了。
发表于:2007-01-22 13:42:186楼 得分:0
不知道楼主想表达啥
发表于:2007-01-22 13:58:247楼 得分:0
哦     就是用上边这个代码     根换掉   asp   里边的html   代码     然后我   拉控件     文本框什么的     做个新闻发布   。但是   现在这个   网页替换完   我根本就没法   安放   控件     根html   有关系
有解决办法么


快速检索

最新资讯
热门点击