Solved

How to Convert JavaScript to asp.net code

Posted on 2010-11-23
3
310 Views
Last Modified: 2012-05-10
hi,
 i am warrying about javascript to understand its functionality,could you please help me how to convert this javascript into asp.net code and it's functionality.

<script type="text/javascript">
                      var so = new SWFObject('flash/player.swf','player','474','377','9');
                      so.addParam('allowscriptaccess','always');
                      so.addParam('allowfullscreen','true');
                      so.addParam('flashvars','&file=http://www.zzzz.org/Flash/flv/yyyy.flv&skin=flash/snel.swf');
                      so.write('player');</script>

thanks in advance.
0
Comment
Question by:CPSRI
  • 2
3 Comments
 
LVL 28

Expert Comment

by:sammySeltzer
Comment Utility
Instead of trying to convert it to as.net, why not use it as part of clientscript in asp?

Just stick the function in the body of your asp.net file and it should work.
0
 
LVL 28

Accepted Solution

by:
sammySeltzer earned 500 total points
Comment Utility
if you decide to change it though, then static html embed may work.

<object width="474" height="377">
<param name="movie" value="player.swf" />
<embed src="player.swf" width="474" height="377" />
</embed>
</object>

Open in new window

0
 

Author Closing Comment

by:CPSRI
Comment Utility
thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now