I am trying to create a new user that includes a file upload. I want to write the file name to the database in a table called MemberInfo. Can someone please help me with this OR lead me in the right direction? Thanks Everyone!
Here is my button code:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
'Upload document to folder
Dim strFile As String = FileUpload1.FileName.ToString()
FileUpload1.SaveAs(Server.MapPath("~\Documents\" & FileUpload1.FileName.ToString()))
' Get document name to save to database
Dim docid As String = strFile
If password.Text = confirmpassword.Text Then
Try
Membership.CreateUser(username.Text, password.Text, email.Text, question.Text, answer.Text, True, System.Web.Security.MembershipCreateStatus.Success)
Dim us ...
Go to the complete details ...