Running An MVC2 RC Web Appilcation With The Majority Of Pages Being Webforms?

Jan 26, 2010

I am running an MVC 2 RC web appilcation with the majority of pages being webforms. (this is an ongoing conversionn to mvc).When people hit our domain at www.mydomain.com, I want the people to get the webform page MyDomainHome.aspx. This is the page specified in IIS as the default document. (I can't convert the home page to controller/view right now because it is very complicated etc.)

I also want the typical "{controller}/{action}/{id}" behavior. Is there a way to mix these together so people who have bookmarked my home page will still get there?

2. Also when I use the "{controller}/{action}/{id}" routing, my pages do not see the css or image folders that are specified in the master page.

View 2 Replies


Similar Messages:

Webforms - Attaching Instance MEF Running In ASP.NET?

Apr 20, 2010

I'm trying to do a proof of concept app for my work using ASP.NET WebForms and the Managed Extensibility Framework. I've got things up and running(ish), but I can't seem to figure out how to attach the instance of Visual Studio that has the MEF code in it to the instance of Visual Studio that is running the Web App.

View 1 Replies

Ajax - WebForms Running Multiple Queries At The Same Time?

Aug 24, 2010

We are building a front page/dashboard that queries our database for live statistics. The page has 3 update panels, each update panel has a user control that pulls data for it's box. Lets call the user controls UC_NotStarted, UC_Active and UC_Finished.

We have built the queries that return the data and all of them take a while to run (~7 seconds each). So if we let the first page run with one update panel the image spins for ~21 seconds and display everything. We have broken that code into 3 update panels and set the loading to conditional. When we do this we get one box to load every 7 seconds. That's a step in the right direction but they load sequentially (UC_NotStarted is queried waits 7 seconds and displays, then UC_Active goes for 7 seconds, and finally UC_Finished runs for 7 seconds). We are still at 21 seconds but data is being shown every 7 seconds.

We would like all of the data to be shown in 7 seconds since all of the update panels should be fetching the data at the same time. Instead of using LinqToSQL to pull the data I am now leaning towards web services to get it but not sure if that will work.

View 1 Replies

Iis7 - URL Routing In .Net Webforms Running Under The Classic .NET AppPool?

Dec 29, 2010

Does anybody knows if it is possible to make URL routing in a ASP.Net webforms website that is running under the Classic .NET AppPool.

I've tried a few things here, but it just works when I switch from Classic AppPool to Default AppPool.

** the web site MUST run under Classic AppPool.

View 2 Replies

Use An IoC Container To Create Webforms Pages And Controls?

Aug 26, 2010

With ASP.NET MVC it is pretty easy to integrate an IoC container to create the controllers. Is the same thing also possible with webforms to create the pages and controls and pass them any dependencies? If yes, where do I have to plug it in?

View 4 Replies

NET WebForms - Processing String Parameters Across All Pages On Site

Jun 25, 2010

Working on an ecommerce site which will be integrated with a 3rd party vendor--that vendor uses different identifiers for stores than we use internally (i.e. their store ABC123 is our 001-321). I'm researching the best approach to inspect incoming requests for reserved query-string parameters that indicate the request is using their identifiers and map the identifiers back to our identifiers (so if the request is example.com/&theirId=ABC123 I want to transform the request to example.com/&ourId=001-321). To do this mapping I need to inspect the provided ID, execute a lookup against the database or cache, and forward the request to the specified page--limiting the modifications to just the query-string parameters (other parameters will need to be maintained, as with the details of the HTTPHeader, etc). So far I'm researching a few different approaches: Implementing it in a base Page (which already does too much, but has the benefit of our Logging infrastructure and some other injected dependencies) Implementing it in an IHttpModule Using URL RewritingUsing URL Routing (looks like routing isn't what I want, feel free to offer insight if you think it still fits) Performance cost is a consideration: the actual number of times this translation will occur will be very small compared to the number of requests not requiring it--perhaps 1%. However for another integrated site we will perform this mapping on nearly every request--would a different approach be better suited to this scenario from the previous?

View 3 Replies

Include Normal Pages (webforms Or Mvc) In Dynamic Data Web Application

May 21, 2010

can I include normal asp.net pages (webforms or mvc) in a Dynamic Data web application?

View 2 Replies

Web Forms :: Error In Running Master Pages?

Jul 26, 2010

I am trying to compile simple master page but i keep on getting following error.

Compiler Error Message: CS0426: The type name 'child' does not exist in the type 'System.Web.UI.MasterPage'

Source Error:

[Code]....

Line 140: }Line 141: Line 142: [TemplateContainer(typeof(MasterPage.child))]Line 143: [TemplateInstanceAttribute(System.Web.UI.TemplateInstance.Single)]Line 144: public virtual System.Web.UI.ITemplate Template_head {

View 28 Replies

Web Forms :: JavaScript Not Running In Master Pages

Feb 14, 2010

javascript is not running in a Master Page. Do I have to write it on each and every content page?

View 10 Replies

Web Forms :: Running Aspx Page Along With Asp Pages?

Feb 17, 2010

I am trying to add aspx pages to my website which already has Asp Pages. I made a virtual directory and pointed to existing website where I have placed new Aspx files along with previous Asp files. Now when I try to execute the file. It runs good in first attempt, however, when I click a couple of times of "click me" button browser keeps on processing and does displays my message again.

Code in Default.aspx.vb
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Label1.Text = "Heello how are you?"
Code in Default.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label> <br /><br />
<asp:Button ID="Button1" runat="server" Text="Click Me" />
</form>
</body>
</html>

I initially ran this code in Visual Studio 2008 and it executed well. Later on i transferred my files along with existing Asp Page? Version configured in IIS for ASp.Net is 2.0.50727 Visual Studio 2008 To clarify further, I would like to know, if I am proceeding in right direction to excute my Aspx pages along with Asp? Secondly, why does my browser keeps on processing if I click the button second or third time ? I am not getting exceptions or errors.. And have no idea of reading logs for the program..

View 4 Replies

Web Forms :: Running C# Pages Inside A Vb Masterpage?

Jan 3, 2010

very simply as the title says, is it possible to run c# pages inside masterpages that are written in vb?

View 2 Replies

Installation :: Running Aspx Pages To An Existing Php Website?

Mar 3, 2010

I have a client that currently has a comprehensive php website (with a huge amount of functionality built in).

We have been requested to link into our c#/SQL server application and pull information from the SQL database and display this on the existing website.

I would like to do this as aspx pages. However, I do not want to re-create the complete existing website. I would like to add the aspx functionality onto the current website.

View 1 Replies

Web Forms :: To Add Content Pages To A Website Dynamically (when Site Is Running) On Buttons?

Jul 16, 2010

i am working on a site where client wants to add the pages from the admin panel to existing website( from the web browser) but static contents like text etc.

View 1 Replies

What's Standard Practice To Make Sure One Slow Running Page Doesn't Affect Other Pages

Aug 31, 2010

Page A loads very fast; Page B loads very slowly and does some CPU-intensive things on the web server. I noticed that if someone is loading Page B, then Page A also loads slowly - for ALL users. What is the standard practice for making sure this doesn't happen? If multiple users are loading Page B at the same time then Page A is ridiculously slow. Is there an IIS setting, web.config setting, or hardware configuration I could use to make sure that the fast-loading pages aren't bogged down by other pages that need more time to load?

View 1 Replies

IIS 6/7 Threading - Long Running Aspx Page Keeps Other Aspx Pages From Loading

Oct 11, 2010

I wrote a test page that does a bunch of busy work in a method called at page load. This process as I have it now takes around 12 seconds.

If I try to load another page while the first long running page is loading, this second page doing nothing except writing out a world, it doesn't load until the first long running page is finished.

Why is this the case? I would think IIS would be able to handle multiple concurrent connections, it seems crazy that one long running page would stop every other page in the application from loading. I must be missing something or not understand how IIS works.

I would think multiple independent requests would be spawned on different threads. Is this only the case if the requests are from different sessions entirely? Are all requests from a single session bound to a single thread?

View 1 Replies

Error "Server Error In '/xx' Application" When Running Classic Asp Pages

Apr 22, 2010

everything .net works fine, but when i try to run a .asp file i get this error: Server Error in '/xx' Application. This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure that it is spelled correctly. Requested URL: /index.asp Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3082 is there something i need to enable?

View 3 Replies

Databases :: Losing Connection When Running Long Running Oracle Procedure?

Jul 1, 2010

I am executing a long-running Oracle stored procedure from .NET. The procedure takes about three hours to run. Ideally, the user should be able to kick off the procedure, close the browser, and come back later to check the results.

The problem is that the connection to the Oracle procedure is lost after exactly an hour. As you would expect, the Oracle procedre runs to completion if it is executed from SQL Plus. Strangely enough, it will also run to completion if I run in debug mode on my local machine (I start two threads, one of which executes the procedure. I set a breakpoint on the second thread).

Here is my connection string:

data source= (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=serverx)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TestSID)))

