473,626 Members | 3,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

diffrence between Asp:Textbox vs input text

1 New Member
Please Tell Me A Difference Between
Asp:Textbox vs input text
Sep 13 '19 #1
2 5399
AjayGohil
83 New Member
The difference between Asp:Textbox and input text
Asp:Textbox is ASP.Net Controls and input text is HTML Controls so the main differnce between HTML Controls and ASP.Net Controls.

HTML Controls
HTML control runs at client side.
You can run HTML controls at server side by adding attribute runat=”server”.
HTML controls are client side controls, so it does not provide STATE management.
HTML control does not require rendering.
As HTML controls runs on client side, execution is fast.
HTML controls do not have any separate class for its controls.
HTML controls does not support Object Oriented paradigm.
Expand|Select|Wrap|Line Numbers
  1. Example:
  2. <input type="text"  ID="txtName">

ASP.Net Controls
ASP.Net controls run at server side.
You can not run ASP.Net Controls on client side as these controls have this attribute runat=”server” by default.
ASP.Net Controls are Server side controls, provides STATE management.
ASP.Net controls require rendering.
As ASP.Net controls run on server side, execution is slow.
ASP.Net controls have separate class for its each control.
With ASP.Net controls, you have full support of Object oriented paradigm.
Expand|Select|Wrap|Line Numbers
  1. Example:
  2. <asp:TextBox Id="txtName" runat="server">
  3.  </asp:TextBox>
Sep 20 '19 #2
parth123
4 New Member
Forget about server side controls in ASP.NET MVC. Everything containing runat="server" is a big NO in ASP.NET MVC. Won't work in Razor anyways. There are no pros and cons. Server side controls should never be used so there's nothing to compare. Simply use HTML helpers such as Html.EditorFor and Html.TextBoxFor .
Sep 23 '19 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2784
by: Paul M | last post by:
Hi there, i hope someone can help me out here.. I have a input screen where i want the user to enter text in 2 different languages, english and macedonian. How is it possible to make the macedonian input boxes so when you type into them, it is entered into macedonian font? I dont want the users to be downloading anything also. thanks,
4
2725
by: multimatum2 | last post by:
Hello, I need to enable/disable input text forms... But... I need to have the same style (color...) in both modes.. Could you help me ? Thanx a lot A small sample... <HTML><HEAD><TITLE></TITLE></HEAD>
3
4212
by: Ali | last post by:
I have 3 html input tex in my asp.net form. Two of them are calling javascript client side to calculate the differnce of two dates and put the result into the third input text. i haven't include runat=server in those input texts. it works fine with me and i get the result in the third input text. Now when i want to insert the 3 html input text values into my database among other web controls ... i found out that i can't see them unlike web...
2
2521
by: magix | last post by:
Hi, I'm using Access Database with ASP. There is one particular thing that I have issue with. My purpose is for user to update their own profile. Their existing profile information will be display in Edit Form format. The problem is if the field has space, the second word will not display, when I display in input text format. E.g if My first name "User_FirstName" in my table has entry, let say "David
1
3123
by: sonicsoul | last post by:
Hi, i wanted to define default global styles that would be used by 90% of controls. I would like to differentiate input text controls from input button controls. is there a way to specify this in this sort of way: input text { font-family: verdana; } input button { font-family: arial; } also, if i do this, and than override specific controls with custom styles, would it be recommended practice?
1
3467
by: namanhvu | last post by:
Hi everyone, I'm trying to create a form where the radio button is automatically selected when the input text field beside it is clicked. I know I need to use "onClick" somewhere but I don't know how. With links I found it it would work like this: <SCRIPT LANGUAGE="JavaScript"> function click(which) {
3
3988
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table with a createElement function to add additional entries. The table has the first row of input text boxes already in it. You have to click a button to add another row. That seems to be working fine. How do I pull the information from the input boxes...
3
2861
by: kvnsmnsn | last post by:
I've written the following Javascript file that includes an input text field and an output text field, the latter of which is initialized to zero. Each time the user enters a number in the input field and hits the space bar, that number gets added to the value in the output field and then the input field gets set to the empty string. The user can enter as many numbers into the input field as s/he wants. The problem I have with this is...
2
2100
by: =?Utf-8?B?R3VoYW5hdGg=?= | last post by:
Hi, In a web page we have many single line input text boxes inside table,which has the max length of 250 characters and few drop downs where auto post back property is true. When we provide 250 characters in any of the input text box and select any value in drop down,the page loads again.Now the text box length is exceeding the page view in the browser(ie: table gets expanded with page gets horizontal scroll).
4
2252
by: backups2007 | last post by:
I want to be able to pass rows of queried data to rows of input text boxes. As the example below shows, I have come up with this incomplete solution. But this code only passes the data to the first row. I need to be able to pass it to all the rows. <input type="text" name="prod_id1"><input type="text" name="qty1"> <input type="text" name="prod_id2"><input type="text" name="qty2"> <input type="text" name="prod_id3"><input type="text"...
0
8192
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
8637
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...
1
8358
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
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
7188
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
6119
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
5571
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();...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.