MVC :: Routing - Seperate Controllers With Seperate Views ?

Apr 29, 2010

Here is what i would like to be able to do with the urls/routes:



Where both the home controllers should be seperate controllers with seperate views and the company part should be an param for all the actions in the controllers.Now why i want to be able to do this is because of the following scenario: Each customer will have there own pages (which actually will all be the same for each customer but with different information per customer). The one without the customer is the general website where non customers can go to to become an customer or get information about the services we provide for them, they can sign up etc.

View 5 Replies

Similar Messages:

C# - MVC Routing: Change Views For All Controllers In A Directory?

Jan 15, 2011

I have a subdirectory in Controllers named Admin, which contains several controllers.

Is there a way to change the route so that I can put all the views in "/Admin" for every controller in the Admin directory? Or do I need to map a route for every single controller?

View 1 Replies

How To Seperate The Running Code Behind

Jan 17, 2010

i have doing a video stream project,so i am facing a probrem while i encode the video.
after the user upload the video,i call a funtion continue after the video complately uplaod.
the problem is while the server side encode the video,i make the use have to wait at that page until the video is complately encode. is that any posible to seperate the upload and encode running?is that using

i wish to do is after the user upload the video,it can free using the webpage again .and in the same time the video is undergoing encoding trigger by video competely upload at the server side.

View 3 Replies

MVC :: 2 ActionResults Both Doing Seperate Things?

May 20, 2010

I have 2 ActionResults both called Create which basically create different things on a model. Is there a way to have overridden action results? - I dont quite follow routing and not sure how to do what I'm trying to do.When creating A i call :-

