Posted By

gatekiller on 09/02/09


Tagged

html c aspnet


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
khouser


Upload File


 / Published in: C#
 

  1. <%
  2.  
  3. if (Request.Files.Count > 0) {
  4. if (Request.Files[0].FileName.Length > 0) {
  5. Request.Files[i].SaveAs("c:\\" + Request.Files[0].FileName);
  6. }
  7. }
  8.  
  9. %>
  10.  
  11. <form action="" method="post" enctype="multipart/form-data">
  12. <label for="file">Audio Pronunciation (MP3 Format)</label>
  13. <input id="file" name="file" runat="server" type="file" />
  14. </form>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: MMDeveloper on September 2, 2009

where does the 'i' variable get a value? Shouldn't that have been a zero?

You need to login to post a comment.