Click here to Skip to main content
15,895,799 members
Home / Discussions / C#
   

C#

 
QuestionHow can I get the name of current theme from OS? Pin
rafamarmar25-Jan-04 5:22
rafamarmar25-Jan-04 5:22 
AnswerRe: How can I get the name of current theme from OS? Pin
Hauptman(n)25-Jan-04 6:11
Hauptman(n)25-Jan-04 6:11 
AnswerRe: How can I get the name of current theme from OS? Pin
Nick Parker25-Jan-04 6:23
protectorNick Parker25-Jan-04 6:23 
AnswerRe: How can I get the name of current theme from OS? Pin
Heath Stewart26-Jan-04 2:41
protectorHeath Stewart26-Jan-04 2:41 
GeneralCompiling .aspx.cs and .cs files in visual studio .net Pin
Member 52585824-Jan-04 22:14
Member 52585824-Jan-04 22:14 
GeneralRe: Compiling .aspx.cs and .cs files in visual studio .net Pin
OmegaSupreme25-Jan-04 3:30
OmegaSupreme25-Jan-04 3:30 
GeneralRe: Compiling .aspx.cs and .cs files in visual studio .net Pin
Member 52585825-Jan-04 19:19
Member 52585825-Jan-04 19:19 
GeneralRe: Compiling .aspx.cs and .cs files in visual studio .net Pin
Heath Stewart26-Jan-04 2:32
protectorHeath Stewart26-Jan-04 2:32 
The <%@ Page%> should inherit from the class defined in the .aspx.cs file, as well as contain the name of the assembly in which that class is contained. If the class in that file inherits from another class defined in another .cs file, that latter class should derive from System.Web.UI.Page.

If you right-click on the files, select Properties, and examine the "Build Action" property, these should say "Compile". This is the default build action for .cs files. If the project compiles all the files set for compilation and there are no build problems, then all your Types are being resolved correctly. The only problem would be that the Inherits attribute of the <%@ Page%> declaration probably isn't referencing the right Type, and / or the CodeBehind attribute does not specify the path to the correct .aspx.cs file.

Finally, make sure that the Liberal error_tags class is declared as public, protected (recommended), internal, or protected internal. If it is declared as private no class - including subclasses - can access it without using reflection (which is expensive and not a very good design).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
General.net XML deserialisation and properties Pin
dalm24-Jan-04 13:10
dalm24-Jan-04 13:10 
GeneralRe: .net XML deserialisation and properties Pin
Heath Stewart26-Jan-04 2:25
protectorHeath Stewart26-Jan-04 2:25 
GeneralProblem with Calendar control Pin
Alex Korchemniy24-Jan-04 10:18
Alex Korchemniy24-Jan-04 10:18 
GeneralRichTextBox question.. Pin
Fredrik7924-Jan-04 9:08
Fredrik7924-Jan-04 9:08 
GeneralRe: RichTextBox question.. Pin
Mazdak24-Jan-04 10:10
Mazdak24-Jan-04 10:10 
GeneralRe: RichTextBox question.. Pin
Nick Parker25-Jan-04 5:45
protectorNick Parker25-Jan-04 5:45 
GeneralRe: RichTextBox question.. Pin
Fredrik7925-Jan-04 5:58
Fredrik7925-Jan-04 5:58 
GeneralRe: RichTextBox question.. Pin
Nick Parker25-Jan-04 7:41
protectorNick Parker25-Jan-04 7:41 
Generalchecking dynamically which control is clicked Pin
Inam24-Jan-04 6:41
Inam24-Jan-04 6:41 
GeneralRe: checking dynamically which control is clicked Pin
Alex Korchemniy24-Jan-04 6:56
Alex Korchemniy24-Jan-04 6:56 
GeneralRe: checking dynamically which control is clicked Pin
Dmitriy Kostovetskiy24-Jan-04 13:32
Dmitriy Kostovetskiy24-Jan-04 13:32 
GeneralIgnore Keyboard And mouse input Pin
SherKar24-Jan-04 2:31
SherKar24-Jan-04 2:31 
GeneralRe: Ignore Keyboard And mouse input Pin
Mazdak24-Jan-04 3:09
Mazdak24-Jan-04 3:09 
GeneralTrouble extracting objects from HashTable Pin
Peter Mills24-Jan-04 1:51
Peter Mills24-Jan-04 1:51 
GeneralRe: Trouble extracting objects from HashTable Pin
Colin Angus Mackay24-Jan-04 4:11
Colin Angus Mackay24-Jan-04 4:11 
GeneralRe: Trouble extracting objects from HashTable Pin
Peter Mills24-Jan-04 4:48
Peter Mills24-Jan-04 4:48 
GeneralAdding scaner funtionality to C# application Pin
Chathura23-Jan-04 12:34
Chathura23-Jan-04 12:34 

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.