Hi,
I have a rather pesky problem when trying to add a confirm popup message to the onclick event of a button.
The problem occurs when trying to break the message onto a new line so the test wraps within the pop up window. If the \n is taken out of the string the code works fine.
string confirmationMessage = "text text text text text text text text text text text text text text text text text text \n text text text text ";
submitButton.Attributes.Add("onclick", "return confirm('" + confirmationMessage + "');");
Any help is apprciated thank you.
Not sure whether to post a separate question for this. I have a new problem but there seems to be a limit to to amount of text i can include. If the string is too long the confirmation message fails to display.