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

C#

 
GeneralRe: How to convert windows media player to be a web control? Pin
Marveyles11-Mar-04 15:04
Marveyles11-Mar-04 15:04 
GeneralRe: How to convert windows media player to be a web control? Pin
Heath Stewart12-Mar-04 2:35
protectorHeath Stewart12-Mar-04 2:35 
GeneralRe: How to convert windows media player to be a web control? Pin
Marveyles14-Mar-04 13:19
Marveyles14-Mar-04 13:19 
GeneralRe: How to convert windows media player to be a web control? Pin
Heath Stewart15-Mar-04 3:17
protectorHeath Stewart15-Mar-04 3:17 
GeneralRe: How to convert windows media player to be a web control? Pin
Marveyles15-Mar-04 12:59
Marveyles15-Mar-04 12:59 
GeneralRe: How to convert windows media player to be a web control? Pin
Heath Stewart15-Mar-04 13:28
protectorHeath Stewart15-Mar-04 13:28 
GeneralRe: How to convert windows media player to be a web control? Pin
Marveyles16-Mar-04 12:02
Marveyles16-Mar-04 12:02 
GeneralRe: How to convert windows media player to be a web control? Pin
Heath Stewart17-Mar-04 2:49
protectorHeath Stewart17-Mar-04 2:49 
You could always make your own HTML server control like I mentioned before. It's really not that hard. Extend HtmlControl and override Render to output your code. Add a URL property to it that you can set and render in the output, something like:
public class HtmlParamControl : HtmlControl
{
  public string Url
  {
    get { return (string)ViewState["Url"]; }
    set { ViewState["Url"] = value; }
  }
  protected override void Render(HtmlTextWriter writer)
  {
    writer.WriteBeginTag("param");
    writer.WriteAttribute("name", "URL");
    writer.WriteAttribute("value", Url);
    writer.WriteEndTag("param");
  }
}
...or something similar to that. You really don't need to worry about anything else since a PARAM tag is very basic. It's possible that VS.NET is removing the ID and RUNAT attributes because they're not allowed on the PARAM tag so VS.NET probably thinks it's fixing the "problem". This way should work.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to convert windows media player to be a web control? Pin
Marveyles17-Mar-04 12:44
Marveyles17-Mar-04 12:44 
GeneralRe: How to convert windows media player to be a web control? Pin
Heath Stewart20-Mar-04 12:53
protectorHeath Stewart20-Mar-04 12:53 
Generalnet use in dos mode Pin
Rob Tomson10-Mar-04 14:16
Rob Tomson10-Mar-04 14:16 
GeneralRe: net use in dos mode Pin
Heath Stewart11-Mar-04 3:05
protectorHeath Stewart11-Mar-04 3:05 
Generalcls in console app Pin
Rob Tomson10-Mar-04 14:13
Rob Tomson10-Mar-04 14:13 
GeneralRe: cls in console app Pin
Heath Stewart11-Mar-04 3:08
protectorHeath Stewart11-Mar-04 3:08 
GeneralWindows Media Player 9.0 and C# question Pin
Gambit00710-Mar-04 11:51
Gambit00710-Mar-04 11:51 
GeneralRe: Windows Media Player 9.0 and C# question Pin
Heath Stewart10-Mar-04 12:03
protectorHeath Stewart10-Mar-04 12:03 
GeneralRe: Windows Media Player 9.0 and C# question Pin
Gambit00710-Mar-04 17:11
Gambit00710-Mar-04 17:11 
GeneralSmart clients - the best way to implement this Pin
Judah Gabriel Himango10-Mar-04 11:19
sponsorJudah Gabriel Himango10-Mar-04 11:19 
GeneralRe: Smart clients - the best way to implement this Pin
Heath Stewart10-Mar-04 11:25
protectorHeath Stewart10-Mar-04 11:25 
GeneralRe: Smart clients - the best way to implement this Pin
Judah Gabriel Himango10-Mar-04 13:55
sponsorJudah Gabriel Himango10-Mar-04 13:55 
GeneralRe: Smart clients - the best way to implement this Pin
Heath Stewart11-Mar-04 2:38
protectorHeath Stewart11-Mar-04 2:38 
GeneralRe: Smart clients - the best way to implement this Pin
Heath Stewart11-Mar-04 4:39
protectorHeath Stewart11-Mar-04 4:39 
GeneralAs stewy says "Victory is Mine" Pin
Matthew Hazlett10-Mar-04 10:31
Matthew Hazlett10-Mar-04 10:31 
GeneralRe: As stewy says "Victory is Mine" Pin
John Fisher10-Mar-04 11:00
John Fisher10-Mar-04 11:00 
GeneralRe: As stewy says "Victory is Mine" Pin
Wraith211-Mar-04 0:48
Wraith211-Mar-04 0:48 

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.