Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Button always renders as submit

Reply
Thread Tools

Button always renders as submit

 
 
Marcin
Guest
Posts: n/a
 
      02-07-2005
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


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      02-07-2005
<input type="button" runat="server" ...>

Eliyahu

"Marcin" <(E-Mail Removed)> wrote in message
news:cu8mmp$81c$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
Marcin
Guest
Posts: n/a
 
      02-08-2005
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.

Użytkownik "Eliyahu Goldin" <(E-Mail Removed)> napisał w
wiadomości news:O%(E-Mail Removed)...
> <input type="button" runat="server" ...>
>
> Eliyahu
>
> "Marcin" <(E-Mail Removed)> wrote in message
> news:cu8mmp$81c$(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Anthony Williams
Guest
Posts: n/a
 
      02-08-2005
System.Web.UI.HtmlControls.HtmlButton b = new
System.Web.UI.HtmlControls.HtmlButton();

Regards,
Anthony


"Marcin" <(E-Mail Removed)> wrote in message
news:cu9mro$lm2$(E-Mail Removed)...
> 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.
>
> Użytkownik "Eliyahu Goldin" <(E-Mail Removed)> napisał w
> wiadomości news:O%(E-Mail Removed)...
>> <input type="button" runat="server" ...>
>>
>> Eliyahu
>>
>> "Marcin" <(E-Mail Removed)> wrote in message
>> news:cu8mmp$81c$(E-Mail Removed)...
>> > 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
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp button always rendered as type="button" vs. type="submit" Sam ASP .Net Web Controls 1 11-25-2008 06:14 PM
LinkButton renders as button JJ ASP .Net Mobile 0 02-07-2006 01:45 PM
Button always renders as submit Marcin ASP .Net 4 02-08-2005 10:04 AM
Preventing Multiple submit (Disabling Submit Button Post Click) Solution Mark ASP .Net 1 12-13-2004 08:03 PM
Disable Submit Button on Post back and On Submit in ASP.net Ghafran Abbas ASP .Net 0 10-12-2004 06:11 PM



Advertisments