Hello,
Do you know some good Open Source project written in PHP that is a finest example of MVC and is just the best example to learn how to write a state of art project?
kind regards,
I am doing a return RedirectToAction("Index", "Clients"); from my home controller.... It is fine but my url looks like http://localhost:1115/Clients/Index... How to remove index from url in asp.net mvc? Any suggestion....
My routes,
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Registrations",
"{controller}/{action}/{id}",
new { controller = "Registration", action = "Create", id = "" }
);
}
Hi,
I trying to use jQuery validation plugin with DataAnnotations in asp.net mvc 2 final. Now I'm using MicrosoftMvcValidation.js and it works. But I can't find way to work with jQuery validation. I read about MicrosoftMvcJQueryValidation.js. But I think that it is obsolete. How can I use DataAnnotations with jQuery validation plugin?
i am using asp.net mvc for my project. i am using partial views for that i used ajax jaquery every thing is working fine but i am not getting image for loading when i upload an image. image get displyed at local host it has problem when i upload the project.
i have given image as:
$jq("#ajaxThrobber").html('<img src="/Images/ajax-loader.gif"> Loading.....');
please advice me thank you.
Hi,
where, in your opinnion, should a breadcrumbs path be declared (in other words, in which letter of MVC)? So far I've been declaring it in Controllers, but I've recently started to work with CakePHP, where it is all made in Views and it surprised me.
I'm just curious of your opinions.
I want to create a dnn like page modules in asp.net mvc site. Can any one have idea how i can do that. I am using asp.net mvc2.
Any tip of code will be great help
Thanks in advance.
I want to export csv file that contains hebrew character in my ASP.net MVC application
I have tried many encoding but not work. Actually hebrew characters and not displaying as they are.
Can anybody have idea?
I want the following structure in my ASP.NET MVC solution;
Controllers/HomeController.cs
Controllers/Administration/AdministrationController.cs
Controllers/Administration/UsersController.cs
Views/Home/Index.aspx
Views/Administration/Index.aspx
Views/Administration/Users/Index.aspx
Views/Administration/Users/AddUser.aspx
etc.
How can I make it work so I get http://localhost/Administration/Users ? Do I need a route for this, or create a new Administration area?
Thanks.
Is there a way to change the naming convention for controllers in ASP.NET MVC?
What I want is to name my controllers InicioControlador instead of InicioController, or better yet, use a prefix instead of a suffix, and have ControladorInicio as my controller name.
From what I have read so far, I think I have to implement my own Controller Factory. I would be very grateful if any of you could point me in the right direction.
I'm looking for a Java web framework that requires the most minimal amount of configuration for a very small app. Spring & Struts are definitely overkill here. This is an app that could be written without any framework at all but I would prefer to use a minimal MVC framework if I can find one.
hello,
can any one tell me how to do form authentication in asp.net mvc? i had done form authentication for built in database but i dont know how to use it with ADO.net entity model. thank you
In MVC, should each model be a globally accessible singleton accessible to any view/controller?
Or should the models be singletons that are dependency injected into any component that requires them?
Or should a new model instance be created for each component that needs one, in which case events would be used to propagate changes across model instances of the same class?
Hello! I am an MVC newbie. I'm trying to get my URLs to look like this:
/Corporate/Users/Edit/1
/Corporate/Stores/Edit/17
/Corporate/Contacts/Edit/17
/Store/Contacts/Create
/Store/Products/Edit/29
Pretty much like plain-vanilla urls, except with a user type at the front. I'm running into a lot of problems with duplicate controller names, etc.
Is there a simple way to do this? I looked briefly at Areas, but this seemed way to complicated.
Last week I asked a question about the best technology in ASP.NET. Many people responsed MVC. Thanks to all.
What resources can you recommend to start learning ASP.NET MVC - both the MVC pattern and Microsoft's ASP.NET MVC implementation and framework?
videos
tutorials
how to
sample code
How would you implement a user message stack in ASP.Net MVC (you set messages for the user in any place inside your app. and they are shown as hints of your app to the user anywhere inside the app)
e.g.:
HI there
I was wondering if there is a better way of testing that a view has rendered in MVC.
I was thinking perhaps I should render the view to a string but perhaps there are simpler methods?
Basically what I want to know if that the view for a given action has rendered without errors
I m already testing the view model but I want to see that rendering the view giving a correct ViewData.Model works
How do I cache an individual user control with ASP.NET MVC? I also need the VaryByParam etc support that usually comes with ASPX Output Caching. I don't want to cache the entire action though, only one of my user controls in the view.
An example would be nice :) Thank you!
Hi ive got an mvc form with a fileupload functionality. Ive got an action that accepts an file and extracts thumbnails from it, after which the user can select the images and then proceed to submit the form. How can post the initial file via ajax, bearing in mind, this is not the final submission on the form and I want to retain user input. ie no postback
Thanks
Is there a best-practice when it comes to where to put the logging functionality in an MVC application, for example a Zend Framework application (Zend_Log)? Should I put the logging in the controller or in the model? Or in both?
If in both, should they have the same logger or a separate one?
If an action has been decorated with [Authorize(Roles="Administrators")] is there a way to not display the link for the currently logged in user who is not in the declared role?
It seems to me that baking a lot of if statements into the view to give this kind of "selective disclosure" is contrary to the MVC way, but I'm not sure what the alternative is?
I'm creating a custom ActionResult class and I need it to be able to operate on a UserControl. All of the examples I've found so far pass in the full path like so:
return MyResult("~/ControllerName/UserControlName.ascx", myModel);
But I'd like it to operate the same way as calling View(), i.e. I just pass in the name and MVC determines the correct route:
return MyResult("UserControlName", myModel);
Is there a way I can find out the correct route to the control without specifying it manually?
Hi I was just wondering if its possible to do an ajax post a file in asp.net mvc,
basically i have a form with two buttons, one of the buttons extracts images for the selected document and displays them for the user to choose thumbnails for the document he is about to upload. The usee then fills out the rest of the form and then saves the document.
With the image extraction, I was owndering if it was possible to do that as an ajax post. The other submit button can work as a normal http post
Thanks
How can MVC website benefit from the new parallelism features in .net 4? don't websites support parallelism by default since multiple users access them at the same time? Can someone clarify this?