首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

用Dreamweaver编写的HTML 网页 转换成ASP.NET 异常 要求帮助(有代码)?

2012-01-29 
用Dreamweaver编写的HTML 网页 转换成ASP.NET 错误 要求帮助(有代码)??HTML:!DOCTYPEHTMLPUBLIC-//W3C//

用Dreamweaver编写的HTML 网页 转换成ASP.NET 错误 要求帮助(有代码)??
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>

[解决办法]
基本上,asp.net是一个组件开发平台,而不是专门做静态页面的。所以很多这类静态页面的问题你大概应该去 html/css 论坛去讨论更合适。

在asp.net中,界面往往通过绑定模版、母版、动态装载的控件等来动态创建。例如划分出一些布局格子,然后将格子里放入不同的ascx并且定义好接口和通讯控制程序,再将ascx承包给不同的人去开发(他们并不知道别人在干什么,并不掌握页面完整的源代码),这些ascx是以“通用插件”的观念去开发而不是某个写死的页面上的某一个固定的一块代码。如果在作坊里按照页面为单位去开发,技术太落后了。

热点排行