弹窗上传图片

  <asp:Image ID="smallImg" runat="server" Style=" 80px; height: 80px;" ImageUrl="~/Admin/images/upload.jpg" />
                                            <br />
                                            <asp:TextBox ID="txtUrlImage" runat="server" Width="25%"></asp:TextBox>
                                            <uc2:UploadImage ID="UploadImage1" runat="server" OriTextBoxControlID="txtUrlImage"
                                                SmallControlID="smallImg" />
                                               

                                                 function goShowDetail() {
            ShowPopWindow('添加相片', 420, 320, 'AddProductImage.aspx?PID=' + goodsid);
        }
       
         <input id="Button1" type="button" class="btn" value="添加照片" onclick="goShowDetail();" />
        
        
        
        
         function ShowPopWindow(title,w,h,url) {
    if (typeof (WfloatBox) == 'undefined') {
        initbox();
    }
    getElement('FmPop').src = '../public/Loading.html';
    var randomID = Math.random(); 
    url += (url.indexOf('?') > -1 ? '&' : '?') + 'RandomID='+randomID;
       
    WfloatBox.style.width = w;
    WfloatBox.style.height = h;
    getElement('spTitle').innerHTML = title;
    getElement('TBPopContent').style.height = h - 30;
    GetCenterXY_ForLayer(WfloatBox);
   
    getElement('FmPop').height = h - 70;
    getElement('FmPop').src = url;
    showBox();
    return false;
}

原文地址:https://www.cnblogs.com/jimmychow/p/2320958.html