i am trying to alert string variable value using java script from code bhind my code is,
ClientScript.RegisterStartupScript(typeof(Page), "ScriptDescription", "<script type=\"text/javascript\"> alert('Error: Consultant '" + ConsZeroProj + "' projects do not exsist. Please select consultant having projects.');</script>");
ConsZeroProj is string variable having value if i remove this variable it display alert and when i append it . It do not show any alert what is the reason ?
hopes for your suggestion thanks
ConsZeroProjhas some value in it?ConsZeroProjcontain'character? Probably you can also find an error in your browser javaScript console.