Set Button : autopostback to be false

Y

Yammy

The standard button is set its autopostback property to be true, am I right
?
How can I change it to be false ?
I tried this...
<td><asp:Button id="cmd1" .... autopostback="false"/></td>
But it failed. Why?

Thx
 
B

Brock Allen

That's what you get when you use a server-side control - when it's clicked
it will post back to the server. If you don't want a postback then simply
use a <input type=button>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top