关于Label显示数据的问题! Label1.Text="<a href='aaa.aspx'>链接一</a>"+">>"+"<a href='aaa.aspx'>链接二</a>"... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <A class="title" href="index.aspx?id="><asp:label id=Label1 runat="server" Text='<%# DataBinder.Eval(DataSettype1, "Tables[type].DefaultView.[0].type") %>'></asp:label></A>我是这样写的,可是如何循环呢!我把链接里的id值改成什么才能变成Label所显示数据的ID值呢? <asp:HyperLinkColumn Text="主页"DataNavigateUrlField='<%# DataBinder.Eval(DataSettype1, "Tables[type].DefaultView.[0].type") %>'DataNavigateUrlFormatString="index.aspx?id={0}" > //cs文件中string strA = "";for(int i=0;i<dset.Tables[0].Count;i++){strA += "<a herf="+dset.Tables[0]["href"].ToString+">dset.Tables[0]["title"]</a>";}lab.Text = strA; 我用的是VB.NET呀!谁有完整的代码,给我看看! 这样自动获取值怎么获得??? 静态化页面还是缓存? httpcontext.current.items疑问 sql 存word格式数据 100分全抛,就一个问题! 在线等! VS.NET的简单问题 Unable to connect to the remote server. 请各位高手帮忙看看。 Datalist然后实现多页显示查询结果? 谁能提供一些使用水晶报表的资料? 提问:为什么我的DataGrid不能批量更新? 请问怎样指定按回车的时候指向的哪个按钮啊? 衷心希望大虾给我帮助和意见!!!
<asp:label id=Label1 runat="server" Text='<%# DataBinder.Eval(DataSettype1, "Tables[type].DefaultView.[0].type") %>'>
</asp:label></A>
我是这样写的,可是如何循环呢!
我把链接里的id值改成什么才能变成Label所显示数据的ID值呢?
DataNavigateUrlField='<%# DataBinder.Eval(DataSettype1, "Tables[type].DefaultView.[0].type") %>'
DataNavigateUrlFormatString="index.aspx?id={0}" >
string strA = "";
for(int i=0;i<dset.Tables[0].Count;i++)
{
strA += "<a herf="+dset.Tables[0]["href"].ToString+">dset.Tables[0]["title"]</a>";
}
lab.Text = strA;
谁有完整的代码,给我看看!