Tutorials to .com


ASP.NET Development Articles


Can't Find What You're Looking For?

Tutorials to .com » Dotnet » Development » asp + in the hash table operation

asp + in the hash table operation

Print View , by: iSee ,Total views: 7 ,Word Count: 261 ,Date: Mon, 24 Aug 2009 Time: 4:08 AM

/ *
Tofu is fine
technical points such as tofu http://www.asp888.net reprint information, please retain the copyright
* /
Hash table is a group of Key and the Value data contains the table, we can use the following example to see how to operate the Hashtable
<html>
<head>

<script language="VB" runat="server">
Sub Page_Load (s As Object, e As EventArgs)
If Not IsPostBack Then
Dim myHash As New HashTable ()
myHash.Add ( "ASP +", "1")
myHash.Add ( "COM +", "2")
myHash.Add ( "ADO +", "3")
myHash.Add ( "C #", "4")
MyRepeater.DataSource = myHash
MyRepeater.DataBind
End If
End Sub
</ script>

</ head>
<body>

<h3> See This is a DataSet to bind on a thin sheet Kazakhstan operation code </ h2>

<form runat=server>

<asp:Repeater id="MyRepeater" runat="server">

<template name="itemtemplate">
<br>
<% # Container.DataItem.Key%>:


<% # Container.DataItem.Value%>
</ template>

</ asp: Repeater>

</ form>

</ body>
</ html>



Author: tofu ()


Google
 

Rating: Not yet rated

Comments

No comments posted.