Hi Fellas
I'm having trouble with the new controls that force the page to do a postback with the upload control. With the old control i had to use some javascript to get the postback to work and now that's not doing it anymore. Here's my page layout
AjaxPanel with a Tabstrip and a multipage inside. Inside one of my pages is the upload control.
Here is the javascript i had to use with the old controls:
How do i solve this problem?
I'm having trouble with the new controls that force the page to do a postback with the upload control. With the old control i had to use some javascript to get the postback to work and now that's not doing it anymore. Here's my page layout
AjaxPanel with a Tabstrip and a multipage inside. Inside one of my pages is the upload control.
Here is the javascript i had to use with the old controls:
function ValidateRadUpload1(source, arguments) | |
{ | |
arguments.IsValid = getRadUpload('<%= RadUpload1.ClientID %>').validateExtensions(); | |
} | |
function realPostBack(eventTarget, eventArgument) | |
{ | |
$find("<%= RadAjaxPanel1.ClientID %>").__doPostback(eventTarget, eventArgument); | |
} | |
function CloseAndRebind(args) | |
{ | |
GetRadWindow().Close(); | |
GetRadWind().BrowserWindow.refreshGridP(args); | |
} | |
function GetRadWindow() | |
{ | |
var oWindow = null; | |
if(window.radWindow) | |
oWindow = window.radWindow; //Will work in Moz in all cases, includine classic dialog | |
else if(window.frameElement.radWindow) | |
oWindow = window.frameElement.radWindow; //IE (and Moz as well | |
return oWindow; | |
} | |
function CancelEdit() | |
{ | |
GetRadWindow().Close(); | |
} |
How do i solve this problem?