Friday, March 16, 2012

please help me!

hi all,
i wanna create a page which has two parts.
in the first part,i have header and menus and logo...
when i click on any thing in the firs part it shows the result
in the second part without any refresh in page.
could you please help me?
i would be apprecited any suggestion.

thanks


Even if you did do something like have panels and just toggled the visibility, it would still refresh the page because of postback

So I'm not sure if theres any method to change whats being displayed on an ASP.NET page without refresh from a postback.


Hi,
It seems you'll need to do all that in JavaScript, as there is presently no way to run .net languages on the client browser.
You could cheat a bit and put the right side content in an IFRAME sothat you could reload that one only. You'll need to get your handsdirty with even more javascript for this one, however.
John

two words. Java Script.

You can create <div></div> regions and set the display value to none or block. here is a start for you. you will have to create a button to fire the javascipt.

<script language="javascript">

function showView(divID){

document.getElementById('span1').style.dispaly = 'none';

document.getElementById('span2').style.display = 'none';

document.getElementById(divID).style.display = 'block';

}

<html>

<div id="span1" style="DISPLAY: none">Hello</div>

<div id="span2" style="DISPLAY: block">Good Bye</div>


You could also use IFRAMEs. When the user clicks on the selectedoption, it loads the selected page in the IFRAME. All you have to do isadd a target="<iframeName>" attribute to the anchor. Thecontainer page never needs to refresh.
Also,Javascript is one word.
Regards,
Sam

I stand corrected.

Hi All,
thanks for your suggestions,really i didn't know how to start?Wink [;)]
all of your solutions were useful and i used themGeeked [8-|]
AGAIN MANY MANY THANKS GUYSSmile [:)]

0 comments:

Post a Comment