Address field not inserting new line to sql

We have /n in text field and it displays as new line but when saved to db all /n gets removed using radzen form. How to fix this?

Address textbox(shows correctly) but when saved /n gone
Deccan Gym
Pune, India

actually it saves as
Deccan Gymkhana
Maharashtra 411004
but when in edit mode the radzen textboz shows as single line

database saving perfectly fine with System.Environment.NewLine,
even below does not work in edit-

_contact.Contact_Address2 = UserAddress.ToList().FirstOrDefault().Contact_Address2.Replace(System.Environment.NewLine, "\n");

Try using the TextArea component which has rows property instead of TextBox component

1 Like