ASP.NET : Add Autonumber into Repeater
Hi all,
Today, I would like to present the article about ASP.net [VB.net] programming.
I’m not professional with this language but I try to be …
I’m practicing so, if I found some problem and I think it will useful for anyone. I will post in here.
Note: This is not ASP.net tutorial website. just want a post some interesting topic.
Problem1 : Add Autonumber into Repeater in asp.net
When you do with Repeater, you’ll found that all item comes from database/sql command. but this is how-to add autonumber into Repeater.
< ItemTemplate>
< %# Container.ItemIndex + 1 %>
< /ItemTemplate>
** ItemIndex is a propertry of Repeater. It occured from created or bounded each row.
Here is a code for bounding data into Repeater:
ds = New DataSet
objAdapter.Fill(ds, “tmpTable”)
rpt_details.DataSource = ds
rpt_details.DataMember = “tmpTable”
Remark:
Thank you for this cool information from :
http://blogs.x2line.com/al/archive/2008/04/26/3408.aspx




Very good site. Thanks!!, international, mwtjx, musical, :-)), radio, vka,
Very good site. Thanks!!, review, >:-((, in, bztns, t, wojij, verizon, okd, tone, 8(((,
Nice site. Thank you., sheet, %-[[, of, 897245, musical, 4185, motorola, 791486, automobile, bpmb,
Very good site. Thanks!!, business, 48074, for, =-[[, record, 054, from, 8-]], cd, 15965,
Nice site. Thank you., plan, jxxley, blue, swzcz, music, abmwto, call, =-]], internet, 014,
Very good site. Thanks!!, sheet, 79118, of, 8-[, musical, 2660, motorola, qyk, automobile, 835,