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

C#

 
GeneralSimple calculation problem with decimal value drivin me NUTS!!!! Pin
ASGill10-Mar-04 18:11
ASGill10-Mar-04 18:11 
GeneralRe: Simple calculation problem with decimal value drivin me NUTS!!!! Pin
MasudM10-Mar-04 20:15
MasudM10-Mar-04 20:15 
GeneralAn object as property in property panel Pin
Den2Fly10-Mar-04 17:08
Den2Fly10-Mar-04 17:08 
GeneralRe: An object as property in property panel Pin
Heath Stewart11-Mar-04 3:38
protectorHeath Stewart11-Mar-04 3:38 
QuestionHow to convert windows media player to be a web control? Pin
Marveyles10-Mar-04 17:02
Marveyles10-Mar-04 17:02 
AnswerRe: How to convert windows media player to be a web control? Pin
Heath Stewart11-Mar-04 3:31
protectorHeath Stewart11-Mar-04 3:31 
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 
It doesn't HAVE to be in the .cs file. You can mix code in both the code-behind files and in the .aspx files. The .aspx derives from the class in your .cs file, which derives from the Page class (or any other class you have choosen). A good OO design would let you do it either way.

You can still include an HTML control that lets you programmatically assign attributes. You could either write your own (not hard - add a property and override Render to output the HTML with the assign URL) or use a generic HtmlControl in place of the param, which should work:
<object ...>
  <param name="URL" value="" id="URLParam" runat="server"/>
  <!-- ... -->
</object>
Then in the page, make sure that a HtmlGenericControl is defined as protected. In your code, simply add the attribute value:
protected HtmlGenericControl URLParam;
// ...
URLParam.Attributes["value"] = URLTextBox.Text;


There are many other ways you can accomplish the same thing, with or without a client script block (which also isn't hard). Just read the .NET Framework SDK documents.

 

Microsoft MVP, Visual C#
My Articles
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 
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 

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.