views:

45

answers:

2

I noticed that the

asp:Button 

for example will work without javascript enabled in the browser. However any other control with an "OnClick" or "OnServerClick" event must use the javascript_doPostback.

Are there any controls besides the Button that don't need to use javascript?

I want to know because I want to be able to style the Control however I want without it looking like a button, and I want it to still work without the user having javascript enabled.

Any suggestions?

+5  A: 

I think the answer is none. The button submits the form (as buttons will do) but no other controls auto-submit a form without a client side event handler.

Note that this also applies to the Link button.

Kendrick
Thanks that clears it up--just in case anyone has anyother ideas, I will describe: I want the control to appear simply as a text with a hover style.
Troy
+3  A: 

_doPostback is the heart of ASP.NET. If you don't want to require the use of Javascript then ASP.NET isn't the language for you.

diadem