ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1735
Number of posts: 3305

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to call a javascript function from asp.net code? Posted by Weng on 7 Apr 2006 at 2:43 AM
Hi,

How do I call a javascript function from ASP.Net (VB) code?

I added a javascript file into the asp.net project and wrote some javascript statements to display an IFrame.

The javascript function in the jscript file is:

<script language = "javascript">

function showIFrame()
{
var iframe = document.createElement("iframe");

iframe.id = "testiframe";
iframe.name = "testiframe";
iframe.frameborder = 1;
iframe.height = 185;
iframe.width = 175;
iframe.src = "C:\Documents and Settings\RadioButtons\Office.jpg";
window.document.body.appendChild(iframe);

return false;

}

How do I call this function from ASP.Net(VB) code?
e.g Form1_Load(.....)




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.