asp.net mvc url routing
i have a classic web project and i want to use asp.net mvc url routing just for rewrite url. is it possible without make much changes to my web project? ...
i have a classic web project and i want to use asp.net mvc url routing just for rewrite url. is it possible without make much changes to my web project? ...
I'm trying to understand the relationship between entityset instances of an EF Entities model (the model was created by Entity Designer). Basically I end up with 1 logical transaction having 2 instances of an entity's Repository class. Data committed successfully (confirmed by direct SSMS query to SQLServer) in one instance does not be...
I want to have a save button that is only enabled when the view isdirty. How should I approach this? My particular situation is a WinForms application using .Net 2.0. I have a service layer that the presenter calls. The service layer returns a screen bound DTO. Is it ok to bind the view to this DTO and have the DTO implement an isDirt...
i want to use a good mvc naming convention for a forum im creating. i wonder, should i use this structure: controller: threads model: threads_model (eg. $threads_model->get_all_threads, $threads_model->add_thread, $threads_model->add_post, $threads_model->add_comment) controller: tags model: tags_model (eg. $tags_model->get_all_tags, ...
First post so please be gentle :) When creating user controls in ASP.NET MVC, what is the best way to structure the code so that the controllers that invoke views that use the user controls do not all have to know so much about the controls? I would like to know a good way to maintain DRY while using user controls in ASP.NET MVC. Pleas...
Class Customer has the following method, which returns an IQueryable with the linq query to get the active sales for a customer: public IQueryable<SalesHeader> QueryCurrentSales() { // this.SalesHeaders is an association defined in the DBML between // the Customer and SalesHeader tables (SalesHeader.CustomerId <-...
I have a controller located in Controllers folder. Controllers .... CustomViewController The CustomViewController executes the following method public ActionResult DisplayPerson() { Person prn = new Person(); prn.Name = "Rama"; prn.Email = "[email protected]"; return View(prn); } I ha...
Hello All I am using MVC and Nhibernate in my application. How can i improve security of my application using proper authentication and authorization? Right now i am using asp.net mvc authentication. ...
I have an ASP.NET MVC web app whose controllers use WCF to call into the domain model on a different server. The domain code needs to talk to a database and access to the database server isn't always possible from web servers (depends on the customer site) hence the use of WCF to get to a place where my code is allowed to connect to the ...
I'm writing an application in Qt (with C++) and I need to represent an object structure in a tree view. One of the ways to do this is to create a model for this, but I'm still quite confused after reading the Qt documentation about the subject. The "structure" I have is pretty simple - there's a Project object that holds Task objects in...
Whats the best way to organize controllers. Lets say I have a user controller and a register action, should I have a process_registration action as well where I validate and process the data, or just do all processing within the register action itself. Should I have a validation/processing action for every action that requires it (regist...
On the Details view I want to display a grid from other table. How to implement it better? I'm trying to do it in a such a way (error: Cannot implicitly convert type 'void' to 'object'): <%= Html.RenderPartial("~/Views/Appartament/Index.ascx", new { id = Model.blockhouse_id })%> Here is the code from details view: <%@ Page Title=""...
I want to specify the model binder to use for a property of my input model. public class SendEmailInput { [Required, EmailAddress] public string From { get; set; } [Required] public string To { get; set; } [Required] public string Subject { get; set; } [Required, ModelBinder(typeof(RadEditorModelBinder))] ...
I'm building a site similar to StackOverflow, mostly as a learning exercise, and I'm having difficulty understanding how to decide on the different controllers in the MVC pattern. What exactly is a controller? What controllers would you use to model a Q&A website similar to SO? I'm using ASP.Net MVC, and I notice the URL pattern is alwa...
I work with many diverse technologies, and don't possess the time to evaluate every single UI framework, so I'd appreciate hearing other coders' experiences with various frameworks. The stuff I've worked with so far (and my perceptions): WinForms: DevExpress (love the looks, hate the API and bloat), Krypton (free!, looks good, but lim...
I'm writing a GUI app that I want to use Swing and SWT. The end-user will specify somehow which should be used (it won't use both at the same time!). SWT is what I prefer generally and I have been looking at JFace, but it seems like if I use its most powerful features I will increase the coupling between the GUI and the model, and make i...
I'm trying hard not to go off and roll my own shopping cart, but after perusing the available .NET ecom packages, it's all ASP.NET webforms. In addition, if i see another handrolled DB layer or some manual invocation of Activator.CreateInstance() for extensibility, i'm going to break out in hives. So what I'm looking for is a shopping c...
I've recently been improving my skills with web programming to follow the saner and more maintainable MVC style of coding. However, one thing which I used to do with my "roll your own" framework was flexible dynamic routing based around mod_rewrite. This appears to be a sore issue with things like cakephp, zend, etc.. and its causing me ...
I'm using jQuery Multiple File Upload Plugin to upload several pictures. But form posts only 1, top, item. Fiddler (POST): POST /Images/UploadImages HTTP/1.1 Host: localhost:4793 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 Accept: text/html,application/xhtml+xml,application/xml;q=...
Recently, I've chatted with a fellow Perl Monger about my and his job. He has a lot of Perl background, but works in a team that creates and maintains many low-scale projects for the customers, mostly based on .NET and Java. His opinion is currently that Perl has mostly lost the web game, since it's still lacking widget toolkits, which a...