bryceray1121
05-10-2009, 04:24 PM
I'm trying to pick up a little knowledge on using c#/asp to create web applications. I've not been able to find very many resources online. But i did find one online tutorial. The problem is, that the tutorial does not seem to compile as is.
http://webproject.scottgu.com/CSharp/
However, i'm having some difficulty with it. First off its for Visual Studio 2005 and i'm running 2008 so that may be the issue.
My question: where does the Add method come from in the third image(class called publishers). It is referencing Add and i'm not sure i'm just supposed to create my own add method in the author class or if it is supposed to be a function built in to visual studio.
Another problem i'm having with the tutorial:
Whenever i add the prebuild event command, in the user control section of the tutorial, it creates an error.
Is this a valid command for Visual Studio 2008 (tutorial is for 2005)?
copy $(SolutionDir)MyUserControlLibrary\*.asc... $(ProjectDir)UserControls\
I removed a slash from after(solutiondir) and (projectdir) b/c the solution and project directories already have slashes at the end so it was double slashing it.
This is the error i'm receiving:
Error 3 The command "copy (Removed - File Stucture)\WebApplication1\MyUserControlLibrary\*.ascx (Removed - File Stucture)\WebApplication1\WebApplication1\UserControls\" exited with code 1. WebApplication1
Thanks for your help,
Bryce
http://webproject.scottgu.com/CSharp/
However, i'm having some difficulty with it. First off its for Visual Studio 2005 and i'm running 2008 so that may be the issue.
My question: where does the Add method come from in the third image(class called publishers). It is referencing Add and i'm not sure i'm just supposed to create my own add method in the author class or if it is supposed to be a function built in to visual studio.
Another problem i'm having with the tutorial:
Whenever i add the prebuild event command, in the user control section of the tutorial, it creates an error.
Is this a valid command for Visual Studio 2008 (tutorial is for 2005)?
copy $(SolutionDir)MyUserControlLibrary\*.asc... $(ProjectDir)UserControls\
I removed a slash from after(solutiondir) and (projectdir) b/c the solution and project directories already have slashes at the end so it was double slashing it.
This is the error i'm receiving:
Error 3 The command "copy (Removed - File Stucture)\WebApplication1\MyUserControlLibrary\*.ascx (Removed - File Stucture)\WebApplication1\WebApplication1\UserControls\" exited with code 1. WebApplication1
Thanks for your help,
Bryce