title: Request[string] Input string was not in a correct format
body: <p>I have this code in Razor:</p>
  
  <pre><code>int num1 = int.Parse(Request["ddl" + item.MovieID]);
  </code></pre>
  
  <p>and I get the error: <code>Input string was not in a correct format.</code></p>
  
  <p>How can I fix this problem?</p>
  
  <p>I also tried:</p>
  
  <pre><code>string s = "ddl" + item.MovieID;
  int num1 = int.Parse(Request[s]);
  </code></pre>
  
  <p>But still I get the same error. This works:  </p>
  
  <pre><code>int num1 = int.Parse(Request["ddl1"]);
  </code></pre>