Try our conversational search powered by Generative AI!

XForm: @ converted to _ (underscore) in radiobuttonlist selection

Vote:
 

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

#32147
Aug 24, 2009 15:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.