C# 图像未加载到图像控件

C# 图像未加载到图像控件,c#,asp.net,C#,Asp.net,我在特定单元格的gridview中插入动态图像控件,我可以在运行时看到图像控件,但图像没有加载 Image img = new Image(); img.ImageUrl= "http://openclipart.org/people/ricardomaia/glossy_red_button.svg"; e.Row.Cells[i].Controls.Add(img); @A真不走运,我也试着在桌面上保存图像,但它不是老顶。代码看起来不错,请发布从浏览器获得的HTML。也许您必须为imgpl

我在特定单元格的gridview中插入动态图像控件,我可以在运行时看到图像控件,但图像没有加载

Image img = new Image();
img.ImageUrl= "http://openclipart.org/people/ricardomaia/glossy_red_button.svg";
e.Row.Cells[i].Controls.Add(img);

@A真不走运,我也试着在桌面上保存图像,但它不是老顶。代码看起来不错,请发布从浏览器获得的HTML。也许您必须为imgplz设置一个ID添加整个代码,您在哪里将数据绑定到gridview?