Is there a way to check if cookies are enabled on a browser? If not, throw an error message back to the user. Right now, it's redirecting me to Kentico's "System error" page, which I don't want.
You could populate your localized message into a js var and then use this var in the message. The message can be stored in ui culture string.
var msg = {$ ResourceStringKey $}
Adam @4Hilton
You can use javascript.
navigator.cookieEnabled
If I use JavaScript to show the message, how would I populate the message in the language the user select? Ajax call?
exactly what Adam said
Or you can use hidden input field, register client side script, ajax call, query string parameter, fire off a postback. Choice is yours.
Thank you! Adam's way works perfectly.
Am I able to use what Adam said but in an external JavaScript file? Seems like this will only work for "In-Line JavaScript" in the Web part.
Please, sign in to be able to submit a new answer.