Click to See Complete Forum and Search --> : ASP.AJAX Flash and "iframe" and URL problem(s)...


fat_bob
11-24-2007, 05:57 PM
Hi!
I havent worked much with ASP before and have now started to learn some of the basics, im useing C# for my ASP, I also have AJAX implemented aswell. How ever I do now have a problem which I cant really get around...and I thought that maybe someone here might have a good sulotion:)

Ok lets get to the point!
The thing is that I have a banner which is with my logo and my menu for the site(the navigition), and this banner is made in Flash. Then what I want to do is that if someone presses one of my navigition buttins in the Flash movie i then want a panel to switch content. For instance if you have the button called "Links" I want it to load up the links content in the panel, and if I later on press for instance "Contact" I want the panel to switch to the contact information. I also want to change the top URL so its possible to directly link from one content of the panel to another, to explain it abit easier...lets say you have a normal html Iframe then once you press one of my navigation buttons it switches content. The thing is that if the Iframe is "declared" in for instance the index.html file you will always get to the inde.html page first if you create a link to your site, and the content of the iframe will be the "start content" and not the "Links" content or the "Contact" content...so you cant really create direct links to a specifc part of the page, cause all of em will end up with the "index.html's start content"....I might confuse you now but I hope you understand what I meen....

I tried to make it possible to create direct links by useing a public variable in C#...so once you pressed a button, the button directed you to for example the URL "http://test.aspx?var="contact" which in this case whould tell the C# code that the variable var is now contact, I then made an if statement like this one

if(var == "Contact"){
Panel1.Text = "Contact page"
}

I did exactlly the same for the rest of the pages, but changed the if statment to the correct things.

This worked! with one exception!...the flash movie and the whole site gets refreshed!
I just want a smal part of the site to refresh and not the whole site!
I tried with UpdatePanel from the AJAX aswell, but the thing is that once I send a new URL by pressing a button it updates the entire page....

So well I guess your quite confused now:P...so am I :S..well how ever I will just rephrase myself and ask the questions right out.

1.How do you refresh a smal part of a web-page without refrshing the whole site(like the HTML Iframe)
2. How do you make it possible to directly link to the specific panel content?
and
3. Is ther any way to combine C# with ActionScript?

Please let me know if your still confused, I just couldnt explain it much better atm...