Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > ASP.NET > ASP.NET HTML Controls > ASP.NET HTML Control



Clound SSD Virtual Server

ASP.NET HTML Control

ASP.NET HTML Control ปกติแล้ว Element ในภาษา HTML จะถูกทำงานหรือประมวลผลฝั่ง Client เสมอ แต่ใน .NET Framework ได้มีการปฏิรูป HTML Element ขึ้นมาใหม่ เพื่อให้สามารถนำมาใช้กับ ASP.NET ได้ง่ายมีประสิทธิ์ภาพ โดยการเพิ่ม Property ชื่อ runat="server" เพียงเท่านี้ .NET ก็สามารถทำการเรียกใช้งาน ควบคุมหรือครอบงำ (55+) เปลี่ยนชื่อเรียกจาก HTML Element เป็น HTML Control ในทันที และหลังจากที่ได้นำการ runat="server" แล้ว Property ต่าง ๆ ที่อยู่ใน Element จะถูกเรียกใช้งานและควบคุมได้จากฝั่ง Web Server

ASP.NET HTML Control

Syntax

<input type="text" id="[Name]" value="" class="" runat="server"/>



สังเกตุว่าใน HTML Element ชนิด input text มี Property ชื่อ value และ class เมื่อได้ทำการกำหนด runat="server" ใน .NET จะสามารถทำการเรียกใช้งาน Property นี้ได้ตามตัวอย่าง

Me.text-name.value
Me.text-name.class


HTML Element เป็นพื้นฐานในการพัฒนาโปรแกรมบนเว็บไซต์ทุกภาษา และจำเป็นที่ทุกคนนักโปรแกรมเมอร์ทั้งหลายที่ควรรู้ว่า Control ต่างๆ มีหน้าที่ และ ความสามารถการทำงานอย่างไรบ้าง ผมอยากแนะนำให้ลองอ่านบทความอื่น ๆ เพื่อเป็นทางเลือกในการพัฒนาโปรแกรมให้ออกมาดูดีที่สุดครับ

ลองอ่านบทความจากหลาย ๆ หัวข้อครับ สิ่งที่เราไม่เคยรู้ อาจจะอยู่แค่เราไม่ได้เปิดอ่าน



ASP.NET WebMatrix - Control & Element

ASP.NET & Visual Studio .Net 2003 - Control & Element

ASP.NET & Visual Studio 2005,2008 - Control & Element

ASP.NET & Visual Studio 2010 - Control & Element






   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2008-11-02 12:14:56 / 2010-07-10 13:25:22
  Download : No files
 Sponsored Links / Related

 
ASP.NET HTMLAnChor
Rating :

 
ASP.NET HTMLButton
Rating :

 
ASP.NET HTMLForm
Rating :

 
ASP.NET HTMLGeneric
Rating :

 
ASP.NET HTMLImage
Rating :

 
ASP.NET HTMLInputButton
Rating :

 
ASP.NET HTMLInputCheckBox
Rating :

 
ASP.NET HTMLInputFile
Rating :

 
ASP.NET HTMLInputHidden
Rating :

 
ASP.NET HTMLInputImage
Rating :

 
ASP.NET HTMLInputRadioButton
Rating :

 
ASP.NET HTMLInputText
Rating :

 
ASP.NET HTMLSelect
Rating :

 
ASP.NET HTMLTable
Rating :

 
ASP.NET HTMLTableCell
Rating :

 
ASP.NET HTMLTableRow
Rating :

 
ASP.NET HTMLTextArea
Rating :

 
ASP.NET HTMLSubmit
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 02
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่