Basically, I am trying to pass some information from my database (which I am accessing in my code behind) to a Iframe Edit Control in my HTML and Javascript code. How do I pass information between these?
I know how to access the database no problem in the code behind, and how to put information into the Iframe Edit Control in my Javascript... but i dont know how to pass info between them. I presume its through a global variable or something?...
I have now actually got it kind of working for passing the data in... what i did was declare a public variable in my code behind, then filled it with the data, and then placed it in the IFRAME using <%= VARIABLENAME %> in HTML/JAVASCRIPT view.
However, I dont know how to get it back out again... ie. I dont know how to refer to the IFRAME from the code behind?
or alternatively I dont know how to fill a variable from the HTML/Javascript that can then be used in the code behind to populate the database.
If it is not clear what i mean... basically I have now got my info in the IFRAME on screen and I want to save the contents to a database (the code for this is in my code behind).
Bookmarks