ActionResult Create(ProjectModel


View 1 Replies

Put Generate Script Into A Seperate File?

Jan 14, 2011

I have a 4 web application. I am doing some SEO and performace tunning. I noticed that ASP.Net generates a lot of scripts on the fly, eg for validation and AJAX

is there any way these scripts can be put into a seperate file so it makes more code more relevant to content and reduces page size?

View 3 Replies

JQuery :: Function In Seperate .js Files?

Feb 27, 2011

I am fairly new to jQuery. All the examples that I find online and in the book that i bought refers to the functions that you declare in the web page <head></head>. Nowhere can I find a good example of how i can use an additional .js file to hold all my jQuery functions in. like normal javascript functions that you use, you reference the external .js file in the <head> and then you are sorted.I hope i am clear enough. Can someone please give me detailed steps on how to get this done? I am alwys on the lookout for best practices and know it is better to keep the code seperate from the web page.

View 3 Replies

Configuration :: Setting SMTP For 2 Seperate Web Sites

May 16, 2010

I am adding a 2nd web site to our pubic server and am noticing the SMTP delivery trying to use the default SMTP Virtual Server which is set up for the 1st web.

I created a 2nd virtual server with new smart host and credentials for the new site but need to modify the config file.

I tried using the host name = smtp virtual server 2 name.

Both webs use relay to a host for delivery

Here is my config file

<mailSettings deliveryMethod="Network">
<smtp from="">
<network host="" />

I figured it out. Sometimes you just have to ask someone the question. I changed the network to IP address instead of name of server.

ie <network host="" />

View 1 Replies

MVC :: Publish Seperate Areas - Session Gets Kicked Off?

Nov 26, 2010

If we use the new MVC 2 feature Areas, can we publish each area seperately without affecting the other,Currently my project has different folders for different controllers, but when i publish as it is in same dll, if an user is using a functionality, their session gets kicked off, what should i do to avoid this and publish seperately- controllers, views and its code.

View 2 Replies

How To Consume An EF Model In A Seperate Project Within A Solution Correctly

Nov 29, 2010

I am trying to find a way to have my Entity Framework model in a seperate project within my ASP.NET solution.

Currently I have my DataManager project (which contains my EF model and some classes) and a second project which contains all my web project files.

The problem that I have come across is that I have a database connection string in a App.Config file in my DataManager project and the same connection string in my Web.Config from my web project. I basically have a duplicate connection string.

Is there a way to only use only one connection string in my project (preferably from my web.config)?

My only concern is that when it comes to compiling my project I will not be able to change the connection string in the App.Config contained in my DataManager project.

View 1 Replies

Architecture :: How To Seperate Development Of Different Modules In A Application Other Than Using Namespaces

Feb 2, 2011

Is there any way to seperate development of different modules in a application other than using namespaces? I want to be able to define interfaces between the modules and unit test them seperately.

View 2 Replies

AJAX :: Show Seperate Panel With Grid View?

Mar 18, 2011

I have 10 gridview within panel... so i have 10 panel+gridview, i want show one at a time(if click my button or click one control) like drag panel with close button ... how i do that.

View 4 Replies

DataSource Controls :: Sending Multiple Seperate Emails?

Jun 11, 2010

so i can create an email that contains database data and send its tothe end user to show them thier statistics. no problem one email to one person.What i need to do is have some arrays or something looping through a list of employes and sending each employee thier statistics.Im using linq to sql 3.5 and web forms.
My query goes like this:


I was thinking of using for each loops, but then i have to nest the for each loops and that doesnt work.for each d in userlist for each z in useremailsODE TO GRAB DB DATA AND SEND AN EMAIL nextext

View 3 Replies

AJAX :: ToggleButtonExtender Seperate Image For Each Checkbox Data?

Jun 16, 2010

im using ToggleButtonExtender control for this target control is CheckboxList, at run time im binding some data to the Checkboxlist, but while Displaying on the ToggleButtonExtender only Thumbs image is displaying, but i want to show how many data is there in Checkbox then that many Thumb image should display, how to do that?

View 1 Replies

Web Forms :: Seperate The C# Code Into An Aspx.cs File Get The Red Underlining?

Mar 18, 2011

The code I have entered below works fine in an .aspx file, however when I seperate the C# code into an aspx.cs file I get the red underlining for both 'UserAccountWizard' and 'RegisterPatientWizard'. Is there any solution to this as I'm completely baffled right now. Here is all of the code in the .aspx file:

<%@ Page Title="" Language="C#" MasterPageFile="~/BCUHealthCentreOnline.master" CodeFile="~/App_Code/PatientRegister.aspx.cs" Inherits="PatientRegister" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>[code]....

View 6 Replies

How To Split Comma Seperate DataItem Field In GridView Eval

Mar 11, 2011

here my code-

<asp:TemplateField HeaderText="HIGH RISK (10-12)" ItemStyle-HorizontalAlign="Center">
<asp:Label ID="lblHighrisk" runat="server" Text='<%# Eval("URANGE").ToString().Split('-')[0] %>' />

but that is giving compile time error 'Server tag is not well formed'

View 2 Replies

Web Forms :: Open Application In Seperate Browser When Click On SiteMapNode?

Sep 27, 2010

I want to open application in seperate browser when click on SiteMapNode.

View 4 Replies

MVC :: Application Pulling Out Seperate Links By Word By Searching Within Headline Table Row ?

Oct 31, 2010

I am having with placing an If statement to write a message of "please try again" if someones search query finds nothing within my headline table within my database.

I have got my application pulling out seperate links by word by searching within my headline table row but what I want is if there isn't a word associated from the users search to display the "please try again". The code I have in my controller and the view page is as follows :-


using UniApp.Controllers;
using System.Linq;
using System.Web.Mvc;[code]....

View 4 Replies

Localization :: Store The Different Versions Of The Same Resource Files In Seperate Projects In The Same Solution?

Jan 18, 2011

I have a project at work where I need different versions of the same site.

I need to accomplish this by having different versions of the same resource files.

I would like to store the different versions of the same resource files in seperate projects in the same solution. Then choose which project of resource files to use when I publish or compile.

I've been searching the net everywhere and my deadline is coming up.

View 2 Replies

Web Forms :: Create A Admin  And Member Folder And Seperate The Links From The Masterpage?

Jan 12, 2011

how are you able to create a admin and member folder and seperate the links from the masterpage .The login and register is not done using the asp.conf is done using a customer table

View 2 Replies

Forms Data Controls :: Show Each Menuitems In Seperate Dynamic Ajax Tabs?

Jul 25, 2010

I have a datalist menu that has several menuitems in it(each item load user control).I want to show each menuitems in seperate dynamic Ajax tabs when I click on first item tab is created but when I click on second menuitem to create second dynamicajax tab I faced this error:



View 3 Replies

Forms Data Controls :: Using A Nested Listview To Display A Seperate Grid For Each Group Of Data Returned From Db Query

Jan 13, 2011

I am using a nested listview to display a seperate grid for each group of data returned from my db query. To get this working, I have adapted a piece of code to group the data prior to it being bound:


I am then using the following html markup:



This works as I want it to however some of the fields within the nested table need to be formatted as currency so I am trying to use Eval and {0:c} to do this however the moment I use Eval, the data items cannot be found

DataBinding: 'System.Data.DataRow' does not contain a property with the name '0'.

View 4 Replies

MVC :: How To Make Business Layer Seperate From Presentation Layer

Feb 23, 2011

I've even got my JQuery Ajax submission going on now but I've encountered another problem. I *think* it's something to do with the structure I'm using but like I say, I'm fairly newo this.I have my AJAX form submission which builds my "PersonViewModel" (model for the presentation layer) in JSON and sends it to "@Url.Action("RegisterSubmit")" in my Person Controller. Now, I seperate my business layer from my View/presentation layer so in "RegisterSubmit"I'm verifying the model is valid then instantiating a new instance of my business model "Person", adding the values from "PersonViewModel" and then calling my "Save" function.

View 7 Replies

Web Forms :: Forms Not Going Or Recognising Codebind In A Seperate File?

Jul 16, 2010

I have a an error saying Error "Could not load type 'IRPSDEV.schoolva" when I want to compile or build. hese files where developed in visual studio 2003 then I converted them to visual studio 2008.Another problem is that when I double click on the file let say Tempstudent.aspx so that it take me toTempstudent.aspx.cs it not taking me to that file. Instead it is opening html. How can I solve these

View 7 Replies

How Do Get The Get Name, Age, Gender In Seperate Fields(text Fields)?

Jan 9, 2011

Q1: I have an page , one textarea there the user can enter all his details like name age gender; how do get the get name, age, gender in seperate fields(text fields). how can i split?


dawn barric 25 male
text1: dawn barric
text2: 25
text3: male

View 3 Replies

Can't Get New Controllers Or Views To Work In .Net MVC

Apr 19, 2010

Basically what the title says. I created a new MVC application. I'm trying to add new pages to the site, but anytime I do I get the following error:Server Error in '/' Application.The resource cannot be found.Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

namespace MyAppMVC.Controllers
public class ProductsController : Controlle{
public ActionResult Index()

View 3 Replies

Copyrights 2005-15, All rights reserved