We are trying to contribute to the net what ever Technical knowledge. I Believe that knowledge increases by spreading and sharing with others.
Friday, April 27, 2012
How to Get Filename from URL in VB.Net (Asp .Net)
Get Filename from URL
Public Function GetFileNameFromURL(ByVal URL As String) As String Try Return URL.Substring(URL.LastIndexOf("/") + 1) Catch ex As Exception Return URL End Try End Function
No comments:
Post a Comment