C# 检索fancybox中的asp.net文本框值
是否可以将jQuery fancybox中输入的asp.net文本框值检索到查询字符串中?如果是的话,怎么办 这是我的代码:C# 检索fancybox中的asp.net文本框值,c#,jquery,asp.net,fancybox,C#,Jquery,Asp.net,Fancybox,是否可以将jQuery fancybox中输入的asp.net文本框值检索到查询字符串中?如果是的话,怎么办 这是我的代码: $(document).ready(function () { $(".various3").fancybox({ 'width': '77%', 'height': '100%', 'autoScale': false, 'transitionIn':
$(document).ready(function () {
$(".various3").fancybox({
'width': '77%',
'height': '100%',
'autoScale': false,
'transitionIn': 'none',
'transitionOut': 'none',
'href': '#searchPopupWindow'
});
});
protected void btnSubmit_Click(object sender, EventArgs e)
{
this.Search(txtAddress.Text, txtSuite.Text, txtZip.Text, moveDate);
}
调试此代码时,当从fancybox输入时,我得到的文本框值为
”
。文本框与打开fancybox的当前页面的关系如何?它是作为fancy box中新页面(IFrame)的一部分加载的,还是当前asp.net页面的HTML代码部分加载的?textbox是加载在fancy box中的UserControl的一部分。您的单击事件应该放在UserControl codebehind中,或者您应该通过UserControl类的公共属性从textbox中公开这些值。然后是[UserControlID].txtAddress.Text