Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

using WMA control from C# code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PiotreK - 05 Feb 2008 15:39 GMT
I've got an object (at the end of the post). Is it possible to pass an
URL to the object from C# code of the ASP.NET 2.0 with AJAX? I don't
want to set JScript events like OnClick with the command:

document.getElementById('Player').URL=

How to do it?

           <object id="Player"
               height="64"
               classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
               <param name="AutoStart" value="true" />
               <param name="uiMode" value="full" />
           </object>

PiotreK
PiotreK - 05 Feb 2008 15:41 GMT
Incorrect title. The correct would be: WMP, like Windows Media Player
control. Sorry.

> I've got an object (at the end of the post). Is it possible to pass an
> URL to the object from C# code of the ASP.NET 2.0 with AJAX? I don't
[quoted text clipped - 12 lines]
>
> PiotreK
Mark Rae [MVP] - 05 Feb 2008 16:03 GMT
> How to do it?

Have you seen this...? http://www.wimpyplayer.com/

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

bruce barker - 05 Feb 2008 16:56 GMT
ScriptManager.RegisterStartupScript(this,
  this.GetType(),
  "player",
  "document.getElementById('Player').URL=' + url + "'",
  true);

or

    <object id="Player"
                height="64"
                classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
               <param name="AutoStart" value="true" />
               <param name="uiMode" value="full" />
               <param name="URL" value="<%= PlayerURL%>" />
    </object>
you coudl also use a lteral control to render the object tag at runtime.

-- bruce (sqlwork.com)

> I've got an object (at the end of the post). Is it possible to pass an
> URL to the object from C# code of the ASP.NET 2.0 with AJAX? I don't
[quoted text clipped - 12 lines]
>
> PiotreK
PiotreK - 06 Feb 2008 13:25 GMT
No good. I have AJAX website and ScriptManager.RegisterStartupScript
works synchronous... I've got i GridView with many lines and I want to
have many playbuttons in that Grid but I'm not sattisfied with adding
OnClick event - I want to control it with C# code. Simply calling an
asynchronous JavaScript line would be ok.

PiotreK

On 5 Lut, 17:56, bruce barker <brucebar...@discussions.microsoft.com>
wrote:
> ScriptManager.RegisterStartupScript(this,
>    this.GetType(),
[quoted text clipped - 31 lines]
>
> > PiotreK
Mark Rae [MVP] - 06 Feb 2008 13:52 GMT
> No good. I have AJAX website and ScriptManager.RegisterStartupScript
> works synchronous... I've got i GridView with many lines and I want to
> have many playbuttons in that Grid but I'm not sattisfied with adding
> OnClick event - I want to control it with C# code. Simply calling an
> asynchronous JavaScript line would be ok.

You mean something like this...?
http://www.sanctuaryrig.co.uk/sounds/default.aspx

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.