1
Answer

.NET General - using "code behind file (*.aspx.cs ).........

Photo of Ray  Grant

Ray Grant

10y
626
1
Hello. "simple  question"
 I have a list of 5  <asp:RadioButton's "joined" by assigning EACH RadioButton the common "GroupName="ChoiceA""  Property.
I have ( in *.css file ) settings - EACH of my 5 RadioButtons have "style" similar to :
 ======================
 .styleRadioButton#
{   position : absolute;
    z-index : 10;
    top: ##%;  /* these 2 settings vary a bit, but actually - only "top" */
    left: ##%;
    width: 200px;
    height: 25px;
    color : #RRGGBB ;     /*  my 5 color choices are Red/Orange/Green/Blue/Purple   }
=======================
 WHEN a specific <asp:RadioButton> is chosen - I want my label
(<asp:Label ID="lblTester" CssClass ="styleLabelTester" runat="server" Text=" " ToolTip="lblTester" />)
to "report" choice - with the color ( forecolor ) "colored" same as Radio Button selected.
( Have the label "print to screen" in the selected color of associated <asp:RadioButton> )
Thanks, in advance.
Sincerely,

Ray Grant
 
 
 
 

Answers (1)

0
Photo of Vulpes
NA 98.3k 1.5m 13y
None of those functions are anything to do with ASP.NET as such though they can be called from it (using the Platform Invoke mechanism in the case of the first two).

Briefly:

* LoadLibrary is an unmanaged function which loads a dll into a process's address space.

* CoCreateInstance is an unmanaged funmction which creates a COM object using its Class Id (CLSID).

* CreateObject is a VB library function which creates a COM object using its Program Id (ProgID).

* Assembly.Load is a .NET method which loads an assembly at runtime.