Click here to Skip to main content
15,884,628 members
Home / Discussions / C#
   

C#

 
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 
QuestionCustomizing config file Pin
Celemar8222-Jan-06 22:28
Celemar8222-Jan-06 22:28 
AnswerRe: Customizing config file Pin
tarasn23-Jan-06 0:07
tarasn23-Jan-06 0:07 
GeneralRe: Customizing config file Pin
Celemar8223-Jan-06 0:14
Celemar8223-Jan-06 0:14 
QuestionIf anyone needs this. Pin
M@dHatter22-Jan-06 20:47
M@dHatter22-Jan-06 20:47 
QuestionProgram in the tray does not allow to shutdown the computer Pin
curt_russel22-Jan-06 20:21
curt_russel22-Jan-06 20:21 
AnswerRe: Program in the tray does not allow to shutdown the computer Pin
Dave Kreskowiak23-Jan-06 6:04
mveDave Kreskowiak23-Jan-06 6:04 
GeneralRe: Program in the tray does not allow to shutdown the computer Pin
curt_russel23-Jan-06 20:18
curt_russel23-Jan-06 20:18 
GeneralRe: Program in the tray does not allow to shutdown the computer Pin
Dave Kreskowiak24-Jan-06 2:46
mveDave Kreskowiak24-Jan-06 2:46 
QuestionIs C# a pure object oriented language? Pin
vikas amin22-Jan-06 19:33
vikas amin22-Jan-06 19:33 
AnswerRe: Is C# a pure object oriented language? Pin
M@dHatter22-Jan-06 20:17
M@dHatter22-Jan-06 20:17 
AnswerRe: Is C# a pure object oriented language? Pin
Sebastian Schneider22-Jan-06 21:01
Sebastian Schneider22-Jan-06 21:01 
AnswerRe: Is C# a pure object oriented language? Pin
Guffa22-Jan-06 22:48
Guffa22-Jan-06 22: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.