Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

on-line

Haupt Quellenprogramme E-Bücher Downloads Mit uns in Verbindung treten Über uns

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


ASP.NET - Der Hacktisch-Gegenstand
Previous Next




Der Hacktischgegenstand enthält Einzelteile in Form von Schlüssel-/Wertpaaren.



Der SortedList Gegenstand

Der Hacktischgegenstand enthält Einzelteile in Form von Schlüssel-/Wertpaaren und die Schlüssel werden als Indizes verwendet, und sehr schnelle Suchen können für Werte gebildet werden, indem man durch ihre Schlüssel sucht.

Mit der Methode hinzufügen () werden Einzelteile dem Hacktisch hinzugefügt.

Der Code folgend stellt einen Hacktisch her, der mycountries genannt wird und vier Elemente werden addiert:

<script runat="server">
Sub Page_Load
if Not Page.IsPostBack then
dim mycountries=New Hashtable
mycountries.Add("N","Norway")
mycountries.Add("S","Sweden")
mycountries.Add("F","France")
mycountries.Add("I","Italy")
end if
end sub
</script>


Daten-Schwergängigkeit

Ein Hacktischgegenstand kann die Werte und den Text zu den folgenden Kontrollen automatisch erzeugen:

  • Asp: RadioButtonList
  • Asp: CheckBoxList
  • Asp: DropDownList
  • Asp: Listbox

Eine RadioButtonList Steuerung zuerst verursachen (ohne irgendein Asp: ListItem Elemente) in einer .aspx Seite, zum von Daten an eine RadioButtonList Steuerung zu binden:

<html>
<body>
<form runat="server">
<asp:RadioButtonList id="rb" runat="server"
AutoPostBack="True" />
</form>
</body>
</html>

Den folgenden Index dann addieren, der die Liste errichtet:

<script runat="server">
sub Page_Load
if Not Page.IsPostBack then
dim mycountries=New Hashtable
mycountries.Add("N","Norway")
mycountries.Add("S","Sweden")
mycountries.Add("F","France")
mycountries.Add("I","Italy")
rb.DataSource=mycountries
rb.DataValueField="Key"
rb.DataTextField="Value"
rb.DataBind()
end if
end sub
</script>
<html>
<body>
<form runat="server">
<asp:RadioButtonList id="rb" runat="server"
AutoPostBack="True" />
</form>
</body>
</html>

Dann in der RadioButtonList Steuerung, fügen wir eine durchgeführt zu werden hinzu Subroutine, wenn der Benutzer an ein Einzelteil klickt. Ein Text erscheint in einem Aufkleber, wenn eine Radiotaste angeklickt wird:

<script runat="server">
sub Page_Load
if Not Page.IsPostBack then
dim mycountries=New Hashtable
mycountries.Add("N","Norway")
mycountries.Add("S","Sweden")
mycountries.Add("F","France")
mycountries.Add("I","Italy")
rb.DataSource=mycountries
rb.DataValueField="Key"
rb.DataTextField="Value"
rb.DataBind()
end if
end sub
sub displayMessage(s as Object,e As EventArgs)
lbl1.text="Your favorite country is: " & rb.SelectedItem.Text
end sub
</script>
<html>
<body>
<form runat="server">
<asp:RadioButtonList id="rb" runat="server"
AutoPostBack="True" onSelectedIndexChanged="displayMessage" />
<p><asp:label id="lbl1" runat="server" /></p>
</form>
</body>
</html>

Anmerkung: Du kannst nicht den Artauftrag der Einzelteile wählen, die dem Hacktisch hinzugefügt werden. Den SortedList Gegenstand benutzen, um Einzelteile alphabetisch oder numerisch zu sortieren.





Previous Next

Schlüsselwörter: ASP.NET, die den Hacktisch verwenden, wenden, vb Nettohacktisch, Asp Nettohacktisch, vb Nettoc$verwenden, Asp Nettogegenstand, vb Nettogegenstand, grundlegender sichtlichgegenstand, grundlegendes sichtlichc$verwenden, Asp Nettoc$verwenden, c# Hacktisch, Java Hacktisch, jsp Hacktisch, c# mit, hashmap Hacktisch, Hacktisch API, Hacktischreihe, Arthacktisch, Hacktischansammlung, vb Hacktisch, Java Gegenstand ein, der serializable Hacktisch, arraylist Gegenstand, Hacktischbeispiel, c# Gegenstand, arraylist Hacktisch, Hacktischzeichenkette, Hacktischaufzählung, Hacktisch iterator, Wertgegenstand, statischer Hacktisch, Hacktischwert, Gegenstandzeichenkette, Hacktisch xml mit msdn


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.