Никакая перегрузка для метода 'createassociateemailbody' не принимает 2 аргумента
string strAssociateBody = this.createAssociateEmailBody(lblClientName.Text, lblPhoneNo.Text, strFinalAddress, dblAssociatePrice); this.createAssociateEmailBody("New Order from Associate Clients!", strAssociateBody);
я получаю ошибку на
this.createAssociateEmailBody("New Order from Associate Clients!", strAssociateBody);пока я прошел все переменные...
Что я уже пробовал:
private string createAssociateEmailBody(string strUserName, string strPhoneNo, string strAddress, double dblAssociatePrice) { StringBuilder strAdd = new StringBuilder(); strAdd.Append(lblFinalAddressUserName.Text + ","); strAdd.Append(lblFinalAddressFlatNo.Text + ","); strAdd.Append(lblFinalAddresLandmark.Text + ","); strAdd.Append(lblFinalCity.Text + ","); string strFinalAddress = strAdd.ToString(); string body = string.Empty; //using streamreader for reading my htmltemplate using (StreamReader reader = new StreamReader(Server.MapPath("~/Forms/Email.html"))) { body = reader.ReadToEnd(); } body = body.Replace("{UserName}", strUserName); //replacing the required things body = body.Replace("{PhoneNo}", strPhoneNo); body = body.Replace("{Address}", strAddress); return body; }