Posted on: 7/26/2013 5:52:12 PM | Views : 214

Hello everyone !
I have trouble with get file name from fileupload, I need help !
protected void Button1_Click(object sender, EventArgs e) { MembershipUser myObject = Membership.GetUser(); string UserID = myObject.ProviderUserKey.ToString(); String strConnString = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString; SqlConnection con = new SqlConnection(strConnString); SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "Films"; cmd.Parameters.Add("@Titles", SqlDbType.NVarChar).Value = txttitle.Text.Trim(); cmd.Parameters.Add("@Urls", SqlDbType.VarChar).Value = txturl.Text.Trim(); cmd.Parameters.Add("@Contents", SqlDbType.NText).Value = txtcontent.Text.Trim(); if (fuload.HasFile) { try ...

Go to the complete details ...