ASP.NET 中的 Facebox 无法回发
我有一个带有反馈表单的 aspx 页面,该表单呈现在 Facebox 内。在表单中,我有一个用于提交表单的按钮。此后,facebox 关闭并打开正在另一个页面的facebox 中加载的页面。我确实在这里进行了许多问答,并尝试了许多建议的答案,例如下面附加的链接,但不幸的是我仍然无法弄清楚。
感谢您的任何回复。提前致谢。
i have an aspx page with feedback form which rendered inside facebox. In the form, i have a button which used to submit the form. After this, the facebox closes and its opening the page which is loading in the facebox in another page. I did go through many q&a here and tried on many suggested answers such as the link attached as below but unfortunately I still cannot figure it out.
Facebox adding commas to input
Appreciate for any reply. thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能想要尝试将您的应用程序粘贴到 UpdatePanel 中,以便当您在您的部分中回发时,它不会将整个网站回发到 Facebook。我不确定你的网站是如何嵌入到 Facebook 中的,但如果可能的话,你也可以尝试使用 iFrame 来做同样的事情(这样你只发回你的框架,而不是整个 Facebook 页面)。我的猜测是,回发到 Facebook 会导致您的页面被覆盖(被 Facebook 覆盖)。
You might want to try sticking your app in an UpdatePanel so that when you postback in your section it's not posting back the entire site to FaceBook. I'm not sure how your site is embedded into facebook, but if possible you might also try using iFrames to do the same thing (so that you're only posting back your frame, and not the entire facebook page). My guess is that the postback to facebook results in your page being overwritten (by facebook).
如果您在回发时遇到问题,强制回发的最简单方法是触发 __doPostBack 方法,如下所示:
无论按钮单击出现什么问题,这都应该可以完成任务。
If you are having issues with posting back, the easiest way to force the postback is to trigger the
__doPostBack
method as in:Regardless of the issue with the button click, this should do the job.