Last post Nov 04, 2009 08:14 AM by GavMan
Nov 03, 2009 04:48 PM|GavMan|LINK
I've made a real mess of my project and need some help!
I created a webform called addDept.aspx with a couple of formview controls and a couple sqldatasources.
Everything was fine until I decieded i wants to change the name of the form to something esle. I changed the name of the form in the directory via explorer and when i tried to recompile it gave me errors about not being able to find the original files. So
i tried to change it back and then i tried to delete it and start again with completely new web forms but now it gives errors. I can't restore the files as they are gone. Stupidly forgot to back it up!
Error in VWD 2008 Express is:
Error 3 Source file 'C:\Documents and Settings\gavinl\My Documents\Visual Studio 2008\Projects\OcucoDirectory\OcucoDirectory\addDept.aspx.cs' could not be opened ('Unspecified error ') OcucoDirectory
output from browser below:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addDetails.aspx.cs" Inherits="OcucoDirectory.addDetails" %>Line 2: Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Nov 03, 2009 10:37 PM|vinz|LINK
Since you inherit from OcucoDirectory.addDetails then be sure that you have this in your code behind:
public partial class addDetails: System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
Nov 04, 2009 05:36 AM|GavMan|LINK
Yeah, thats in there man.
I've no idea what to do to fix...I really dont want to start again...
Nov 04, 2009 08:14 AM|GavMan|LINK
Fixed it there myself.
Just recreated all the files for the sake of it