I'm a new vb.net user and am creating a page on a Windows 2003 Server. When I try to view the page with a browser I get the following error:
Parser Error Message: The file '/Sandbox/fileinput.aspx. vb' does not exist.
Here is the code for the page:
Can anyone offer any help on this?
Thank you,
Doug
Parser Error Message: The file '/Sandbox/fileinput.aspx. vb' does not exist.
Here is the code for the page:
Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="fileinput.aspx.vb" Inherits="_fileinput" %> <!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 runat="server"> <title>Untitled Page</title> <style type="text/css"> .style1 { text-align: center; } </style> </head> <body> <p class="style1"> </p> <p class="style1">Please upload your file below. </p> <p class="style1"><input name="File1" type="file" /></p> <form method="post"> <div class="style1"> <input id="Submit1" name="Submit1" type="submit" value="Upload File" OnServerClick="Upload Click" runat="server"/></div> </form> </p> <div class="style1"> <script> 'Save uploaded file to server at C:\ServerFolder\ Try MyFile.PostedFile.SaveAs("C:\ServerFolder\" + c) Span1.InnerHtml = "Your File Uploaded Successfully: " & _ "C:\ServerFolder\" & c Catch Exp as exception Span1.InnerHtml = "An Error occured. Please check the attached file" UploadDetails.visible = false Span2.visible=false End Try </script> <asp:RegularExpressionValidator id="FileUpLoadValidator" runat="server" ErrorMessage="Upload .CSV files only." ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.csv|.CSV|)$" ControlToValidate="Submit1"> </asp:RegularExpressionValidator> </div> <p class="style1"> </p> </body> </html>
Thank you,
Doug
Comment