I have XForm and a radiobutton list. The possible values of the radiobutton list are e-mail adresses. When the selected e-mail address is stored in the database the @ is replaced by an _ (underscore). Why? I could replace the underscore with the @ in the BeforeSubmitPostedData event, but the e-mail adress itself could contain underscores, with should not be replaced..
XmlDocument xml = FormControl.Data.Data as XmlDocument; XmlNodeList node = xml.GetElementsByTagName(MailToPropertyName); string mailTo = node[0].InnerText; // name_gmail.com, should have been name@gmail.com
EPiServer 4.62B
I have XForm and a radiobutton list. The possible values of the radiobutton list are e-mail adresses. When the selected e-mail address is stored in the database the @ is replaced by an _ (underscore). Why? I could replace the underscore with the @ in the BeforeSubmitPostedData event, but the e-mail adress itself could contain underscores, with should not be replaced..
XmlDocument xml = FormControl.Data.Data as XmlDocument;
XmlNodeList node = xml.GetElementsByTagName(MailToPropertyName);
string mailTo = node[0].InnerText; // name_gmail.com, should have been name@gmail.com