ASP.NET中个人信息注册的时候,上传图片头像,如何才能够在上传之后,就能够在注册页面显示出来,然后再将其图片路径存入数据库中
下面获取上传的图片的脚本代码
function GetPic()
{
var RetValue=OpenModalDialog("../TeacherManage/UploadUserPhoto.aspx",700,500);
var txtPhoto=document.getElementById("tabContainer1_TabPanel1_txtPhoto");
txtPhoto.value=RetValue;
document.getElementById("tabContainer1_TabPanel1_Image1").setAttribute("src","../UserImage/"+txtPhoto.value);
}