public void repeater1_ItemCreated(object sender, RepeaterItemEventArgs e)
{
DataRowView row = (DataRowView)e.Item.DataItem;
string url = "id="+row["zyid"].ToString();
string text = row["职业名称"].ToString();
string cat_num = row["数量"].ToString();
HyperLink link = new HyperLink();
link.NavigateUrl = "upPage.aspx?" + url;
link.Text = text;
e.Item.Controls.Add(link);
e.Item.Controls.Add(new LiteralControl("   "));//项之间加空格
}
from:http://czhjq.blog.163.com/blog/static/850149620082434354628/