Adding MVC Content To An Existing Application?

Jan 31, 2011

We have a web application written in ASP.NET for .NET 3.5, using standard web forms.

Going forward we want to start building new features, and over time migrate existing features, in ASP.NET MVC.

Is such a thing doable? Can we add the necessary files to an ASP.NET web application and thus "upgrade" it to be compatible enough with MVC so that we can start adding routes, controllers, views, etc.?

The old site is using a frameset containing a top header, a left menu, and a main content. What I envisioned was to create a new masterpage for all the existing pages, integrating all of those things into each page instead, and then start adding new pages using views instead.

I understand that unless we upgrade to .NET 4 we cannot use MVC 3, so the way I see it we have the following options:

Build a new website, somehow auto logon the new site with the same credentials when logging in on the main site, and link between the sites. I see tons of problems with this solution. Integrate ASP.NET MVC 2 into the existing software, adding the necessary files, and starting to add new content in MVC style, only fixing critical bugs in the old files, and over time migrate them over to MVC. Upgrade to .NET 4 and integrate ASP.NET MVC 3, pretty much the rest the same as option 2. Wait until we can schedule a full rewrite, likely to not happen in any foreseeable future. Don't do it, keep web forms.

Note that a full rewrite is out of scope at the moment, so some transitional period is the only option we can do right now.

Option 2 and 3 are the ones we want, the rest are just for completeness.

View 1 Replies


Similar Messages:

Adding WCF To Existing Application?

Nov 30, 2010

I want to add WCF to existing asp.net application and host both of them in the same virtual directory is it possible ?? Also when i click new item to add app.config file from visual studio its not showing.

View 3 Replies

Web Forms :: Adding Webpart Page To Existing Application

Feb 19, 2010

What are the steps to implement webparts into an existing application that already has been set up to use asp.net membership? I have yet to see how to get this to work. The only thing I am accomplishing is generating the following error:

The specified connectionStringName, 'LocalSqlServer', was not registered. (C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Configweb.config line 312) at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType) at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType).

So, what is the deal here? Is it because my site uses masterpages? I have profile, roleManager, membership and connectionstrings in my web.config. I tried adding a webpart section, like I found on one website, to no avail. I was still getting the 'LocalSqlServer' error bunk.

View 1 Replies

Web Forms :: StreamWriter / Adding To An Existing CSV

Jun 16, 2010

I am writing to a CSV that will contain different customer information. Right now when I write to it, it overwrites whatever is in the path right now. Instead of overwriting I would like the new writer.WriteLine to append to the current CSV without overwriting it.

Code

[Code]....

Also, can anyone help me with writing the file to a different location other than my local project file? I need the path to become a server location instead of the CSV folder stored locally.

View 6 Replies

Controls :: Add New Page With Content To Existing PDF Using ITextSharp And C#

Nov 22, 2015

I have a PDF template(abc.pdf) that defined 1 page with  fields to be annotated.  And I need to create a PDF using the template which will insert additional identical pages with the exact same as template if my input data requires more pages.  When I use the following code (partially) to insert new page the text fields to be annotated are not write on the new page

Rectangle rectangle = reader.GetPageSize(1);
for (int i = 1; i <= Convert.ToInt16(HfPgNumber); i++)
stamper.InsertPage(Convert.ToInt16(HfPgNumber), rectangle);
stamper.Close();
reader.Close();

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

Getting Ajax Error While Adding 3.5 Web App To Existing 2.0 Websites?

Jul 23, 2010

I have web site with Dotnet 2.0 framework With Ajax1.0. Now My requirement is to add Web Application built in 3.5 framework not used Ajax at all. But I am getting Ajax Error

[Code]....

View 1 Replies

Adding .aspx Page To Existing Website?

Sep 29, 2010

I have a running ASP.NET web site. There is following problem with one of the forms:

One part of submitted data is added to database after "submit" is clicked. (to "table1") Another part is lost (not added to "table2", and no files uploaded) I have no source code of that project. So, because I cant edit existing page, I came to a decision to add new .aspx page to a running application with same functions as existing one. How can I do that? Or maybe you can recommend some other solution.

View 8 Replies

Adding Ajax To Existing Running Wbsite?

Oct 14, 2010

our company holds a dynamic website which is being hosted and config in IIS .now i wanna know is it possible to Add Ajax Controls or Ajax Control Toolkit to my website or if i have to make any updations and i want to do it with the help of update panel is it possible i can do with my existing website let's say adding New Pages (no modifications on prev page's) i already went through video of joe stagner how to add ajax to an existing project

is there any more changes do i have to make either in my IIS or on my Windows Server 2008 R2 to make the New Pages? how to add ajax to an existing project,as it will be a great help for me i wanna perform this thing exactly live on my production server so chances of any error should not be there.

View 2 Replies

Adding A Blog To An Existing .NET Web Forms Web Site?

Mar 15, 2010

What options do I have for adding a blog to an existing ASP.NET Web Forms web site. Ideally it should be able to transition to MVS as and when my site does.

View 3 Replies

Controls :: Modify And Append Content To Existing PDF Using ITextSharp In C#?

Nov 22, 2015

I have a pdf file which has some textfields which i created using form tool in acrobat. And i wanted to add PdfPTable through code to add database table in my pdf file. but i dont know how to add PdfPtable in this scenario.

View 1 Replies

Web Forms :: Adding Datarows To Existing Datatable In Dataset?

