Click to See Complete Forum and Search --> : Reloading Frameset webforms from one of them
TheEagle
May 24th, 2005, 02:52 AM
I have a Frameset that contains three webforms one of them (which is in the banner frame) has a DropDownList control.I want changing its value cause all the webforms(in all frames)in the Frameset to be reloaded and to get its value too.
Alsvha
May 24th, 2005, 04:52 AM
You can use the JavaScript event "onChange" on the dropdown and make a script which reloads the two other frames.
TheEagle
May 24th, 2005, 06:35 AM
Thank you for your quick respond...I have reload the other webforms using javascript but i couldnt get the dropDown value in the other webforms in the other frames(i can get it in the webform that has the dropdown control).
Alsvha
May 24th, 2005, 08:39 AM
So you need the value from the dropdown to be send to the frames you reload?
Then you can extract the value that is selected in the dropdown with the JavaScript, and use it as a querystring for an url and set the loaction of your frames. ( something along the line of xxxxxx.location.href = "url?key=value")
Alternative - if you don't wish to "display" the value, I would think you could use the JavaScript to submit the form(s) and use that as a reload. (Just remember to place the value in an input field - like hidden)
TheEagle
May 29th, 2005, 01:49 AM
Hi,
Sorry for being late..Iwas very busy last days.
I have solved the problem using your idea and i got the value in the Server side by using the following code :
Session["language"]=Request.Form["hid"];
It wasn't my idea ..I got it from another website forum and one from the codeproject website members has helped me in solving this problem and you of course.
Thank you very much.
The Eagle
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.