Some relevant sections from web.config:

<sessionState mode="InProc" cookieless="false" timeout="3000" stateNetworkTimeout="72000"/>
<httpRuntime executionTimeout="18000" maxRequestLength="2097151" />

Any thoughts as to why the connection is being lost in exactly an hour, and what I can do to maintain the connection until the procedure finishes?

View 1 Replies

Web Forms :: VS2010 Master Pages / Everything Shows On The New Pages Except The Jpeg Image Logo?

Sep 5, 2010

i'm developing a site using VS2010 and with my windows vista busniness OS. i used the default VS2010 wizard for new web application to create it. included a folder in the root directory and created new aspx pages to derive from the master page in the root directory of my site. everything shows on the new pages except the jpeg image logo in the master page. But other aspx pages i created in the root directory shows every thing fine.

View 1 Replies

Configuration :: Finding Best Practice For Making Sure That Slow Pages Don't Affect Other Pages?

Aug 31, 2010

Page B - loads slowly and needs to do some CPU-intensive operations on the web server.

I noticed that when someone is loading Page B, then Page A also loads slowly. This is even worse if multiple users are loading Page B at the same time. Page A won't finish loading until Page B is done.

Is there a best practice for making sure that Page A can still load quickly? Maybe a config setting or IIS setting that I need to change from its default? With 2 users loading Page B at the same time, the web server CPU usage only gets to 30% so I suspect it might be something I can tweak with the settings.

