Torna al Thread

javascript: function Loadimage(sender, argument) { var strimage = argument; var _strimage; _strimage = strimage.replace(/["]/g, ''); _strimage = 'url(' + strimage.replace(/["']?\)$/, '') + ')'; var divimage = $get("<%= imgprofile100.ClientID %>"); divimage.style.backgroundImage = _strimage; } codice aspx: <telerik:RadWindow ID="RadWindowLoadprofile" runat="server" ShowContentDuringLoad="false" Width="452px" Height="430px" Title="Caricamento immagine profilo" Behaviors="None" Modal="True" Behavior="None" Font-Names="Verdana" Font-Size="Small" IconUrl="/image/iconlogo.png" Skin="Simple" ReloadOnShow="True" VisibleStatusbar="False" RestrictionZoneID="NavigateUrlZone" NavigateUrl="UploadImgProfile.aspx" OnClientClose="Loadimage"> </telerik:RadWindow>
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5