Click to See Complete Forum and Search --> : Refresh only part of image


sonia sardana
07-29-2009, 01:33 PM
Hello frnds,As this is my first question on this site,I m expecting replies.

supose there are two buttons on a form,on button1 click i want to show some portion & on button2 click,i want to show some portion,without refreshing the whole page.

As in Vb.net,we have two panels one over the another,& suppose on button1 panel1 visible is set to true & vice versa.

I want to ask dat which control to take to refresh part of page,can somebody tell me?????I have to also change the data as well as controls...plz help me out!!

Kuriyama
07-31-2009, 08:03 AM
. . .As in Vb.net. . . .

<rant-on>This is a classic ASP forum. ASP and ASP.NET are different technologies! If you have .NET questions ask them in the .NET forum!</rant-on>

Ahem. . . In order to do this without refreshing the page you need to use JavaScript. Wrap your portions in div tags, and have each button have an onclick event that toggles the display value of said div tag. Here is a very basic example of what you are trying to do. http://www.satya-weblog.com/2007/06/javascript-show-hide-div-p-input-or-any.html

If you have any further questions about this sort of task, please ask it in the JavaScript forums.