Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#3.0 ASP.NET
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
Posted 27-Sep-12 20:50pm
Edited 27-Sep-12 23:09pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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!
Dhinesh kumar.V at 28-Sep-12 5:08am
Thanks a lot your comments Stephen. And this is my first web application.. So i will follow your words and get you back...
Thanks & Regards
Dhinesh Kumar Velmayil
Stephen Hewison at 28-Sep-12 5:51am
No problem, if you could show your thanks by accepting the answer it would be much appreciated.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid