<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>
<table width= "100%" border = "0"
style ="background-color:Blue">
<tr>
<td style="...">
<b>User Control Test Page</b> </font>
</td>
</tr>
<tr>
<td align="right" style="...">
<b>An Apress Creation @ 2011</b>
</td>
</tr>
</table>
<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="WebUserControl.aspx.cs"
Inherits= "WebUserControlTest" %>
<%@ Register TagPrefix="apress" TagName="WebUserControl" Src="WebUserControl.ascx" %>
<html mlns="http://www.w3.org/1991/xhtml">
<head >
<title>WebUserControlHost</title>
</head>
<body>
<form id ="Form1" method ="post" runat="server">
<apress:WebUserControl id="WebUserControl1" runat="server"></apress:WebUserControl>
</form>
</body>
</html>
运行一下试试看不就知道了?
看不到图,你可以调试运行后,在页面右键查看源码,看看是不是你要输出的
无图无真相。
单出页面代码来看,就是一个aspx页面引入了一个用户控件,没有看出有啥效果,可能需要结合后台代码。
LZ是电脑初学者吗? 你发的图片的路径是src="http://space.cnblogs.com/question/C:\Users\user\Desktop
你是故意发成这样搞笑呢。。。。。。。。。