Hi friends,
i havea small app which is upload files store the file on the webserver renema them with GUID and store the guid in my database.
Now i would like to store the filename in my Database before it will renamed.
Can ynabody help me please?
here is my codebehind file:
Partial Class details
Inherits System.Web.UI.Page
Private Function GetConnectionString() As String
Return (System.Configuration.ConfigurationManager.ConnectionStrings("freelancerberConnectionString").ConnectionString)
End Function
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
Dim sqlConnection1 As New Data.SqlClient.SqlConnection(GetConnectionString())
Dim strname As String
Dim cmd As New Data.SqlClient.SqlCommand
Dim fileName As String = Guid.NewGuid().ToString()
Dim extenti ...
Go to the complete details ...