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 ...