Code Behind -> Javascript

wxdqz

New Member
Hi,

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?...

<Script Language="javascript" for="DesktopText" event="onload">
DesktopText.document.body.innerHTML = ''
</Script>

...with putting my global variable (which i would fill from the database in my code behind) at the end of that line.

CAN ANYONE HELP?

I am using Visual Studio.net and im working in an .aspx.

Cheers,
Stu.
 
Back
Top