我想用hyperlink作前台广告控件,在后台直接从数据库中读取链接地址,但hyperlink的宽度和高度控制不了呀,怎么办
this.hlheadadvertise.Text =sdr.GetString (5);
this.hlheadadvertise .NavigateUrl =sdr.GetString (4);
this.hlheadadvertise .ImageUrl ="/chinanet/photo/"+sdr.GetString (3);
//this.hlheadadvertise .Width ="500px";
//this.hlheadadvertise .Height="70px";
this.hlheadadvertise.Text =sdr.GetString (5);
this.hlheadadvertise .NavigateUrl =sdr.GetString (4);
this.hlheadadvertise .ImageUrl ="/chinanet/photo/"+sdr.GetString (3);
//this.hlheadadvertise .Width ="500px";
//this.hlheadadvertise .Height="70px";
image控件如何绑定到数据呢?数据库中有image控件的图片文件名的
将文件完整路径 绑定到 image 的 imageurl属性上
如:
style="width:300px; height:300px;"