问题1:在DataList控件的模板中加入Image服务器控件,并将其宽度绑定至数据库,数据库中对应字段为string类型,使用如下语句:
Width='<%# DataBinder.Eval(Container.DataItem,"voteNum13")%>'提示错误:指定的转换无效。 
行 32:<asp:Image id="Image1" runat="server" ImageUrl="../images/bar.gif" Width='<%# DataBinder.Eval(Container.DataItem,"voteNum13")%>'>
问题2:如果数据库中对应字段为数字(long)类型应该怎么写