使用C#WEB APPLICATION在面板内部显示表单 [英] Display forms inside the panel using C# WEB APPLICATION

查看:78
本文介绍了使用C#WEB APPLICATION在面板内部显示表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,


现在,我想在面板内的Web应用程序中打开新页面.

例如,我的主页上有3个按钮,只有一个面板.何时按

button1,在面板内部打开新页面(aaa.aspx),然后再按一次button2

页面(bbb.aspx)在同一面板上打开,依此类推...我搜索了互联网,但得到了

仅适用于Windows应用程序...但是现在我需要 Web应用程序 ..全部

欢迎回复...


谢谢与问候

Dhinesh kumar Velmayil

Dear All,


Now i wants to open new page in web application inside the panel.

For example i have 3 buttons on my Main page and have one panel. When am press

button1, new page (aaa.aspx) opened inside the panel, and press button2 another

page (bbb.aspx) opened at the same panel and so on... I searched internet but i got

only for windows application... But now i need for WEB APPLICATION .. All

replies are welcome...


Thanks and Regards

Dhinesh kumar Velmayil

推荐答案

您可能难以找到答案的原因是您使用的术语.术语Form通常保留给Windows应用程序.开发Web应用程序时,请使用术语Page.网页通常包含表单,但它是页面的组成部分.谈论从服务器加载内容时,您是在加载页面,而不是表单.

当内容从不同页面加载到面板中时,通常使用一种称为AJAX(异步Javascript和XML)的技术.

有许多可用的面板组件,使您可以异步加载其他页面的内容并将其显示在当前页面中.这样的组件之一就是UpdatePanel.有关更多详细信息,请参见以下链接:

UpdatePanel控件概述 [ AJAX简介 [ ^ ]

另一种方法可能是使用iFrame. iFrame本质上是浏览器窗口中的浏览器窗口,尽管现在有点老了,但我仍然适合您的用途.

使用JavaScript更改iFrame的内容按钮 [
The reason you may be struggling to find an answer is the terminology you''re using. The term Form is generally reserved for Windows applications. When developing web applications use the term Page. Whilst a web page often contains a form, it is a component of the page. When talking about loading content from the server, you''re loading a page, not a form.

When content is loaded into a panel from different pages this normally uses a technology called AJAX (Asynchronous Javascript and XML).

There are many panel components available which allow you to asynchronously load content from other pages and display them in your current page. One such component is the UpdatePanel. See the following link for more details:

UpdatePanel Control Overview[^]

If you want to know more about what these components are doing behind the scenes then you need to study writing AJAX code.

Here is a good starting point:

AJAX Introduction[^]

Another way might be to use an iFrame. An iFrame is essentially a browser window inside a browser window and my be suitable for your purposes although are a bit old hat nowadays.

Change content of an iFrame with a Javascript button[^]

Good luck!




您可以将iframe放在面板控件中,并在单击按钮时将其源设置为不同的网址.
Hi,

You can put iframe inside the panel control and set its source to different urls on button clicks.


这篇关于使用C#WEB APPLICATION在面板内部显示表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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