Hi there, I'm trying to bundle the below javascript into a single string so that I can use it in a Page.RegisterStartupScript in my c# code behind. I'm stuck on how to get actualu url ("http:www.hotmail.com") included using the speech marks.
This is the script I want to concatenate
<script language="JavaScript">
window.location = "http://www.hotmail.com"
</script>
This is what I have so far:
string strScript = "<script language=JavaScript">;
strScript += "window.location =";
strScript +=" "http://www.hotmail.com" "; ???????? < this is the problem line
strScript += "</script>"
Many thanks