.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 13th, 2010, 04:24 PM
dougancil dougancil is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2010
Posts: 7 dougancil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 7 sec
Reputation Power: 0
Parser Error Message: The file '/Sandbox/fileinput.aspx.vb' does not exist.

I am new to .net development and am using VB to create this page. When I try to view the page in a browser I get the following error:

Parser Error Message: The file '/Sandbox/fileinput.aspx.vb' does not exist.

The page is located on a Windows 2003 Server. 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" "(xxxxxxxx)">

<html xmlns="(xxxxxxx)">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.style1 {
text-align: center;
}
</style>
</head>
<body>

<p class="style1">&nbsp;</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">&nbsp;</p>

</body>

</html>

I'm not sure what I need to do to fix the parser error. Can anyone assist me?

Thank you

Doug

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Parser Error Message: The file '/Sandbox/fileinput.aspx.vb' does not exist.


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap