dear all,
i am using vb.net.
i am facing problem to pass the value between the user control.
below is my coding for 1 user control:
user control FileUploadSystem1 as below:
Public Sub UploadFile()
Dim validFileTypes As String() = {"bmp", "gif", "png", "jpg", "jpeg", "txt"}
Dim ext As String = System.IO.Path.GetExtension(FileUpload1.PostedFile.FileName)
Dim isValidFile As Boolean = False
If FileUpload1.HasFile Then
Try
For i As Integer = 0 To validFileTypes.Length - 1
If ext = "." & validFileTypes(i) Then
isValidFile = True
Exit For
End If
Next
If Not isValidFile Then
AddError("Invalid file extension.") ...
Go to the complete details ...