Button always renders as submit

M

Marcin

Hi,

Can anybody tell me why asp Button control always renders as <input
type="submit" ...>??? Or, what is more important for me, how to force it to
render as <input type="button" ...>? Any solution?

thanx
Marcin
 
M

Marcin

Thanx, but I have to do it from the code, not in the aspx file. So I need
something like that:
Button b= new Button();
b.RenderType = "button";

greets
M.
 
A

Anthony Williams

System.Web.UI.HtmlControls.HtmlButton b = new
System.Web.UI.HtmlControls.HtmlButton();

Regards,
Anthony
 

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,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top