Click here to Skip to main content
12,889,437 members (48,820 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#3.0 C# 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
Updated 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 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 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100