I'm trying to use jqGrid, but it doesn't respect the imgpath, it always defaults to
"\themes\default\images"
I'm setting:
imgpath: "..\..\Content\themes\default\images";
But it doesn't respect that and uses the default path, am I missing something?
...
I've .NET Framework 3.5 SP1 installed on my system.
When I create a new application pool, I just see the .NET Framework V2.0.xxx.
I've a file that uses the ASP.NET MVC. It's not loading. I think this might be the reason.
...
I know the header is a bit hard to figure out, but I didn't exactly know how to describe the problem, but here it comes.
I have this domain entity: User and it has a list of the subclass Address, since the user can have multiple address. Home, Work etc etc...
private class User{
private string _FirstName;
private string _LastName...
I am wondering how can I define a routing map like this:
{TreePath}/{Action}{Id}
TreeMap is dynamically loaded from a database like this:
'Gallery/GalleryA/SubGalleryA/View/3'
...
I have two Tables: Products(ProductID, ProductName) and Categories(CategoryID, CategoryName)
with a many-to-many relationship between Products and Categories ProductsCategories(ProductID, CategoryID)
How Can I Implement a view that enables a user to Add and Edit one product with many categories using Asp.Net Mvc and LINQ to SQL?
...
Hello,
I have class named Product
public class Product
{
public virtual int Id { get; set; }
public virtual Category Category { get; set; }
}
Please tell me how to update Category with UpdateModel method.
Below you'll find category code in View
<%= Html.DropDownList("Category", (System.Web.Mvc.SelectList) ViewData["categor...
Currently I am using the terrific Linq 2 Json.net (by newtonsoft), which is a very great simple tool to generate JSON result in programatic way.
But after finishing some projects, I stopped and rethink, should I generate the JSON result in the controller? I mean, in .net MVC framework, it DOES provided a JSONResult as one of the ViewRe...
In a few MVC projects I've been working on, it has become apparent that there are a few problematic controllers that have organically grown into God classes - demi-gods each in their own domain, if you will.
This question might be more of a matter 'what goes where,' but I think it's an important question with regards to SRP (Single Re...
Hi,
in my .net mvc application, I am overriding the Controller class and creating my own that I will inherit from for all my controllers.
Which event should I check for a cookie in?
Does OnActionExecuting make sense?
I tried OnActionExecuting, but can't seem to find the cookie collection?
HttpCookie myCookie = ????????????
...
I'm looking for an example of a more complex asp.net mvc model. All of the Models I've seen on the ASP.net site are very, very simple and involve only one or two database tables.
I'm curious as to how mvc works with more complex models with many tables and ternary relationships.
...
Hi,
I've been reading the book Pro ASP NET MVC Framework and I'm getting really confused with a lot of things. I've been trying to do some research but I'm finding that with so many different approaches and concepts being thrown at me, it's just making things worse.So I have a few questions:
I know MVC is supposed to split the functio...
how i can insert a table from one datacontext say table1 to be inserted into other datacontext using linq in mvc without using insertonsubmit(). my user code is following
Public Class PayController
Inherits System.Web.Mvc.Controller
'
' GET: /Pay/
Private t As New PayRollMVC.DataContext1()
Private c As New PayRollMVC.DataContext2(...
I have a class that wraps the GetGlobalResourceObject and GetLocalResourceObjet so they can be used easily in MVC. The model validation classes then load the error messages dynamically from resource files. The problem is unit testing. The code uses "~/", and while everything functions correctly when the solution is run, I cannot see h...
This seems like a very simple question, but I'm getting lost, and need a few pointers.
I am using ASP.NET MVC C#, and have an Index page which displays a list of items, which is working fine.
Now I'm trying to add a DropDownList that depending on what the user selects will filter the list of items. But I keep thinking how you would do...
I've tried to inspect the AjaxContext that ASP.NET-MVC uses on for instance Ajax Actionlinks and their onSucces, onComplete etc. clientside functions. But I don't understand very much of it... Where is the documentation on this thing?
Does anybody know how to I get the 'target' or 'srcElement' (e.target or window.event.srcElement) when...
Consider the following route:
routes.MapRoute(
"Service", // Route name
"service/", // URL with parameters
new {controller = "CustomerService", action = "Index"} // Parameter defaults
);
Using Url.Action("Service", "CustomerService") produces an url of /service instead of the expected /service/
Is ...
Hi
I am trying to learn unit testing. I am trying to unit test some Memembership stuff I am making in asp.net mvc 1.0. I been following a book on MVC and I am confused about some stuff that hopefully someone can clear up for me.
I am using Nunit and Moq for my frameworks.
Question 1:
public AuthenticationController(IFormsAuthentica...
Hello,
I'm developing a web application using ASP.NET MVC (I'm new to the framework and actually quite new to web development in general). My application must support multiple languages - there's a bunch of countries for which I need the application to "speak" the local language.
The UI concept is common - have flag icons somewhere, u...
In the conventional website a url displayed as:
http://www.mySite.com/Topics
would typically mean a page sits in a subfolder below root named 'Topics' and have a page named default.htm (or similar).
I'm trying to get my head in gear with the MVC way of doing things and understand just enough of routing to know i should be thinking of ...
Hi,
When making Controllers, what are the best ways to split it up?
If I have an admin section that has a bunch of .ascx web user controls underneath it and a few .aspx pages. Should I have one AdminController? Or should I have a Controller for each individual admin pages/web user controls?
It seems as though being responsible for a s...