first fix datetime format of your textbox.
Then use this
System.Globalization.DateTimeFormatInfo dateInfo = new System.Globalization.DateTimeFormatInfo();
dateInfo.ShortDatePattern = "dd/MM/yyyy";
cm.Parameters.Add("@fromdate", SqlDbType.DateTime).Value = Convert.ToDateTime(txtfromdate.Text, dateInfo);