Segregating To 3 Tiers From Existing Project / Maintain Various Other Web.config Key Values

Apr 4, 2011

In my asp.net project currently i have business logic and and data access code in two sub folders(BLL,DAL) which are itself located web site project's app_code folder. I need to segregate them to two separate projects(one project for business layer and one project for Data access code).

How can I maintain connection strings necessary to Data access project which are currently in web.config file?(i.e if I choose Class library template for creating DAL and BLL projects) How can I maintain various other web.config key values that are currently used in BLL, DAL code files?How can I deploy compiled project? (ie Web site project I am currently deploying bin folder to Staging> production but this way where should i put DAL.dll and BLL.dll and relevant config files)

View 5 Replies


Similar Messages:

Trying Create Unit Testing For An Existing Website Project (not Web Application Project)?

Mar 11, 2010

I'm trying create unit testing for an existing website project (not web application project). I cannot access my under test classes unless I use accessor. However, if I use accessor, I have problem to initiate an object with passing arguments. I only want to create unit tetsing for App_Code. After searching web, and I found that I'd better to create a web application project using my current existing website project. From solution explorer, add new project ->using existing website. My questions is: what impact will have for my current website to create the new project? Should I just convert my current website to web application? If do that, will it cuase problems on my website? I am new on asp.net, still learning..

View 1 Replies

.net - How To Maintain Web.config Files

Feb 2, 2011

I'm interested to know how others maintain their web.config files for deployed applications. (assuming no automated deployment mechanism - that is out of the scope of this question)So during development, some developers might make use of web.config transformations, build/publish their projects (debug/release, test/live configurations), then deploy all published artifacts to a web server and set up IIS. Some developers might build/publish their projects, deploy published artifacts to a web server, set up IIS, then manually update the web.configs for the specific environment (test/live, etc) they are deploying into

View 2 Replies

Configuration :: How To Merge A Distribution Web.config File And An Existing Web.config File

Mar 30, 2010

I'm preparing to deploy a ASP.NET web application. The target server has already a previous version of my web application with parameters specified on the web.config file.

In the new version of this web application, the web.config file contains new sections I would like they appear into the target web.config file on the server.

However I can't find the way to merge the new web.config sections into the existing web.config file ?

