在 RadWindow 中检测 ASP.NET 页面
我在母版页中有一个控件,仅当母版页不在 RadWindow 中时才显示该控件;当在 RadWindow 中时,它应该被隐藏。是否可以检测页面请求何时位于 RadWindow 内?
谢谢。
I have a control in a master page that I want to display only when the master page is not in a RadWindow; when in a RadWindow, it should be hidden. Is that possible to do, to detect when the page request is inside the RadWindow?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用 Firefox 的 Firebug 的 Net 选项卡或 Fiddler 查看在 RadWindow 中打开页面时发出的 http 请求。
只需监视此 RadWindow 演示
http: //demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
Telerik 传递 rwndrnd 中打开的页面
到 RadWindow http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/editformcs.aspx?EmployeeID=1&rwndrnd=0.8749773452267927
如果该查询字符串存在,则可以作为它在 RadWindow 中打开的指示符。
希望这有帮助。从过去使用 Telerik 的经验来看,这是一种不断寻找和使用这样的黑客来完成任何事情的练习。
Try to use Firefox's Firebug's Net tab or Fiddler to review the http requests being made when you open a page in the RadWindow.
Just monitor requests on this RadWindow demo
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
Telerik passes rwndrnd to the page that's being opened in the RadWindow
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/editformcs.aspx?EmployeeID=1&rwndrnd=0.8749773452267927
If that querystring is present, that could serve you as an indicator of it being opened in RadWindow.
Hope this helps. From past experience working with telerik's stuff, it was an exercise in finding and using hacks like this all the time to get anything done.
这是方法,但仅限于客户端
http://www.telerik.com/community/forums/aspnet-ajax/window/best-way-to-detect-page-is-in-a-radwindow.aspx
Here is the way, but only on client
http://www.telerik.com/community/forums/aspnet-ajax/window/best-way-to-detect-page-is-in-a-radwindow.aspx