473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Button always renders as submit

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
Nov 19 '05 #1
4 3051
<input type="button" runat="server" ...>

Eliyahu

"Marcin" <bi*******@poczta.onet.pl> wrote in message
news:cu**********@news.onet.pl...
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

Nov 19 '05 #2
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" <re*************@monarchmed.com> napisał w
wiadomo¶ci news:O%****************@TK2MSFTNGP09.phx.gbl...
<input type="button" runat="server" ...>

Eliyahu

"Marcin" <bi*******@poczta.onet.pl> wrote in message
news:cu**********@news.onet.pl...
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


Nov 19 '05 #3
Hello Marcin,

Have you tried HtmlButton?

--
Matt Berther
http://www.mattberther.com
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" <re*************@monarchmed.com> napisał w
wiadomo¶ci news:O%****************@TK2MSFTNGP09.phx.gbl...
<input type="button" runat="server" ...>

Eliyahu

"Marcin" <bi*******@poczta.onet.pl> wrote in message
news:cu**********@news.onet.pl...
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


Nov 19 '05 #4
System.Web.UI.HtmlControls.HtmlButton b = new
System.Web.UI.HtmlControls.HtmlButton();

Regards,
Anthony
"Marcin" <bi*******@poczta.onet.pl> wrote in message
news:cu**********@news.onet.pl...
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" <re*************@monarchmed.com> napisał w
wiadomo¶ci news:O%****************@TK2MSFTNGP09.phx.gbl...
<input type="button" runat="server" ...>

Eliyahu

"Marcin" <bi*******@poczta.onet.pl> wrote in message
news:cu**********@news.onet.pl...
> 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
>
>



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Paul Turley | last post by:
Does anyone have some sample script to "press" a button or image button when the user presses the Enter key? I see this behavior on a lot of web pages but I'm not finding any samples. Thx --...
5
by: Girish | last post by:
I have TWO submit buttons of type IMAGE on my asp form. This renders as <input type="image">. I need to be able to eble the ENTER button for both buttons. Yes, I know that for the input type...
1
by: tshad | last post by:
I want to be able to change the color of the text of a button after it is pressed. The first part of the event is: sub submitQuestion_click(Sender as Object, e as EventArgs)...
3
by: JV | last post by:
This is for anyone who has tackled the accessibility issue on their web site (and if you haven't, I bet you will in future). Apparently the asp:button control always renders as '<input...
0
by: vdex42 | last post by:
Apologies if this has been asked before, but I haven't been able to find the answer to this yet: My problem is that .NET will not allow me to insert escaped '>' characters (i.e. &gt;) within the...
9
by: Neo Geshel | last post by:
I have strip-mined, strip-searched, and completely exhausted the Internet (up to the 30th page on Google, with 100 results per page!!), all without finding an answer to my question AS TO WHY IT...
0
by: David | last post by:
Hello all. I am trying to implement my first server control and have run into two problems that I cannot solve. I need the assistance of someone with more experience. My goal was to create an...
3
by: David Lozzi | last post by:
Howdy, I'm using asp.net 2.0 and am trying to get one text box on the page, after the user presses enter, to "click" a specific button. I copied the javascript I used for a .net 1.1 web app I...
3
by: Steve Swift | last post by:
I have a page containing: <FORM NAME=radios> <INPUT TYPE=RADIO NAME=RAD VALUE=1 ID=RAD1> <LABEL FOR=RAD1>Check One</LABEL> <A onClick="document.radios.RAD.checked=false; return false">Uncheck...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.