View 1 Replies

Web Forms :: Master Pages - All My Pages Inherit From The Base Page Class

Jun 21, 2010

Currently I'm doing common functionality required throughout my site inside of my masterpage. What I want to do is move this functionality to a BaseClass so All my pages inherit from the Base Class. However, I'm not sure how to set this up interms of c# code with regards to Using a Base Class and then having a masterpage applied to my aspx pages that i create.

View 5 Replies

State Management :: Maintain Query String Parameter In All Pages - It Gets Lost In Subsequent Pages

Aug 9, 2010

In my Application_BeginRequest I have code that gets query string value ?c=FR or ?c=US and store it in cookies.Based on query string value I have either US or FR,locale is selected from locale table.If ?c=FR then locale will be fr-FR and if it is US then locale will be en-US.My code is below.

void Application_BeginRequest(object sender, EventArgs e)
{
LocalizationInfo loc = GetLocalizationInfo();
if (Request.Cookies["Localization"] == null)
Response.Cookies.Add(new HttpCookie("Localization"));
Response.Cookies["Localization"]["Country"] = loc.Country;
CultureInfo objCI = new CultureInfo(loc.Locale);
Thread.CurrentThread.CurrentCulture = objCI;
Thread.CurrentThread.CurrentUICulture = objCI;
}
public static LocalizationInfo GetLocalizationInfo()
{
string countryCode = "";
string sLocale = "";
if (HttpContext.Current.Response.Cookies["Localization"]["Country"] != null)
countryCode = HttpContext.Current.Response.Cookies["Localization"]["Country"];
if (!string.IsNullOrEmpty(HttpContext.Current.Request.QueryString["c"]))
countryCode = HttpContext.Current.Request.QueryString["c"];
if (countryCode == "")
countryCode = "US";
sLocale = HertzRent2Buy.DataProvider.ListData.GetLocale(countryCode);
LocalizationInfo ret = new LocalizationInfo();
ret.Country = countryCode;
ret.Locale = sLocale;
return ret;
}
public struct LocalizationInfo
{
public string Country;
public string Locale;
}

Now when I run the project and in query string I set [URL] then for the very first page(home page itself) it shows me French translation,but on subsequent page,that query string parameter ?c=FR is lost and hence it shows be English translation not French translation since it does not pickup French resx file.If I manually append ?c=FR in subsequent page then it shows the French translation.Is there is way how I can make that query stringparameter available in all pages.Structure is there to hold Country and locale variables. In all pages I am calling GetLocalizationInfo() method as follow

LocalizationInfo info = some.DataProvider.Globalization.GetLocalizationInfo();

And I create instance info to pass locale and country as parameter. GetProductDetails(id,info.Country,info.locale). why my query string parameters get lost on subsequent pages.

View 1 Replies

Configuration :: Dev Server Doesn't Turns On Pages Automatically When Debug Or View Pages Of Site In Browser

Sep 13, 2010

When i'm trying to debug or view pages of my site in browser asp.net dev server doesn't turns on pages automatically and when im trying to go by url it throws me an error See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): Не удается найти указанный файл
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Microsoft.VisualStudio.WebServer.WebServerForm_DAL.DoLaunch()
at Microsoft.VisualStudio.WebServer.WebServerForm_DAL.OnLinkClickedHyperlinkLinkLabel(Object sender, LinkLabelLinkClickedEventArgs e)
at System.Windows.Forms.LinkLabel.OnLinkClicked(LinkLabelLinkClickedEventArgs e)
at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)............................

View 7 Replies

Caching - How To Turn Pages Into Static Pages As Part Of The Build

Dec 29, 2010

I have a few pages that are completely static. They only change at build time. But they are expensive to create. For the ones that are kind of expensive to create, I cache them for very long times using the ASP.NET output caching. But for one page, I really want it cached forever and ever or until the the next build.

What is the most expedient way to make this happen? Is there a build in feature that achieves this or a 3rd party tool?

(yeah, for the moment I plan to do the "view source" and copy paste thing, which isn't a very elegant build step)

View 2 Replies

JQuery :: Menu Does Not Work For Pages Which Are In A Separate Folder Pages

Oct 24, 2010

I have added a jquey menu in my master page its working fine for those asp.net pages which are at the same level as master page.

But this menu isn't working at all for all of those page which aur in Editor's and Admin's folder. In these pages menu is displaying as simple html menu and unfortunately no jquery effect is shown on it.

I'm very confused why this menu isn't working for the pages which are in a seprate folder while the master page is added at the root level outside of all these folders.

View 16 Replies

AJAX :: Set Title For Content Pages When Working With Master Pages?

May 17, 2013

How can we add titles to each content pages which inherits from mater pages in asp.net?

View 1 Replies







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