.NET 表单未在厚盒窗口内加载?
我正在使用 .net 内置的网站,
我有一个非常简单的弹出框(thickbox),它可以正常工作,直到我的开发人员将 .net 联系表单放入弹出窗口中。
问题是表格不再显示在厚盒内,以前有人遇到过这种情况吗?
它甚至不像从其他地方调用数据,所有内容都位于页面上的隐藏 div 中,当请求时,javascript 显示弹出窗口。
我的弹出窗口如下所示...
<div id="hidForm">
<asp:Panel ID="PL_Im_Popup" runat="server" >
.net stuff here doesnt load!
</asp:Panel>
The stuff outside of the .net panel works fine
</div>
我的整个代码是...
<div id="hidForm">
<asp:Panel ID="PL_Im_Popup" runat="server" >
<h3>Our Discreet Service</h3>
<p>To request a phone call from a Correlate Search Consultant simply fill out the form below. Discretion is of upmost importance to our Consultants.</p>
<ul id="hidFormLab">
<li><span class="formLabel">Your Name <span class="asterisk">*</span></span><asp:TextBox ID="TB_Name" runat="server" CssClass="formet"></asp:TextBox></li>
<li><span class="formLabel">Your Job Title <span class="asterisk">*</span></span><asp:TextBox ID="TB_JobTitle" runat="server" CssClass="formet"></asp:TextBox></li>
<li><span class="formLabel">Your Email <span class="asterisk">*</span></span><asp:TextBox ID="TB_Email" runat="server" CssClass="formet"></asp:TextBox></li>
<li><span class="formLabel">Your Telephone Number <span class="asterisk">*</span></span><asp:TextBox ID="TB_PhoneNo" runat="server" CssClass="formet"></asp:TextBox></li>
<li><span class="formLabel">Upload your CV</span><asp:FileUpload ID="FileUpload1" runat="server" CssClass="upcv" /></li>
<li><span class="formLabel">What day would you prefer to be contacted on</span><asp:DropDownList ID="DDL_ContactDay" runat="server" CssClass="ddown">
<asp:ListItem>Monday</asp:ListItem>
<asp:ListItem>Tuesday</asp:ListItem>
<asp:ListItem>Wednesday</asp:ListItem>
<asp:ListItem>Thursday</asp:ListItem>
<asp:ListItem>Friday</asp:ListItem>
</asp:DropDownList></li>
<li><span class="formLabel">If you would prefer to be contacted at a specific time,please let us know</span><asp:DropDownList
ID="DDL_Time" runat="server" CssClass="ddown">
<asp:ListItem>Morning</asp:ListItem>
<asp:ListItem>Afternoon</asp:ListItem>
<asp:ListItem>Evening</asp:ListItem>
</asp:DropDownList></li>
<li><asp:ImageButton ID="IB_Submit" runat="server" CssClass="submitformbtn"
ImageUrl="~/_includes/images/buttons/submit.jpg" onclick="IB_Submit_Click" /></li>
</ul>
</asp:Panel>
</div>
I'm working with a website built in .net,
I have a very simple popup box (thickbox) which works fine up until my developer puts the .net contact form within the popup.
The problem is that the form no longer shows up inside the thickbox, has anybody experience this before?
Its not like its even calling data from elsewhere, all the content is on the page in a hidden div that when requested the javascript shows the popup.
My popup window looks like the following...
<div id="hidForm">
<asp:Panel ID="PL_Im_Popup" runat="server" >
.net stuff here doesnt load!
</asp:Panel>
The stuff outside of the .net panel works fine
</div>
My entire code is...
<div id="hidForm">
<asp:Panel ID="PL_Im_Popup" runat="server" >
<h3>Our Discreet Service</h3>
<p>To request a phone call from a Correlate Search Consultant simply fill out the form below. Discretion is of upmost importance to our Consultants.</p>
<ul id="hidFormLab">
<li><span class="formLabel">Your Name <span class="asterisk">*</span></span><asp:TextBox ID="TB_Name" runat="server" CssClass="formet"></asp:TextBox></li>
<li><span class="formLabel">Your Job Title <span class="asterisk">*</span></span><asp:TextBox ID="TB_JobTitle" runat="server" CssClass="formet"></asp:TextBox></li>
<li><span class="formLabel">Your Email <span class="asterisk">*</span></span><asp:TextBox ID="TB_Email" runat="server" CssClass="formet"></asp:TextBox></li>
<li><span class="formLabel">Your Telephone Number <span class="asterisk">*</span></span><asp:TextBox ID="TB_PhoneNo" runat="server" CssClass="formet"></asp:TextBox></li>
<li><span class="formLabel">Upload your CV</span><asp:FileUpload ID="FileUpload1" runat="server" CssClass="upcv" /></li>
<li><span class="formLabel">What day would you prefer to be contacted on</span><asp:DropDownList ID="DDL_ContactDay" runat="server" CssClass="ddown">
<asp:ListItem>Monday</asp:ListItem>
<asp:ListItem>Tuesday</asp:ListItem>
<asp:ListItem>Wednesday</asp:ListItem>
<asp:ListItem>Thursday</asp:ListItem>
<asp:ListItem>Friday</asp:ListItem>
</asp:DropDownList></li>
<li><span class="formLabel">If you would prefer to be contacted at a specific time,please let us know</span><asp:DropDownList
ID="DDL_Time" runat="server" CssClass="ddown">
<asp:ListItem>Morning</asp:ListItem>
<asp:ListItem>Afternoon</asp:ListItem>
<asp:ListItem>Evening</asp:ListItem>
</asp:DropDownList></li>
<li><asp:ImageButton ID="IB_Submit" runat="server" CssClass="submitformbtn"
ImageUrl="~/_includes/images/buttons/submit.jpg" onclick="IB_Submit_Click" /></li>
</ul>
</asp:Panel>
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我需要
I needed
<form runat="server">
for this to work, Thanks @David