title: convert classic ASP to ASP.NET C#
body: <pre><code>&lt;%
         Dim xmlDoc; 
  Dim objNodeList;
  Dim count;
  
  set xmlDoc = Server.CreateObject("Msxml2.DOMDocument.6.0");
  
  xmlDoc.validateOnParse = False;
  xmlDoc.async = False;
  
  xmlDoc.loadXML("&lt;div&gt;" &amp; Request.Form("inTransContent")   &amp; "&lt;/div&gt;");
  
  Else
        Set objNodeList = xmlDoc.documentElement.selectNodes("//text()");
        count = objNodeList.length;
  
        For i = 1 To count 
             objNodeList(i-1).insertData 0, "XYZ " ;
             objNodeList(i-1).insertData objNodeList(i-1).length, " XYZ" ;
        Next 
  
        Response.Write(xmlDoc.documentElement.xml);
  End If
  
  %&gt;
  </code></pre>
  
  <p>Hi, I need to convert this code to <code>C#</code> and I'm not that familiar with vbscript!!</p>
  
  <p>Kindly can anyone convert this code!!</p>
  
  <p>Thanks </p>