How much ASP.NET should I learn if my final goal is ASP.NET MVC?
Starting from scratch with very little knowledge of .NET, how much ASP.NET should I learn before I start to dive in ASP.NET MVC? ...
Starting from scratch with very little knowledge of .NET, how much ASP.NET should I learn before I start to dive in ASP.NET MVC? ...
I would like to assign a static list of items in a SelectList() to a Html.DropDownList() in ASP.NET MVC, what is the best practice? I was about to try to find a way to use new SelectList(new {key = "value"}... but one, that didn't work, and two, would I be breaking a law here, should my static list be declared in ViewData anyway and pas...
In my ASP.NET MVC application I want a user to add a value into a textbox and then press my Ajax.ActionLink. I want to do something like this: Ajax.ActionLink("Go", "Action", "Controller", new { value = textbox1.value }) Or how else can I get this textbox value back to my action? Jquery? ...
I am starting out on a project that will involve ASP.NET MVC using a legacy ODBC 2.0 compliant database. The goal is to replace current system functionality with a web front end over a period of maybe a year then swap out the backend with SQL Server. The plan would be to code against SQL server then insert some shim into the repository...
How can I get the actual "Main-Controller" in a RenderAction? Example: MyRoute: {controller}/{action} My url my be: pages/someaction tours/someaction ... In my Site.Master I make a RenderAction: <% Html.RenderAction("Index", "BreadCrumb"); %> My BreadCrumbController Action looks like this: public ActionResult Index(string cont...
We have started building an asp.net mvc application. Application will consist with one main database with users, projects, common tables etc... and many databases (all with the same structure) with a data relevant to a particular project. Use can have some global roles (stored in a main database) and some project specific roles (stored i...
I am using Subsonic 3 ActiveRecord approach and was wondering what was most efficient in terms of posting data. Here are the 2 scenarios: i) public ActionResult Edit(Person PostedItem) { Person p = new Person(PostedItem.ID); p.Name = PostedItem.Name; p.Update(); } ii) public ActionResult Edit(FormCollection P...
I started downloading the MVC Template, and created a new project using this template. I Compiled the application, and everything went fine so far. My question is, where could i find the new sonic.exe file that generates the MVC DAL? Is that the old sonic.exe? ...
This same question was asked here and an answer was given which is workable, but with the finalization of the ASP.Net MVC framework, I wondered if there was a better solution. If I have the following class structure how do create the view page and more importantly return the data back to the controller. public class Person { public...
Hello, I've got ASP.NET MVC routing question. I prepared following routing table to map such url mywebsite/mycontroller/myaction/14-longandprettyseoname to parameters: 14 => id (integer) longandprettyseoname -> seo_name (string) routes.MapRoute( "myname", "mycontroller/myaction/{id}-{seo_name}", ...
I have a controller action called UpdateSite(), browsing to this action is a manual way for me to kick off a (normally automated) data-collection process. It's a fairly simple process which has the following work flow: Perform a couple of web requests for data using a web API Parse this data to extract anything I might need If some of...
In building a content management system that incorporates jquery ajax into it's GUI I have come across a hurdle. It seems that some customers spend too long thinking about what they are going to write and therefore the server session logs them out, naturally being the web they have no idea about this. When they attempt to submit the chan...
I would like to let a user select the back ground colour for a website and save the selected colour in a database. When the person logs in the background correct colour will be displayed. Based on the following website, I am able to set the colour within the CssHandler.ashx. But, I'm not sure the best way to get the information from the...
I have an ASP.NET MVC app that is using the AreaViewEngine proposed by Phil Haack here. It works fine, but the app seems kind of sluggish, so I was doing some profiling using dotTrace. I pushed the app to our dev server, changed the debug flag to false in web.config (compilation debug="false"), started up the profiler, and used jmeter to...
I have a scheduled task that I need to kick off by browsing to a page, my webhost doesn't allow me to use the windows scheduler. One job this task performs is to get some data from a bunch of other websites, due to how slow web-requests can be I've set up the task to use threading. Running this task from an mvc action seems to cause th...
I would like bind an array data to view in ASP.NET MVC, how can I do that? sorry for not clear about my question. Right now, I creat a custom object(not array), I tried to pass it to View, but the error shows "The model item passed into the dictionary is of type 'ContactView' but this dictionary requires a model item of type 'System.C...
Hi Guys, I cant really seem to find this anywhere so I was wondering if you could help. I am trying to create a script which automatically logins to a HTTPS link via C#. So essentially - I have a URL that contains a report I need to run daily but its behind a HTTPS login with username/password. I am trying to create a script in C# wh...
This have puzzled me for a while, I would like to know why -from a programmer point of view- I should take the time to learn MVC and where do I need it, and I am not talking about theoretical models, I am asking how can MVC make my life easier and where? ...
I've got an MVC user control with the following basic structure: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Decimal>" %> <%= Math.Round(Model) %> Which gives this error message when I use it: Compiler Error Message: CS0452: The type 'decimal' must be a reference type in order to use it as parameter '...
Looking for advice on framework and approach for building a modular web application. Primary goal is to minimize need for redeployment, but redeployment would be fine on occasion. OSGI for Java seems like the right idea but I need a .NET implementation. http://www.osgi.org/Main/HomePage http://stackoverflow.com/questions/126073/mod...