That is because your code and strings are not properly closed (the double quotes) in your code and the format and syntax of the code is broken there. Change your code to be like this one,
Response.Write(@"<script>
alert('" + gk_szEnter_Value_Error_Message + "');
</script>");
Now the code would execute, and would stream down the script. The gk_szEnter_Value_Error_Message will now be considered as a variable in your code and will be given the value it has at that moment.
A good way of writing strings is to use the
String.Format()
[
^] function, to create the strings in an efficient way, for avoiding the concatenation; which causes a lot of trouble like it did for you in this scenario.
Response.Write(String.Format("<script>alert('{0}');</script>"),
gk_szEnter_Value_Error_Message);
This would now be an efficient way of avoiding the concatenation problems.
A personal tip, do not specify the language of your script. Browsers know it is
JavaScript; unless you're using some other scripting language. I never do write it, and Browser doesn't complain at all. :)