Feb 5, 2010

I need to add rows to an existing (maybe) datatable in a dataset that combines the IIS6 index search with my own sql table. I keep getting object reference errors.

[Code]....

View 4 Replies

DataSource Controls :: Adding Field In A Existing Table?

Apr 9, 2010

I want to add a field in a Existing table.

I dont want to alter the whole table.

Give me Solution at the Design side.

View 3 Replies

Security :: Adding Membership Tables To Existing Database?

Feb 22, 2011

I am running windows 7 and NET Framework 4.

Problem is I dont know how to locate the asp.reg.sql tool that will do this using windows 7.

how to do this?

View 1 Replies

DataSource Controls :: Dataset Add Row - Checking Existing Rows Before Adding?

Mar 31, 2010

To Add new row to a dataset table, I am using code below. Before adding this how do I check if that row has already been added to the dataset?

Example:

Dim newCustomersRow As DataRow = DataSet1.Tables("Customers").NewRow()
newCustomersRow("CustomerID") = "ALFKI"
newCustomersRow("CompanyName") = "Alfreds Futterkiste"
DataSet1.Tables("Customers").Rows.Add(newCustomersRow)

Note: The table I am dealing with does not contain a primary key!

View 4 Replies

Forms Data Controls :: Adding Dynamic Columns In An Existing Gridview?

Mar 2, 2011

I have a Gridview on my aspx page. On my page_load event I check for a record in the database, if the record exists for that row in the gridview I would like to add a new column in the same gridview and add a button control to it. This adding of new column in the Gridview should happen in the codebehind (c#). see the code I wrote for this, but when I run it, it does not create any column on the gridview page.

[Code]....

View 6 Replies

WCF / ASMX :: Adding A New Contract To Existing Service Error - The Underlying Connection Was Closed

Feb 26, 2011

I have a WCF service which has 4 Operation contracts.

I have added a new contract and it gets the data from database and returns the result set.

I can access the new contract and the service get the correct result set. But while passing the result set to the client I get the error of The underlying connection was closed: The connection was closed unexpectedly.

What are the steps to follow after adding a new contract like new binding etc.

View 3 Replies

Migrate Existing Database From Specific Application To New Ms Access Based Application (database)?

Aug 2, 2010

how to migrate an existing database from a specific application to a new Ms Access based application(database)?

View 4 Replies

C# - Using Silverlight With Existing Application?

May 5, 2010

This seems like a very basic question but I couldn't find any help on web. If you could provide some link or steps to do this.I have created few basic Silverlight applications which are working fine standalone. I also have a basic ASP.NET application with a solution with around 10 Class Library Projects and 1 website. I want to create a small popup which will have some funtionality using Silverlight.How should I go about creating this application and how to integrate it with my existing application for it to show as a link. I would not want that link to open another application/site.

View 2 Replies

Configuration :: Attaching Another Application To An Existing Web?

Jul 28, 2010

What I am trying to do is install an open source application to my existing asp.net website. Within my solution in VS2008, I have two "Web Sites", one for my web site and one for the application (forums).I have my web site published to the main domain, and the forums web site published to a subdomain. They both work great.The problem I am having is that I cannot get them to communicate to each other, for example they can't access each others resources. They each have a separate membership provider, but I am attempting to combine them so that if the user logs into one, they are logged into the other. The reason that I have these as two separate web sites within one project is so that the forums can be hosted at the subdomain and the site would just be the main domain.My question is, would it even be possible to accomplish what I am trying to do using separate domains, and if so what would be the best approach?

View 3 Replies

Web Forms :: Blog To Integrate With Existing Application

Dec 2, 2010

I have an existing asp.net 4.0 web application and want to add a blog to it. I would like to create a new sub-directory and call it "blog". Is there some well suited blogs for this purpose?

View 7 Replies

Web Forms :: Deploy An Application In Existing Website?

Nov 4, 2010

What are the options available to call another web applications hosted in the same server. Eg: i have a application App1 and App2 hosted on the same server.i just wanted to call App2 from App1 how would i do it.

The most important point is that I can not change the url on the address bar to call the page of the 2nd web application.

Whatever I have achieved so far is I have added a link to my 1st application which redirects to the 2nd application, but it is changing the url on the address bar, I want to redirect to the 2nd application from within the 1st application.

View 3 Replies

Creating A NumberFormat For An Existing .NET CultureInfo In Application?

Mar 22, 2010

I want to format my numbers throughout the application in a consistent way, no matter what culture is chosen. In fact, it's "non-standard" even for the basic culture that we're using.

I want to format "{1500.50:c}" as: '1500.50', but the standard for my culture 'nl-NL', is: '€ 1.500,00'. We don't have the user-rights, since it's a webapplication, to register custom cultures, therefore we're looking for a runtime solution.

We want a "set and forget" solution. Not a Util class with static (extension) methods, but an application wide solution, so we can continue to use the standard .ToString("c"), or ToString("N") logic, which would follow our custom rules. This would be to alter the .NumberFormat of the Culture, but how? Everything seems to be readonly.

View 2 Replies

Updating An Existing ASPX Application Without Success

Feb 5, 2011

I've a little problem, with a ASPX .NET application that I'm updating. After having updated the DLL and the ASPX files on the production server, my application is still running not modified. Is there a method to force IIS reloading the application without restarting the server?

View 1 Replies







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