设置后路径中没有将图像绑定到imagctrl中 [英] issue not binding image in to imagctrl after setting is path

查看:100
本文介绍了设置后路径中没有将图像绑定到imagctrl中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 txtNotes.Text = SelectedRow.Cells [( int )GridColumns.Notes] .Text; 
txtRemarks.Text = SelectedRow.Cells [( int )GridColumns.Remarks] .Text;
chkIsResign.Checked = Convert.ToBoolean(SelectedRow.Cells [( int )GridColumns.IsResign] .Text)? true false ;
txtResignDate.Text = SelectedRow.Cells [( int )GridColumns.ResignDdate] .Text;

imgLoader.ImageUrl =文件名+ GridView1.DataKeys [rowIndex位置] .Values [<跨度类= 代码串> <跨度类= 代码串 > EmpImage]。ToString();

employeepopupextender.Show();

解决方案
我的问题解决了,我只是把HTML图像Ctrl键并设置其image.src



imgDisplay.src =文件名+ GridView1.DataKeys [rowIndex位置] .Values [ EmpImage]的ToString();

txtNotes.Text=SelectedRow.Cells[(int)GridColumns.Notes].Text;
txtRemarks.Text=SelectedRow.Cells[(int)GridColumns.Remarks].Text;
chkIsResign.Checked = Convert.ToBoolean(SelectedRow.Cells[(int)GridColumns.IsResign].Text) ? true : false;
txtResignDate.Text = SelectedRow.Cells[(int)GridColumns.ResignDdate].Text;

imgLoader.ImageUrl = filename + GridView1.DataKeys[RowIndex].Values["EmpImage"].ToString();

employeepopupextender.Show();

解决方案

my problem solved i just put html image ctrl and set its image.src

imgDisplay.src = filename + GridView1.DataKeys[RowIndex].Values["EmpImage"].ToString();


这篇关于设置后路径中没有将图像绑定到imagctrl中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