我想在 FileUpload asp.net 控件中回发后保存文件路径,例如:
function GetPathToDownloadPictures() {
var pathToDownLoadPicture = document.getElementById('<%= UploadPicturesNews.ClientID %>').value;
document.getElementById('<%= PathToPicturesHidden.ClientID %>').value = pathToDownLoadPicture;
}
window.document.onload = AddPathToUploadControl();
function AddPathToUploadControl() {
var pathToDownLoadPicture = document.getElementById('<%= PathToPicturesHidden.ClientID %>').value;
document.getElementById('<%= UploadPicturesNews.ClientID %>').value = pathToDownLoadPicture;
}
将 FileUpload 的路径添加到 HiddenField 并在回发后将 HiddenField 的路径添加到 FileUpload,但不起作用....帮帮我