473,809 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question on HTML and Web(Server Side) Controls

I know more html is needed to really produce this but enough is here
for me to ask my question. So, this HTML code produce 2 buttons. One
button is a HTML control and the other is ASP Web or Server Control.
Why are there 2 ways to create buttons if they so the same thing? Do
they do the same thing? In what senario would I use a HTML button
rather than a Web control button. Does it matter? If not why 2
different controls that do the same thing.

<HTML>

<form id="Form1" method="post" runat="server">

<INPUT style="Z-INDEX: 101; LEFT: 104px; POSITION: absolute; TOP:
40px" type="button" value="Button1" id="Button2" name="Button2"
runat="server">

<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 104px; POSITION:
absolute; TOP: 88px" runat="server" Text="Button2"> </asp:Button>
</form>

</HTML>
Thanks
Ralph Krausse

www.consiliumsoft.com
Use the START button? Then you need CSFastRunII...
A new kind of application launcher integrated in the taskbar!
ScreenShot - http://www.consiliumsoft.com/ScreenShot.jpg
Jul 21 '05 #1
1 1388
1. <input type="button" value="Submit">
2. <input type="button" value="Submit" runat="server">

Item 1 is a Html Control (similar to the one used in ASP and traditional
HTML programming). Item 2 is a Html Server Control which has the additional
runat="server" in the syntax. The difference between the two is that Item 2
remembers the state information and is accessible programmaticall y in the
code-behind files. The state information is not relevant in this case of a
button but will be useful if it were an dropdown list or textbox.

Another kind of control available in .NET is the Web Server Control which
also has the runat="server" in its syntax. The difference between a web
server control and an html control is that web server controls are more smart
where they can render html based on the type of browsers and they also
support event bubbling (if you have controls nested in the container control,
say, an button in the datagrid, then events occurring in the button can
bubble up to the datagrid)

Hope this helps
Niranjan.
"Ralph Krausse" wrote:
I know more html is needed to really produce this but enough is here
for me to ask my question. So, this HTML code produce 2 buttons. One
button is a HTML control and the other is ASP Web or Server Control.
Why are there 2 ways to create buttons if they so the same thing? Do
they do the same thing? In what senario would I use a HTML button
rather than a Web control button. Does it matter? If not why 2
different controls that do the same thing.

<HTML>

<form id="Form1" method="post" runat="server">

<INPUT style="Z-INDEX: 101; LEFT: 104px; POSITION: absolute; TOP:
40px" type="button" value="Button1" id="Button2" name="Button2"
runat="server">

<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 104px; POSITION:
absolute; TOP: 88px" runat="server" Text="Button2"> </asp:Button>
</form>

</HTML>
Thanks
Ralph Krausse

www.consiliumsoft.com
Use the START button? Then you need CSFastRunII...
A new kind of application launcher integrated in the taskbar!
ScreenShot - http://www.consiliumsoft.com/ScreenShot.jpg

Jul 21 '05 #2

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

Similar topics

1
9624
by: Hari | last post by:
What is the difference between HTML controls, HTML server controls , ASP.Net controls? Which will give more performance?
1
2535
by: Matthew Louden | last post by:
Personally, I am totally confused with the following control terms and usage and advantages of each one in ASP.NET web application. Here's what I know so far.. 1. HTML Client Control: understood by the client only. e.g. <input type="text" name="emp_name"> 2. HTML Server Control: understood by the server only. e.g. <input type="text" name="emp_name" runat="server"> 3. Web Server Control: understood by the server only. e.g. <asp:TextBox
1
1029
by: eNathan | last post by:
I want to be able to disable\enable controls on the client via client-side scripting. I'm trying to avoid a postback. I'd like to use HTML and server-side controls on the same page. In code-behind of "submit button" how do I get the value of the HTML Controls? How do you provide a "rich" experience without roundtrips? Can you? What is the prefered way to architect these pages? Any pointers to whitepapers/docs would be apprecieated?
2
1027
by: Mihir | last post by:
Is CLR a process or a thread? if process then name it... if thread, name its parent process? 2. Is Garbage Colelctor a process or a thread? if process then name it... if thread, name its parent process? 3. If HTML Button has this property runat = "server", then what is the difference left b/w this button and Server Control button?
2
1029
by: Ralph Krausse | last post by:
I know more html is needed to really produce this but enough is here for me to ask my question. So, this HTML code produce 2 buttons. One button is a HTML control and the other is ASP Web or Server Control. Why are there 2 ways to create buttons if they so the same thing? Do they do the same thing? In what senario would I use a HTML button rather than a Web control button. Does it matter? If not why 2 different controls that do the same...
5
6536
by: siaj | last post by:
Hello All, Can any one give me a clue when to use Web Server controls/ HTML server controls/HTML Controls. As I understand .. HTML controls should be used if u dont need to refer it in the code behind a(simply bcaz it is not recognized in the code behind IDE) and it does not make a server trip. HTML server Controls should be preferred over Web Server controls as they are light weight than ASP.NET web Server controls.(If they have same...
2
1207
by: dee | last post by:
Hi, I was wondering if server side html controls were used prior to dotnet? Thanks Dee
5
3600
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
3
3013
by: balurajeev | last post by:
Hii, currently i am working on an apliction(ASP.NET/C#) that creates dynamic html rows which contain six html text boxes and a html dropdowllist. At the time of page load the web page contain six server side text boxes and a serverside drop down list. and a html "Addrow" buton which create client side textboxes and dropdown list dynamichally Now i am meeting a problem of passing values from dynamichally created html controls to Server Side...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10115
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9199
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.