Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: wrapping .TLB to .DLL for .NET Pin
normanordas22-Apr-04 16:04
normanordas22-Apr-04 16:04 
GeneralRe: wrapping .TLB to .DLL for .NET Pin
Heath Stewart23-Apr-04 1:53
protectorHeath Stewart23-Apr-04 1:53 
GeneralShowing custom tooltip Pin
Meysam Mahfouzi18-Apr-04 17:57
Meysam Mahfouzi18-Apr-04 17:57 
GeneralRe: Showing custom tooltip Pin
Heath Stewart19-Apr-04 4:49
protectorHeath Stewart19-Apr-04 4:49 
GeneralDotNet version problem Pin
azusakt18-Apr-04 16:09
azusakt18-Apr-04 16:09 
GeneralRe: DotNet version problem Pin
scadaguy18-Apr-04 16:49
scadaguy18-Apr-04 16:49 
Generalwindows media web control Pin
Marveyles18-Apr-04 15:11
Marveyles18-Apr-04 15:11 
GeneralRe: windows media web control Pin
Heath Stewart19-Apr-04 4:09
protectorHeath Stewart19-Apr-04 4:09 
Marveyles wrote:
1. Is there anyway I can treat the media player as a web control and can still access the attributes?

No, not really. The media player is instantiated on the client. If you need to access it on the server, then a separate instance is instantiated on the server (obviously, the two are not the same instance). The best thing to do is also emit client-side script that can access the media player using it's ID that you should also write-out to the page.

Marveyles wrote:
2. Are there any other ways that I can do to achieve such thing? (basically putting the windows media player as an object of a class from the cs file (not writing it as an html object)

And how does the work for the client, then? You seem to be missing the fact that all data from the server is downloaded into the client browser and is separate from the server. Even with HTTP Keep-Alive data that has already been sent to the client is lost to the server - it's basically a streaming protocol.

If you want the player to see the media player (or even to hear music if the media player isn't visible), it has to be output to HTML so the browser can instantiate it. Period.

 

Microsoft MVP, Visual C#
My Articles
Generalc# oledbdataadapter using access db and asp Pin
MeterMan18-Apr-04 13:23
MeterMan18-Apr-04 13:23 
GeneralRe: c# oledbdataadapter using access db and asp Pin
Heath Stewart19-Apr-04 4:10
protectorHeath Stewart19-Apr-04 4:10 
GeneralRe: c# oledbdataadapter using access db and asp Pin
MeterMan19-Apr-04 4:28
MeterMan19-Apr-04 4:28 
GeneralRe: c# oledbdataadapter using access db and asp Pin
Heath Stewart19-Apr-04 5:18
protectorHeath Stewart19-Apr-04 5:18 
GeneralRe: c# oledbdataadapter using access db and asp Pin
Heath Stewart19-Apr-04 4:11
protectorHeath Stewart19-Apr-04 4:11 
GeneralPanels and transparency Pin
Flack18-Apr-04 10:01
Flack18-Apr-04 10:01 
GeneralRe: Panels and transparency Pin
Dave Kreskowiak18-Apr-04 12:53
mveDave Kreskowiak18-Apr-04 12:53 
Generaladding new user Pin
emysola18-Apr-04 8:50
emysola18-Apr-04 8:50 
GeneralRe: adding new user Pin
Roman Rodov18-Apr-04 16:02
Roman Rodov18-Apr-04 16:02 
GeneralArray List Pin
Member 95766518-Apr-04 6:16
Member 95766518-Apr-04 6:16 
GeneralRe: Array List Pin
Stefan Troschuetz18-Apr-04 6:51
Stefan Troschuetz18-Apr-04 6:51 
GeneralGet table names in an Access .mdb database Pin
BillAnton18-Apr-04 5:50
BillAnton18-Apr-04 5:50 
GeneralRe: Get table names in an Access .mdb database Pin
Mike Ellison18-Apr-04 19:33
Mike Ellison18-Apr-04 19:33 
GeneralRe: Get table names in an Access .mdb database Pin
Mike Ellison18-Apr-04 19:35
Mike Ellison18-Apr-04 19:35 
GeneralRe: Get table names in an Access .mdb database Pin
BillAnton19-Apr-04 8:37
BillAnton19-Apr-04 8:37 
GeneralReading an ini file Pin
mcgahanfl18-Apr-04 5:27
mcgahanfl18-Apr-04 5:27 
GeneralRe: Reading an ini file Pin
CWIZO18-Apr-04 7:01
CWIZO18-Apr-04 7:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.