Hi,
i've into web page a radupload...now in my vb code:
when i click on button imgbtnesci, the upload is also, however you need to start only if I click on the button Imgbtnload...
how do it?
Bye
i've into web page a radupload...now in my vb code:
Protected
Sub
Imgbtnesci_Click(sender
As
Object
, e
As
System.Web.UI.ImageClickEventArgs)
Handles
Imgbtnesci.Click
Me
.ClientScript.RegisterStartupScript(
Me
.
GetType
,
""
,
"Close_and_load();"
,
True
)
End
Sub
Protected
Sub
CustomValidator1_ServerValidate(source
As
Object
, e
As
System.Web.UI.WebControls.ServerValidateEventArgs)
Handles
CustomValidator1.ServerValidate
e.IsValid = (RadUpload1.InvalidFiles.Count = 0)
End
Sub
Protected
_image
As
String
Private
Sub
Imgbtnupload_Click(sender
As
Object
, e
As
System.Web.UI.ImageClickEventArgs)
Handles
Imgbtnupload.Click
If
RadUpload1.UploadedFiles.Count > 0
Then
_image =
"/public/image_profile/"
& RadUpload1.UploadedFiles.Item(0).FileName
Label2.Text =
"/public/image_profile/"
& RadUpload1.UploadedFiles.Item(0).FileName
Else
Label2.Visible =
True
End
If
End
Sub
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function Close_and_load() {
GetRadWindow().close();
}
when i click on button imgbtnesci, the upload is also, however you need to start only if I click on the button Imgbtnload...
how do it?
Bye