Server controls in ASP.NET MVC
I want to use server controls in ASP.MVC View. I want to retrive data from View and pass it to the control. How could I use server side controls(grid, button etc) and their events? ...
I want to use server controls in ASP.MVC View. I want to retrive data from View and pass it to the control. How could I use server side controls(grid, button etc) and their events? ...
I have an ASP.Net MVC Ajax.BeginForm that submits and updates my page properly when I click the submit button. The problem is I need additional events to do the same thing, like when they change the text of an input. The additonal events do properly submit the form but they circumvent the onsubmit javascript generated on the form tag...
Hi all, how do you go about saving images and displaying them from a SQL Server Image field when using ASP.NET MVC? Many thanks Nick ...
I need a dropdown list on my page that will allow a user to select their state. Since this is probably a control that will be used elsewhere, I thought it would be a good idea to create an MVC View User Control that could be reused. I was thinking the control would look something like this: <select name="" id=""> <option value="AL"...
In ASP.NET MVC, we're required to use the suffix "Controller" for all controllers. This seems unnecessarily restrictive - is there a technical reason for it? I'm mostly just curious, but can see situations where more flexible naming rules could improve code organization. Couldn't the discovery of possible controller classes be easily m...
I am new to the MVC practice, and would like to start with Microsoft's MVC. Can we recommend a book or tutorial that can help a newbie get started? ...
Is there a way that I can run a ASP.NET MVC Project on godaddy.com shared web hosting? ...
I have a linq query and I am trying to put that in to a serializable object for a distributed caching (Velocity) but its failing due to a LINQ-to-SQL lazy list like so return from b in _datacontext.MemberBlogs let cats = GetBlogCategories(b.MemberBlogID) select new MemberBlogs ...
My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server... Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify y...
I'm am building my asp.net web application using MVC (Preview 5), and am also using the Master pages concept. My PageA and PageB are both content pages. I'm doing a form submit in a method via JavaScript from PageA to PageB. PageB has its PreviousPageType attribute set to PageA, but when I access the PreviousPage property in PageB, ...
In our new product we have a few data entry fields that require you to search for the correct value to place in this field. When you enter this data entry field I would like to provide a search option via something on the view (perhaps an Ajax implementation) and have it allow searching of the database for the value, but when the resu...
I have a View that allows a user to enter/edit data for a new Widget. I'd like to form up that data into a json object and send it to my controller via AJAX so I can do the validation on the server without a postback. I've got it all working, except I can't figure out how to pass the data so my controller method can accept a complex Wi...
Hi, I just recently installed the MVC beta. However, I assumed because the versioning numbers have changed and because it now uses the GAC instead of the bin folder that it wouldn't break existing applications. However, it has. What steps do I need to follow to ensure my existing preview 3 applications use a bin copy of the .dlls and ...
For my website I configured some custom error pages. If I generate a 404, the redirect works fine. When hitting a 400, the "bad request" text shows up instead of the configured URl. As a test I copied the URL from 404 to 400. No change. Then I changed the redirect to a file. No change. Any ideas? ...
I have this simple controller: public class OneController : Controller { [AcceptVerbs(HttpVerbs.Get)] public ActionResult Create() { return View(); } [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(IList<TestModel> m) { return View(m); } } And a very simple view with two object...
When I have my Helpers in the AppCode Directory of my APS.NET MVC VB Application I can type <%=HTML.ImageUrl("myImage.gif")%> If I move it to another folder I get Errors. I assume I can import the Application Namespace to get it to work but is that Necessary? ...
I'm new to the MVC framework and wondering how to pass the RSS data from the controller to a view. I know there is a need to convert to an IEnumerable list of some sort. I have seen some examples of creating an anonymous type but can not figure out how to convert an RSS feed to a generic list and pass it to the view. I don't want it to...
Hey guys, I used to work with VWD and now I try to install the new MVC-Beta on VS2008. Installation completes successfully but when I try to create an MVC web site I don't have it on the projects list. How can I fix it? I've uninstalled VWD and MVC preview 5, tried to install several times the beta framework. ...
Is there any way to (unit) test my own HtmlHelpers? In case when I'd like to have custom control (rendered by HtmlHelper) and I know requierements for that control how could I write tests first - and then write code? Is there a specific (nice) way to do that? Is it worth? ...
I am playing around with ASP.NET MVC for the first time, so I apologize in advance if this sounds academic. I have created a simple content management system using ASP.NET MVC. The url to retrieve a list of content, in this case, announcements, looks like: http://www.mydomain.com/announcements/list/10 This will return the top ten ...