Question : How to replace JavaScript function  code in ASPX ?

Hi experts!

Look my project – code in page ASPX. My question is – how can I replace JavaScript
 _gaq.push(['_setAccount', 'UA-2409764-2']);`
With for example
_gaq.push(['_setAccount', 'UA-NEW-2']);

I want this string ('UA-NEW-2') to be get from WEB.Config file. Question is that site is equal, but it is deploy in two different servers and I want this to be different, but not everytime to replace this code manual as I make new version. May be I need to make this function in external file, which to not replace and which will be different in these 2 servers ? But how ?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
<%@ Master Language="C#" AutoEventWireup="true" Codebehind="SiteMaster.master.cs"
    Inherits="areaweb.SiteMaster" %>
<%@ Register Src="_banners.ascx" TagName="_leftBanner" TagPrefix="uc6" %>
<%@ Register Src="_rightBanner.ascx" TagName="_rightBanner" TagPrefix="uc5" %>
<%@ Register Src="_menu.ascx" TagName="menu" TagPrefix="uc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>DVPlay</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <link media="screen" href="css/lightbox.css" type="text/css" rel="stylesheet">
    <script src="js/prototype.js" type="text/javascript"></script>
    <script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="js/lightbox.js" type="text/javascript"></script>
  <link href="css/screen.css" rel="stylesheet" type="text/css" media="all"/>

   
   <script type="text/javascript">

       var _gaq = _gaq || [];
       _gaq.push(['_setAccount', 'UA-2409764-2']);
       _gaq.push(['_trackPageview']);

       (function() {
           var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
           ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
           var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       })();

</script>
   
</head>

Answer : How to replace JavaScript function  code in ASPX ?

The only logical explanation is:
Switch with "cases" is similar to an GOTO label, so when you b declaration and initialization has never happend for this program, I think it's printing rubbish from the memory, because there is no other explanation.

Try compiling it with BCC32(an ANSI C compiler).
You should give us the compiler you are using.
Random Solutions  
 
programming4us programming4us