Forums

 
ForumForumMainstream Foru...Mainstream Foru...BugsBugsConverting Web Application Projects to Web Site ProjectsConverting Web Application Projects to Web Site Projects
Previous Previous
 
Next Next
New Post
 2/20/2008 9:46 PM
 
The .cs files are not hooked up like a "normal" project would be,

I havnt tried fixing it up but it should just be a matter of converting all the page tags from

<%@ Page language="c#" MasterPageFile="~/DefaultView.Master" Codebehind="Login.aspx.cs" AutoEventWireup="false" Inherits="SplendidCRM.Users.Login" %>

to

<%@ Page language="c#" MasterPageFile="~/DefaultView.Master" CodeFile="~/App_Code/Users/Login.aspx.cs" AutoEventWireup="false" Inherits="SplendidCRM.Users.Login" %>


Also some of the controls dont have ID's which VS dosnt like (it just displays a grey box)

On top of that many controls are dynamically added so you cant see much any way

Jason Taylor

"This one's tricky. You have to use imaginary numbers, like eleventeen..." - Calvin
New Post
 2/20/2008 10:45 PM
 

As I mentioned before, you don't need to do the project conversion because we have already done it and published it.  The changes you mention above may work for you, but they are completely unnecessary.  We are able to convert our Web Application Project to a Web Site Project using a simple batch file that effectively copies all files, but places all CS files in the App_Code folder.  There is a special Web.config for our Web Site Project, but other than that, we do not need to make any changes to the contents of any other file.

We edit the ASP pages by hand to ensure that they are clean and readable, so we are unconcerned with the errors displayed by the Visual Studio Design editor.

We don't have names for all controls because we don't have the time to give each control a meaningful name when they will never be referenced by name.

 

New Post
 2/21/2008 8:48 PM
 
Np, I was just stating why the designer dosnt work... the app works perfectly itself

"This one's tricky. You have to use imaginary numbers, like eleventeen..." - Calvin
New Post
 3/11/2008 7:06 AM
 

Here's a good way to occupy children for hours just say something like...

"Did you know that it's unlucky not to individually name every stone you see on the beach?"
"Did you know when you see ants in a line like that it's unlucky if you don't give them all names..." etc etc

(Thought triggered by notion of naming controls)

Previous Previous
 
Next Next
ForumForumMainstream Foru...Mainstream Foru...BugsBugsConverting Web Application Projects to Web Site ProjectsConverting Web Application Projects to Web Site Projects