我希望编写简单的Web应用程序以使用asp.net respone来连接任何数据并显示该行是一个简单的图像,我使用此代码动态创建图像:
for(int i=0;i<[latLongArr count];i++)
{
GMSMarker *tempmarker = [[GMSMarker alloc] init];
tempmarker.position = CLLocationCoordinate2DMake([[[latLongArr objectAtIndex:i] valueForKey:@"Latitude"] floatValue],[[[latLongArr objectAtIndex:i] valueForKey:@"Longitude"] floatValue]);
tempmarker.title=[[latLongArr objectAtIndex:i] valueForKey:@"Name"];
tempmarker.appearAnimation = kGMSMarkerAnimationPop;
tempmarker.map = mapView;
}
并用这段代码写简单的回复:
Image myImage = new Image();
myImage.Width = 50;
myImage.Height = 50;
myImage.ImageUrl = "direction_arrow_green_down.png";
this.Controls.Add(myImage);
但我想写这个:
Response.Write("<br/>"+ "SAMPLE");
答案 0 :(得分:-1)
为什么你不能这样试试?
string img = "<img src='https://cdn3.iconfinder.com/data/icons/simple-web-navigation/165/tick-128.png' width='128' height='128'>";
Response.Write("<br/>" + "SAMPLE" + img); ;