Many people suggest to develop web applications in open source technologies.
And one of the reason is the cost involved in hosting and the licensing of software.
How costly can it be to build and deploy an application in asp.net mvc compared to any other
open source technology?
...
Hi guys I'm very new to web app development and I thought I would start with recent technology and so I'm trying to learn asp.net aswell as the MVC framework design pattern at once. This is probably a very simple question for you mvc pros.
My question is should a partial view have an associated action, and if so, does this action get in...
In my application, I have some controllers that use specific routes and some that use the default route. As a result, I have something like this:
//.. other more specific routes
routes.MapRoute(
"Workout - Specific Workouts by exercise",
"{userName}/workouts/exercise/{exerciseID}/{exerciseName}",
...
This is what my data model classes look like:
public class Employee
{
public string FirstName { get; set; }
public string LastName { get; set; }
public Position Position { get; set; }
}
public class Position
{
public string Title { get; set; }
}
I have a Create view where I want to have two text boxes for first name a...
So i am trying to get a simple system working where i have an asp.net mvc web app with the forms authentication already up and running with a user created. i can login with no problem using the mvc controller/view.
I then added a silverlight app to the solution, using the existing web app as the host. I created a silverlight-enabled web...
I have two .ascx files in the same folder in an ASP.NET MVC project.
In one of them intellisense is working fine. In the other it does not work at all. Any ideas? The files are very similar with the same @control definition at the top.
Using VS2008 and C#.
...
So I'm starting to catch the TDD bug but I'm wondering if I'm really doing it right... I seem to be writing A LOT of tests.
The more tests the better, sure, but I've got a feeling that I'm over doing it. And to be honest, I don't know how long I can keep up writing these simple repetitive tests.
For instance, these are the LogOn action...
I am very fresh to asp.net mvc and jQuery. After one day trying, I still don't know how to pop up a jQuery dialog using data from a action(return JsonResult) while user click a link.
Any suggest or guideline is appreciate.
Thanks!
...
Hello,
I am using a jQuery treeview, to display an organization tree hierarchy, I display the selected organization's details on the same form by using AJAX.
So the question is, how do I make the current (selected) item highlighted, does treeview support that (I tried selected, persistence etx, no luck, but I am new to jquery anyways.),...
To put it in basic form, my database table doesn't allow nulls for varchars, it must have blanks. My model doesn't allow nulls so it won't insert a record if I leave form fields empty. If an empty form field appears I want a default value of blank to be used instead. I've tried, for example, the following without any luck:
[Column]
[...
I have a virtual directory just above the root of my web app that I use to store product images.
After I installed ELMAH for logging I realized images stopped working. This was due to ELMAH looking for its dll under productimages/bin folder.
After i created a bin dir and placed the dll images are now working
I don't like this as a lon...
I have a simple data model of two tables, email and recipients, email can be sent to one or more recipients
I have setup the database with the two tables, created the Linq to SQL repository, built the controllers and the strongly typed view.
This works fine when I want to select all records from the database
public IList<AllMailDetai...
Should I create a related view for each condition in my controller? e.g. I have the following code
public ActionResult List(){
List<Report> reports = getReport();
if(report.Count > 0){
//returning the normal view
return View();
}else{
//show the view for no reports
return View("NoReportAvailable");
}
}
or i can also have only one...
As discussed throughout the various MVC questions and blogposts, we know that the ASP.NET MVC project layout is heavy on convention.
I blindly made a sub-directory in the Controllers folder.
This doesn't feel right.
Question: What's the common accepted convention on which directory to store your ViewModels? What are your suggestio...
Okay, so I have a couple of ASP.Net Mvc web applications that I would like to share a common master page, some css and js files across...
I tried creating a common repository for the files and then in my studio projects using the Add Existing... As Link... feature but, this doesn't appear to work...
When I try and debug the project I ...
In my ASP.NET MVC application i am using Chinese Category Name, it was displayed as %E8%82%B2%E5%84%BF in IE's URL address, but the actual value is '育儿'.
I want to know how can I convert '育儿' into %E8%82%B2%E5%84%BF in C# and how can I convert it back, too. Is it possible display '育儿' in the URL link directly? Will it be good for SEO?
...
i have tried till my head hurts and have been reading so much my eyes now bleed.
i have a controller, and i want to get one set of data for the order and one list for the order items.
i have created a order class and a order items class, and trying to get it so that
the order will have a list of order items but it is crashing my brain ...
I have to create and return file in my aplication ASP.net MVC aplication. The file type should be normal .txt file. I know that i can return FileResult but i don't know how to use it.
public FilePathResult GetFile()
{
string name = "me.txt";
FileInfo info = new FileInfo(name);
if (!info.Exists)
{
using (StreamWriter writer = info.C...
Does anyone know why is it not possible to get the virtualpath when you are running the
asp.net mvc unit test project? Is it because it creates a Temp folders under TestResults Folder.??
...
Anyone have have a dropdownlist helper method with a list of Canadian Provinces?
Based upon this question I was looking to find a Canadian Province equivalent. Hopefully this will save someone some extra typing, or lead to an even better answer.
...