title: Why url parameter doesn't have correct format in javascript?
body: <p>I have to create a javascript which contains an url in code behind page using C#. But the url parameter inside javascript doesn't have correct format after generated by C#.</p>
  
  <p>Example:</p>
  
  <p><strong>Url parameter:</strong> <a href="http://google.com" rel="nofollow">http://google.com</a></p>
  
  <p><strong>Javascript:</strong> javascript:dnnModal.show('<a href="http://google.com" rel="nofollow">http://google.com</a>',false,365,206,false)</p>
  
  <p><strong>C# code:</strong></p>
  
  <pre><code>string link = "http://google.com?popUp=true";
  string googleIcon = "&lt;a href='javascript:dnnModal.show('" + link +',false,365,206,false)'&gt;&lt;img border='0' src='~/Icons/gIcon.png'&gt;&lt;/a&gt;";
  </code></pre>
  
  <p>After generated from code behind the page view the url incorrect format. There is the code of googleIcon after I am using "View Select Source" to view the code of aspx page:</p>
  
  <pre><code>&lt;a href="javascript:dnnModal.show(" http:="" google.com?popup="true',false,365,206,false)'"&gt;&lt;img src="~/Icons/gIcon.png" border="0"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>The hyperlink on icon just show this when I move the mouse over it:</p>
  
  <pre><code>javascript:dnnModal.show(
  </code></pre>
  
  <p>The url is lost and the remind string is lost too.</p>
  
  <p>I need some help on my issue to show the way how to pass an url parameter into javascript using C#.</p>