|
I need to use some classes inside the app_code folder of a website project in visual studio 2008. I need to access this code from a class library project in the same solution. I cannot add a reference to the website, and I'm not sure of the easiest way...
Answer Snippets (Read the full thread at stackoverflow):
However, it is vastly preferable to put the code.
Existing Item, navigate to the code files, click the down arrow near the Add button, Add As Link portions of the file to specific projects.
|
|
Is there a website like Stackoverflow that specializes in code review? I always have code that needs to be reviewed. Is there a specialized website for that?
Started by janoChen on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I recently....
Better to ask here, about specific things, and learn that way (also, just hanging around here and viewing/answering questions will definitely help) .
There's this: http://refactormycode.com/
But I think you'll find it tough to get good advice .
|
|
How to realize adding a new page in the asp.net mvc website without coding.
Started by iiduce on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Voila: you have added a page to your Asp.Net MVC website.
Copy that html file to an Asp.Net MVC website.
|
Ask your Facebook Friends
|
I need to programatically create an IIS website. Can anybody show me the code to do this?
Started by Bob Jones on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The best place) As Integer Dim w3svc As DirectoryEntry w3svc = New DirectoryEntry("IIS://localhost/w3svc") 'Create a website\\wwwroot") Console.WriteLine("....
This shows how to create an IIS 6 website using VB.NET code.
Like this.
|
|
Can I run ASP.NET 2.0 and 3.5 code on the same website? ...or, do I need to separate them by applications, and/or servers?
Started by Jason on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I would just convert all of the code.
You can run code in .NET 2.0 and .NET 3.5 on the same server, but you must have to be careful about is not mixing 1.1 and 2.0 in the same app pool.
Application under 3.5.
|
|
Is there any way that I could get the source of a website (as a string preferably), let's say www.google.com, from some c# code inside code behind of asp.net website?
edit: of course i mean html code - in every browser you can view it using "view source...
Started by agnieszka on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It contains the html code of the viewed site..
|
|
I have recently finished creating my website, I have therefore come to the stage where I have to deploy it to a live server however when copying across, all of the App_Code, App_Data and Bin folder items become unaccessible. All of the classes are fine...
Started by think1712 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
How do I check the dll Website tool ('Website' menu, `Copy Website...' menu item)? I'd hope the tool can help you get all you've put in your....
code I presumed it was always accessible from anywhere within the website.
|
|
Using VS2008, I am trying to add an App_Code folder from add-->folder-->Add ASP_NET folder.
The App_Code folder option is there as expected BUT ... it's disabled!?
I am pretty sure I am working with a WebSite project (and not a Web Application) ...
Started by JohnIdol on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Visual studio could revise the folder as App_Code....
Then, rename it as App_Code.
You add a new folder to project.
Do this in Windows Explorer even" from the VS File menu .
A new folder in the Solution Explorer and rename/call it App_Code.
|
|
Is there any way how to protect your javascript code?
Feel free to comment...
Started by David Bonnici on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Edit: This post shows a few other things you can do to protect your code code to execute it on the client....
A javascript obfuscator for making it more difficult to understand and alter your code, but that's only a very light protection.
|
|
Is there a method to get all of the .aspx files in my website? Maybe iterate through the site's file structure and add to an array?
Started by Anders on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Directory.GetFiles(HttpContext.Current.Server.MapPath(@"/"), "*.aspx", SearchOption.AllDirectories....
And you can make it recursive to grab any sub directories and their files .
Using Directory.GetFiles("*.aspx"), you can get all the files in the directory .
|