runat="server" 的div问题
前台一个runat= "server " 的 div
<div id = "Div_Create " class= "winFrame " style= "left:200px;top:100px;height: 467px; width: 578px; " runat= "server " Visible= "false ">
<div class= "winTitle " onMouseDown= "beginDrag(this.parentNode,event); " style= "left: 0px; top: 0px; ">
<table class = "winTitleTable " width = "100% " cellpadding = "0 " cellspacing = "0 ">
<tr>
<td align = "left " style= "height: 20px ">
生成Web801 </td>
<td align = "right " valign = "middle " style= "height: 20px "> <img src = "Images/close.jpg " alt = "关闭 " class = "winClose " onclick = "Div_Create.style.display = 'none ' " style= "width: 19px; height: 18px "/> </td>
</tr>
</table>
</div>
<div class= "winContent " style= "left: -3px; top: 44px; height: 417px; width: 99%; " >
<div class = "winContentTextBox " style= "height: 173px; width: 99%; ">
<br /> </div>
<div class = "winContentDesc " style= "width: 99%; height: 202px ">
<br /> <br />
</div>
<div class = "winContentBtn " style= "height: 1px; width: 99%; "> <img alt = "完成 " class = "BottonMouse " src = "Images/btnfinish.jpg " onclick = " "/> </div>
</div>
</div>
我想在 <div class = "winContentTextBox " style= "height: 173px; width: 99%; ">
</div> 这里面动态添加 一个asp的页面 不会做啦~~ 麻烦各位帮帮忙
this.Div_Create.Visible = true;
......
.....
[解决办法]
<frameset border= "1 " bordercolor= "#6699cc " framespacing= "1 " id= "fsTop " marginwidth= "0 " marginheight= "0 " leftmargin= "0 " topmargin= "0 " rows= "69,* ">
<frame border= "0 " frameborder= "no " marginheight= "0 " marginwidth= "0 " name= "topFrame " noresize scrolling= "no " src= "top.asp " leftmargin= "0 " topmargin= "0 ">
类似。
[解决办法]
你可以用iframe内嵌那个asp页面
也可以后台用Ajax读取asp页面运行时代码,整理后输入到
div.innerHTML
[解决办法]
<div class = "winContentTextBox " style= "height: 173px; width: 99%; ">
<%=showHtml()%>
</div>
然后在后台写一个showHtml就行了~
[解决办法]
Server.Execute ( "Page2.asp ")
如是Page2.asp是一个绝对路径,那么它必须是一个在这个应用程序相同的地方(目录)。