如何将Asp.net webform划分为框架 [英] How to divide an Asp.net webform into frames

查看:175
本文介绍了如何将Asp.net webform划分为框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨每一个

如何将Asp.net webform划分为框架

并通过stander按钮而不是HTML按钮调用webfrom框架

感谢您的帮助



为例

http://www.lloydsgroup.co.uk/news.php?uniqueID=177



在此网站菜单标题中调用其他网页

确定此菜单在框架和其他页面中调用框架

解决方案

如果您的意思是 IFrames ,您需要知道何时使用它。 IFrame可用于显示与其余页面无关的静态或某些交互式内容。假设您的页面分为页眉,正文和页脚。您希望所有页面都有通用的页眉和页脚。然后方式不是IFrames。因为如果你把iframe放到标题中,如果它与正文内容交互,那将是一个复杂的问题。



Asp.net处理标题的方式是母版页或嵌套的母版页。对于页脚,您可以使用Web用户控件,您可以在所有页面中插入这些控件。



因此,IFrames可用于显示静态或某些交互式内容不与其他页面交互。鉴于脚本漏洞,Web用户控件比IFrame更安全。但IFrames的优势在于它可以显示远程内容。



或者如果它需要对内容页面中的控件进行划分和分组,那么Panel就是这样。如果您不想同时显示所有内容,但只在某些条件下显示该内容,则会查找多视图。如果你想创建一个向导,还要看向导控制。



如果以上不适合你的问题提供更多细节,我们可以帮助你。 />


问候


您是否在询问iFrame?如果是这样,那么您需要将要显示的webform的任何部分分成单独的.aspx页面。从那里,您可以将给定的.aspx页面加载到各自的iFrame中。那时他们之间的任何形式的互动都必须用javascript来完成,但即便如此,你也可能会受到极大的限制(特别是如果你正在处理SSL /非SSL)。



除非你在谈论面板。有必要对此进行更多澄清。


< b>< pre lang =CSS>< u>< strike>< small>< big>< pre><>< b>< u>< i>< strike>< small>< big>< pre>< pre lang =java>< pre lang = Javascript>< pre lang =objc>< / pre>< / pre>< / pre>< / pre>< / big>< / small>< / strike>< ; / I>< / U>< / b>< /预>< /预>< /大>< /小>< /击>< / U>< /预>< ; / b个

hi every one
How to divide an Asp.net webform into frames
and call webfrom in frames by stander button not HTML button
thanks for any help

as example
http://www.lloydsgroup.co.uk/news.php?uniqueID=177

in this site menu in header to call other web page
ok this menu in frame and other pages called in frame

解决方案

If you mean IFrames you need to know when to use it. IFrames can be used to display static or some interactive content which is not related to rest of the pages. Say your page is divided into Header, Body and Footer. You want to have common header and footer for all the pages. Then the way is not IFrames. Because if you put Iframe for header, if it interact with the body content it will be a complex problem.

The Asp.net way of dealing with header is master pages or nested master pages. For the footer you can use Web user controls, which you can insert commonly in all the pages.

So summarily IFrames can be use to display static or some interactive content which are not interact with rest of the pages. Web user controls are safer than IFrames in view of scripting vulnerability. But the advantage of IFrames is it can display a remote content.

Or if it needed divide and group the controls in the content page then Panels are the way. You look for multi views if you don't want to show all the contents at same time, but only on certain conditions show that content. Also look at wizard control if you want to create a wizard.

If the above not fit for your question give more details, we would able to help you.

Regards


Are you asking about iFrames? If so then you need to have whatever parts of the webform you want to be displaying divided up into separate .aspx pages. From there you can load the given .aspx pages into their respective iFrames. Any sort of interaction between them at that point would have to be done with javascript, but even so you would be highly limited (especially if you're dealing with SSL / non-SSL) with what you could possibly do.

Unless you're talking about panels. More clarification on this is necessary.


<b><pre lang="CSS"><u><strike><small><big><pre><pre><b><u><i><strike><small><big><pre><pre lang="java"><pre lang="Javascript"><pre lang="objc"></pre></pre></pre></pre></big></small></strike></i></u></b></pre></pre></big></small></strike></u></pre></b>


这篇关于如何将Asp.net webform划分为框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