web用户控件里有个form。动态加载这个用户控件在一个页面上之后,查看页面源代码却看不见这个form,form里面的东西都在。
请教达人,这是什么原因?
谢谢!<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCPostTopicReply.ascx.cs" Inherits="Topic.UCPostTopicReply" %><div id="PostTopicReply">
<form action="PostTopicReply.ashx" method="post">
<textarea name="ContentsOfTopicReply" cols="60" rows="5"></textarea>
<div>
<input type="submit" value="回复帖子" />
<input type="reset" value="重填" />
</div>
</form>
</div>
请教达人,这是什么原因?
谢谢!<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCPostTopicReply.ascx.cs" Inherits="Topic.UCPostTopicReply" %><div id="PostTopicReply">
<form action="PostTopicReply.ashx" method="post">
<textarea name="ContentsOfTopicReply" cols="60" rows="5"></textarea>
<div>
<input type="submit" value="回复帖子" />
<input type="reset" value="重填" />
</div>
</form>
</div>
但是我页面右键 查看页面源代码里 是看的到form
请问这个什么原因 为什么firebug里看不到这个form
你把控件拖到 <form id="form1" runat="server"> </form>的外面就可以了