我想在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,但不能正常工作.... 帮帮我