【发布时间】:2010-03-12 17:42:56
【问题描述】:
我在使用 ColorBox http://colorpowered.com/colorbox/ 时无法从文本框中获取值
我有一个打开 ColorBox 模式对话框的表单。在模式中,我有一个 asp.net 文本框和一个按钮,当我单击按钮时,我得到回发,但文本框的值始终为空。
<script type="text/javascript">
$(document).ready(function () {
$(".example8").colorbox({ width: "50%", inline: true, href: "#inline_example1" });
});
</script>
....
<form id="form1" runat="server">
<a href="content/ohoopee1.jpg" rel="example8" title="abc">Click here</a></p> <a class='example8'
href="#">Inline HTML</a></p>
<!-- This contains the hidden content for inline calls -->
<div style='display: none'>
<div id='inline_example1' style='padding: 10px; background: #fff;'>
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">LinkButton</asp:LinkButton><asp:TextBox
ID="TextBox1" runat="server"></asp:TextBox>
</div>
</div>
</form>
任何帮助将不胜感激。 谢谢。
【问题讨论】: