Click here to Skip to main content
15,910,471 members
Home / Discussions / C#
   

C#

 
QuestionVisual Inheritance, and Default Property Values Pin
big_trev23-Jan-06 2:05
big_trev23-Jan-06 2:05 
AnswerRe: Visual Inheritance, and Default Property Values Pin
tarasn23-Jan-06 3:57
tarasn23-Jan-06 3:57 
GeneralRe: Visual Inheritance, and Default Property Values Pin
big_trev23-Jan-06 7:54
big_trev23-Jan-06 7:54 
QuestionHow do I retrieve all my webPages + web services in .NET framework 2.0? Pin
Ronen Tidhar23-Jan-06 2:00
Ronen Tidhar23-Jan-06 2:00 
QuestionLCD Pin
sianatia23-Jan-06 1:41
sianatia23-Jan-06 1:41 
QuestionHow to call a function... Pin
Soundman32.223-Jan-06 1:17
Soundman32.223-Jan-06 1:17 
AnswerRe: How to call a function... Pin
AB777123-Jan-06 2:01
AB777123-Jan-06 2:01 
AnswerRe: How to call a function... Pin
Phil J Pearson23-Jan-06 2:20
Phil J Pearson23-Jan-06 2:20 
Questionsingle commands for DotMatrixPrinter Pin
softmusic23-Jan-06 0:58
softmusic23-Jan-06 0:58 
AnswerRe: single commands for DotMatrixPrinter Pin
Dave Kreskowiak23-Jan-06 6:11
mveDave Kreskowiak23-Jan-06 6:11 
GeneralRe: single commands for DotMatrixPrinter Pin
softmusic23-Jan-06 7:12
softmusic23-Jan-06 7:12 
GeneralRe: single commands for DotMatrixPrinter Pin
Dave Kreskowiak23-Jan-06 13:23
mveDave Kreskowiak23-Jan-06 13:23 
QuestionMIDI programing in c# Pin
softmusic23-Jan-06 0:52
softmusic23-Jan-06 0:52 
QuestionEditor Color Pin
peppepinna23-Jan-06 0:33
peppepinna23-Jan-06 0:33 
Questiononclick event not triggering ! Pin
nitya_arysys23-Jan-06 0:23
nitya_arysys23-Jan-06 0:23 
AnswerRe: onclick event not triggering ! Pin
Guffa23-Jan-06 1:14
Guffa23-Jan-06 1:14 
GeneralRe: onclick event not triggering ! Pin
nitya_arysys23-Jan-06 1:21
nitya_arysys23-Jan-06 1:21 
GeneralRe: onclick event not triggering ! Pin
Guffa24-Jan-06 1:21
Guffa24-Jan-06 1:21 
GeneralRe: onclick event not triggering ! Pin
nitya_arysys24-Jan-06 1:36
nitya_arysys24-Jan-06 1:36 
AnswerRe: onclick event not triggering ! Pin
Guffa24-Jan-06 9:35
Guffa24-Jan-06 9:35 
No, it's not a server control. It's just some text in a string. Just because the string contains "runat='server'" doesn't mean that anything happens. The string could just as well contain "kill all humans", but that wouldn't happen either.

To be a server control it has to be a real object, in this case an HtmlInputImage object.

There are generally two ways of creating server controls:

1. Put the tag in the aspx page so that it is parsed into the Page object.
2. Create the object in the code behind and add it to the page structure.

nitya_arysys wrote:
Also, I want to ask whether it is possible to call C# method from javascript.


Not directly. Consider these two rules:

1. The server side code and the client side code never exist in the same place.
2. The server side code and the client side code never exist at the same time.

If you want a Javascript to make anything happen on the server, you have to post the page back to the server and make the C# code detect what it is supposed to do.

---
b { font-weight: normal; }

GeneralRe: onclick event not triggering ! Pin
nitya_arysys25-Jan-06 2:33
nitya_arysys25-Jan-06 2:33 
Questionsort column in ultrawingrid Pin
Frank23123-Jan-06 0:02
Frank23123-Jan-06 0:02 
AnswerRe: sort column in ultrawingrid Pin
NassosReyzidis23-Jan-06 3:42
NassosReyzidis23-Jan-06 3:42 
QuestionPassing reference values to C++ functions Pin
madhusri22-Jan-06 23:27
madhusri22-Jan-06 23:27 
Questionis it possible?? Pin
imsathy22-Jan-06 23:25
imsathy22-Jan-06 23: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.