Does I have to do it programmatically, or is there a tool to merge the both files during installation ? (I'm using Web Setup Project).

View 2 Replies

C# - Move To Mvc From Existing Project?

Feb 3, 2011

I have used .net framework 4.0 to design my web project I want to improve some features on my web site and I decided to use MVC in my project.

I research about mvc I found out System.Web.Routing in .net framework 3.5 is wrapped by System.Web in .net framework 4.0.

In the other side in my host environment I have IIS 7.0 with all necessarily handlers mapped to .aspx and some other extension like .cshtml and support them.

So I think I have all thing for mvc migration. my question is :

Is it possible to move mvc by configure web.config and make some structure for content, view and controller classes but don't change any asp.net pages and configuration like appcode and appdata which I had before in my asp.net application.

Note, I don't want to change or update my old application to mvc I want to add some mvc controllers class and view to my existing asp.net project to use mvc functionality.

View 1 Replies

Web Forms :: After Added Already Existing Project The Solution Icon Vanished By Showing The Icon Of Recently Added Project?

Feb 1, 2010

I have the following list of projects WebUI (WebSite) , DataAccess (ClassLibrary) , LogicLayer(ClassLibrary). Those of the project are purposively crated separately.But my scenario is, need to create only one solution file, then add all of the above projects under this solution file. So that i can be easiy interacted and changes can be made by opening solution file only instead of opening each project individually.

Simply all of the layer projects are under one roof means one solution. I tried it by adding solution first, then i added already existed project into this. But once after added already existing project the solution icon vanished by showing the icon of recently added project. By this way I could not add another project into this section too.Hope this is the way the basic real-time projects are created; to achieve the centralized control over architecture based projects.

View 4 Replies

Convert An Existing Project Into MVC Pattern?

Jan 4, 2010

I created a ASP.NET project which calls a DAL class I wrote, to retrieve data to display on the page, most of the heavy lifting is in the DAL class. As you can see, it pretty straightforward, although I do have some minor validation code in my aspx page. how can I convert this project into a MVC pattern?

View 2 Replies

Security :: Is There A Way To Set Up 2 Tiers Of Roles

Mar 22, 2010

In our system now, we have a class of user and beneath each class, there's a type of user.

Is there a way to setup and use the ASP.Net role provider with this kind of setup?

View 2 Replies

Configuration :: Redirect Non Existing Urls Using Web.config

Sep 15, 2010

We are using BlogEngine.net for our company blog and we'd like to start using feedburner. Since we already have an considerable amount of subscribers to our feed, we want to maintain the same url. The url of our feed would be: ~/blog/syndication.axd. What I'd like to do, is to maintain the URL, but redirect requests to this url to the feedburner URL. So, I started to use the urlMappings section in the web.config for that:

<urlMappings>
<add url="~/blog/syndication.axd" mappedUrl="[URL]" />
<urlMappings>

But for one reason or the other, this does not seem to work and I am redirected to the root of my web site.

View 2 Replies

Web Forms :: Can Change The Language Of Existing Project

Jul 8, 2010

can we change the language of an existing project or of any windows form or any web form such as from visual basic to c sharp

View 7 Replies

Web Forms :: How To Add Themes/UserControls Via A Second Web Project / DLL To An Existing One

Jan 28, 2011

I was trying to add a Theme and some UserControls to a existing ASP.NET Web Project (nopCommerce) via a Second Web Project (which is added as an virtual Directory). But this did not work in my Configuration and I did not know if this is even possible.

The Reason why I want to seperate my Code from the nopCommerce project is for easyer upgrading to a new Version, and to handle adaptations for different shops efficient.

View 1 Replies

Security :: Adding Existing Membership To A Project?

Mar 6, 2010

I have DB (my.mdf ) with already created membership (aspnet_db tables). There are defined roles and users.

I would like to integrate it in my project.

I dropped *.mdf into App_Data folder. When I open app.net configuration (under menu Project) I can't see neither User nor Roles.

What step am I missing?

View 2 Replies

Adding C# User Control To Existing Vb.net Project?

Mar 11, 2010

I've got an existing asp.net project written in vb.net. Another person has written a user control in c#.

the steps for adding that C# user control to the vb.net app?

I've tried copying them to the folder and using "Add existing item", however it doesn't compile the code behind at all.

View 3 Replies

C# - What Is The Best Place To Store Constants In N-tiers App

Dec 31, 2010

I wonder what is the best place to store the enums I should use like constants in my n-tiers Application.

So I have an application with a DAL(connect to database), a BLL(Business processes), a Data Transfert object "Layer" (classes without any methods but just fields, this one is reacheable by all the others) and the interface layer with the asp pages.

My question is : I have a enum:

[code]....

Where can I put this enum(and all the others) to be clean? Not in the Data Access Layer the Interface layer will not see the struct, not in the Business Logic Layer, this is not really business.. Maybe in the Data Transfert Object but is it really a "Transfert object"?

View 7 Replies

Visual Studio :: To Add An Existing Folder (and Contents) To A Project?

Jan 21, 2011

I know you can add an existing item(s), but is there a way to add an Existing folder (and contents) to a project? It sucks without this option. I need to add a folder that has many folders and a lot of content.

View 1 Replies

MVC :: Changing View Engine In Existing Project To Razor?

Nov 15, 2010

how do I change the view engine from aspx to razor in an existing project? If I just change the file extension to cshtml I always get "The controller for path '/path/About' was not found or does ..."

View 2 Replies

Web Forms :: Modify Existing Class And Reimport Into Project

May 20, 2010

I'm working on an existing web project. All of the classes are in a seperate folder as vb files. I need to modify one to include a delete method. I think I can insert the delete method, my question is how do I update the project to include the modified class. I think that all of the classes are compiled into the project as a .dll which I don't know how to modify. I assume I need to modify the source vb file for the class and recompile?

View 5 Replies

AJAX :: Addition Of Update Panel In Existing Project?

Aug 11, 2010

I would lke to know how we can use update panel in the existing Project in VS 2005

which is built before 3 years(VS 2005 but without ajax-enabled website template) and this project has had never used script manager.

Now I want to add script manager in this project .

But it shows me error 'Element Scriptmanager is not a known element'.

Is it possible to use the update panel now if yes what changes should I do in web.config to use it.

View 2 Replies

MVC :: Maintain Values In Dictionary On Postback?

Dec 29, 2010

If my model has a property of type Dictionary<int, int>, and I populate the dictionary in my GET controller action, how do I maintain the values so they are still there when I am doing a post to another action like this:

[Code]....

View 2 Replies

C# - How To Load An Existing Connection String For Linq To SQL From An App.config File

May 25, 2010

I'm running into a really annoying problem with my Linq to SQL project. When I add everything in under the web project everything goes as expected and I can tell it to use my existing connection string stored in the web.config file and the Linq code pulls directly from the ConfigurationManager.

This all turns ugly once I move the code into its own project. I've created an app.config file, put the connection string in there as it was in the web.config but when I try to add another table in the IDE keeps forcing me to either hardcode the connection string or creates a Settings file and puts it in there, which then adds a new entry into the app.config file with a new name.

Is there a way keep my Linq code in its own project yet still refer back to my config file without the IDE continuously hardcoding the connection string or creating the Settings file? I'm converting part of my DAL over to use Linq to SQL so I'd like to use the existing connection string that our old code is using as well as keep the value in a common location, and one spot, instead of in a number of spots.

Manually changing the mode to WebSettings instead of AppSettings works untill I try to add a new table, then it goes back to hardcoding the value or recreating the Settings file. I also tried to switch the project type to be a web project and then rename my app.config to web.config and then everything works as I'd like it to. I'm just not sure if there are any downfalls to keeping this as a web project since it really isn't one. The project only contains the Linq to SQL code and an implementation of my repository classes.

My project layout looks like this

[code]....

Every time I try to make the default constructor look like the first way, it always auto changes back to the second way once I make a change to the file unless the DBML is inside of a web project.

View 2 Replies

Visual Studio - Way To Create Project From Existing IIS Website, Building Stuff

Sep 27, 2010

I'm left maintaining a proprietary codebase from a third-party vendor. The vendor is still sort of around, but support is limp. The site is ASP.NET.I have made some changes but I am having a really hard time getting IIS to compile these changes in. The bin/ directory has what I believe is a precompiled dll for the core classes. I've changed these but it doesn't recompile. I have tried deleting the dll but then the app refuses to build saying that the Global.asax can't inherit the type anymore, so I don't really know how to rebuild with changes.

View 3 Replies

Web Forms :: Maintain Ddl Values When Page Changes From Default To History?

Jun 8, 2010

i have a master page that has a an accordion and inside the accordion is a cscading dropdownlist and then a button... Basically you select the values from the dropdowns and the click the button to change the content form from default.aspx to history.aspx. This works fine the first time I do it with the exception that cascadiing ddl all reset and then if i populate again and clcik the button again I get the following error(below)... I know I can set enableEventValidation = false, but wondered why this is occuring and what effect setting it to false would have? The second part of the question would be how do I maintain the ddl values when the page changes from default to History.sapx? I am using the following for the button.

<asp:Button ID="btnNewRecord" runat="server" Text="New" PostBackUrl ="~/History.aspx" />
Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true"
%> in a page.

For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

View 3 Replies

AJAX :: Cascading Dropdownlist Maintain Selected Values?

Jun 10, 2010

I'm wanting to maintain the dropdownlist values that were selected when i use postbackurl with a button. They cascading dropdowns are on a masterpage in an accordion pane. I select the 3 vales in the ddl and then presss a button which redirects to the new content page.

I've been able to get the values using previousPage.master.fincontrol... but am then setting the selectedValue in the page_init of the conent page, but they aren't set when the page loads... does anyone know where to put the code to set the values?

View 2 Replies

Lost Visual Studio Project File On An Existing Databas Driven Website?

Mar 28, 2011

I have been asked to take over and modify an existing dynamic web site made with vb and asp 3.5 on a shared hosting enviroment. The original programmer left and I have no access to the original documentation of the site, if any. Nevertheless, I have complete access to the web server and database server.

How can I import the existing wen site into Visual Studio and recreate the development enviroment.

I'm new to asp.net, but U have prior experience with VB and asp web development.

View 3 Replies

C# - Check For Existing Values In Datatable?

Dec 17, 2010

if (dt.Rows[i]["Code"] == code)
{
Label lblLang = (Label)(((e.Item as GridItem).FindControl("lblLang") as Label));
lblLang.Visible = true;
}
else
{
}
}

I am adding a new language Fr-FR in the code above. fr-FR already exists in my DB's Language Table. I do not want to add duplicate values in my table. There should be only one fr-FR.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved