<
function
var
oDLG.DialogTitle=
oDLG.Filter=
oDLG.MaxFileSize=
oDLG.Flags=
oDLG.ShowOpen();
{
FileName=oDLG.FileName;
document.form1.txtFileName.value=oDLG.FileName;
}
oDLG=
</
Protected
fileExtension = System.IO.Path.GetExtension(txtFileName.Text).ToLower()txtFName.Text = System.IO.Path.GetFileName(txtFileName.Text)
For i As Integer = 0 To allowedExtensions.Length - 1 If fileExtension = allowedExtensions(i) Then fileOK = True End IfNext
If
FileUpload1.PostedFile.SaveAs(txtFName.Text)END IF
End SubIs there any problem with the code or is there any workaround ?Thanks & Regards,Sreenivas Kaushik