Hi,
I am trying to map an action with no controller to a specific action, However, I do not want to show the controller in the URL. I have partially achived this using the mapping shown below:
routes.MapRoute(
null,
"Contact",
new { controller = "Home", action = "Contact" });
This successfu...
Hi Guys ,
I want to disable model binding for a particular class , to be more specific i don't want certain data property of a class to be set by the default model binding .
eg . i have height and width property of a class , which i want to be explicitly set by the user
like model.height = xxx ;
the value should not be set by defaul...
I have a form in my MVC application that in theory should submit data back to my database using a Repository class.
However, when I submit the form (http://localhost:1028/Admin/NewUser/), the URL changes to where the form should be submitting to, which is fine (http://localhost:1028/Admin/NewUser/Submit), but once it has been submitted,...
i'm having a textbox inside a form.
[View]
<%=html.textbox("name") %>
[Controller]
Index(string name)
{
name = "something";
return View();
}
On Form Submit
In this case without sending any ViewData the textbox value is maintained.But the value "something" is not setting up.
But whn i change the Action to
[Cont...
I'd like to use the multisearch facility from JqGrid within an ASP.NET MVC application. When setting up the grid you set a URL that becomes the action method on a controller. But how do I find out what the parameters should be defined for the action method. I've seen in another post that working out what the parameters should be is the h...
Hello there
I am using an objected oriented MVC framework in PHP (Kohana) and have kind of mashed together a few techniques to get stuff done. Problem is I am not sure how to keep things clean without calling lots and lots of queries per page.
To illustrate my example, I'll imagine I am designing a stack overflow like site:
I have ...
Hey guys. I'm creating a rails app and being one of the first times I've used the MVC pattern, let alone rails, I'm running into ambiguity and uncertainty. I already defined an application.html.erb which is working great, it has a yield statement which renders the current action's view.
I want application.html.erb to contain some dynami...
Hi there, my first question here, so go easy if I've not got the subject/detail ratio quite right ;)
Ok.
So I'm using parsley 2 in flex because I'm very much liking it's messaging architecture for decoupling the view from the model and controller via it's messaging dispatcher and presentation models (read view mediator's).
what I'm wo...
I was playing around with this code. http://programmersvoice.com/tag/code
And I noticed that the following line.
$this->load->model($this->models."pagemodel", 'pages');
I compare this with
$this->load->model("pagemodel", 'pages');
This is what codeigniter's document http://codeigniter.com/user_guide/general/models.html#loading sug...
can someone suggest the ideal Unit test cases that may fit in across each of the layers .
(which otherwise can be called as a standard).
for instance, in an ASP.NET MVC applictaion using a Repository pattern -
Controller - can assert for View names and format of the data returned to the views , from the controller action methods( i ...
Is there as easy way to convert string URL to RouteValueDictionary collection? Some method like UrlToRouteValueDictionary(string url).
I need such method because I want to 'parse' URL according to my routes settings, modify some route values and using urlHelper.RouteUrl() generate string URL according to modified RouteValueDictionary c...
I'm a little confused about what the correct way to reset or clear the data in associated with a QAbstractItemModel. I'm writing an application in which the user can "start over" with a new set of data (empty, or small).
Should I be deleting the old model when the user makes this request? Or should I leave the model alone and just remov...
I have created a table in the database that has a System.Guid as it's primary key. The required ADO.Net Entity Framework model has been generated and the required stored procedures has been mapped.
I created a new controller and added the basic required code for Create and Edit for the data. However when the clicking on the link to edit...
I have an MVC application that is using a mix of windows and forms. The database is on a hosted server and I'm using my local IIS (5.1).
Everything works fine until I try using IsInRolw("role") - I get:
The trust relationship between this workstation and the primary domain failed.
I suspect this may be OK when the application is depl...
All examples in Qt show that one should use delegate classes to provide editors that reside within QTreeView (QListView, etc). I want to have a separate non-modal dialog to edit item's attributes. Should I use delegate classes to do so?
That is, no editing or special behavior is required within QTreeView.
...
I recall Django had its source online awhile ago, I'm just looking to study how a fully functional site operates - I don't mind looking at any type of Python/PHP based MVC framework such as Pylons, Django, Zend, or Kohana.
...
I have a complete unsafe mvc application. And now I started to think about security. Cause I use a couple of ajax I will close this securityhole with AntiForgeryToken is this a good way to stop Injection attacks?.
Next I thought about authentication and how i could manage my users. Than I decided to use the users of my Domain. But ho...
I am writing a quasi-MVC-style application with a GUI, a controller and a backend that deals with all calculations and data accessing and stuff. This happened rather accidentally and I have no experience whatsoever with MVC, but want to understand it more thoroughly.
So, the model has to do some lengthy calculations. How would this be h...
What are good python libraries for the following needs:
MVC
Domain Abstraction
Database Abstraction
Video library (just to create thumbnails)
I already know that SQLAlchemy is really good for Database Abstraction so don't bother with it unless you want to suggest a better one.
Edit: This might seem stupid to mention but I'm talk...
I have followed Phil Haack's tutorial and everything works fine but now I want to implement search filters in my grid and I noticed that it sends a filter string attribute with my search string to my controller but its in json format... I have no idea how to get the values and use them to implement my search function..., Im using linq to...