.NET 表单未在厚盒窗口内加载?

发布于 2024-11-28 17:50:07 字数 3075 浏览 3 评论 0原文

我正在使用 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小嗲 2024-12-05 17:50:07

我需要

才能正常工作,谢谢@David

I needed <form runat="server"> for this to work, Thanks @David

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文