If so how?
Did you roll your own with jQuery or use the Microsoft AJAX toolkit?
Did you create a webservice or call an action?
EDIT : Please note that this question was asked before Microsoft announced that they were going to bundle jQuery in with VS/ASP.NET MVC. I think there is less of a discussion around this topic now and the answer would now almost always be 'use jQuery'. IainMH 11th Feb 2009
jQuery, action, return JSON.
http://devlicio.us/blogs/mike_nichols/archive/2008/05/25/jquery-cascade-cascading-values-from-forms.aspx
I've spent the past day or two getting #Matt Hinze's answer to work. It works well. jQuery is the prefferred method of doing AJAX in the forthcoming ASP.NET MVC In Action book from Manning. You can get a pdf of a free preview chapter on AJAX in MVC here.
However, Stephen Walther in his excellent ASP.NET Tip series has just blogged about creating cascading dropdowns in Tip #41.
CascadingDropDown jQuery Plugin for ASP.NET MVC
http://weblogs.asp.net/rajbk/archive/2010/05/20/cascadingdropdown-jquery-plugin-for-asp-net-mvc.aspx
http://blog.noma.li/2010/03/autopostback-and-cascading-drop-downs-in-asp-net-mvc-and-jquery/
Related
I want to use the full calendar i/o by creating a web service but i have not found any tutorials online. I have tried to search for tutorials but no success.
I have created a very basic MVC example on .NET Fiddle.
As mentioned by Mikkel in the comments you should take the time to read through how to ask a question.
As I know in current Asp.Net MVC3, there is a component available named WebGrid and in jQuery there is component available named jqgrid. Can anybody show a comparison of boh these components in terms of features and which is easy to setup and get going.
Also if there are any options for grid in jquery suggest them too. Few tutorials links etc. too may be helpful. I am complete beginner in Asp.Net MVC3.
check these out :
Using jQuery Grid With ASP.NET MVC
ASP.net MVC JQuery Json and Paging
Get the free telerik MVC open source controls . Is the easiest and most full featured one out there.
I am following the mvcMusicStore tutorial and it is very good but the problem is that it asks me to include a html helper known as "Html.EditorFor". This html helper is not in MVC 1 which is what I am using. What else can I use to go around this? This helper is suppose to allow me to link the Edit View to an edit template know as Album which I have created. This is the coding which is included in the tutorial:
<%:
Html.EditorFor(model => model.Album,
new { Artists = Model.Artists, Genres = Model.Genres})
%>
Please look at the MvcMusicStore Tutorial from page 40 onwards to help you understand the situation. This can be download from Microsoft's MVC website.
Templated helpers were introduced in ASP.NET MVC 2. Html.RenderPartial is probably the closest you could get in ASP.NET MVC 1.0. It is strongly recommended to migrate to at least ASP.NET MVC 2.0, assuming ASp.NET MVC 3.0 is the current stable production release.
I haven't worked with MVC3 that much - as it was just released, but I was wondering if there was some kind of conversion tool - to convert exisiting Views / Forms into the newer up-to-date "Razor" view engine.
I'm not sure if it is possible but I just thought this would be the place to ask...
Thanks!
I recently read on Dave Hayden's blog this morning about Telerik releasing a Razor View Conversion tool. I believe they used it to convert all of their demos on their site from all of their existing WebForm view to the new Razor View engine.
Here is Dave's short blurb regarding the tool and if you want to play around with it yourself, it is available on Github using the following link:
Github - Telerik Razor Conversion Tool
Hope this helps you out (I haven't had the chance to play around with it much - but knowing Telerik, it's probably pretty decent.)
Given that Asp.net webforms works well for simple pages and there is no point in moving to MVC for the sake of it. I don't think a converter will do a good job, as:
your pages are complex
and/or you wish to do unit testing - so need to redesign
or you are moving for the sake of it (way?)
I am trying to integrate a calendar plugin like google calendar with custom database and code with asp.net MVC in C#.
It needs to handle Day/Week/Month Events in the Calendar as like google calendar.
I found the similar plugin in jquery http://www.webappers.com/2009/08/04/jquery-weekly-calendar-plugin-inspired-by-google-calendar/. But it shows only the Week
Do anyone have a reference to this? Please suggest
I'd try FullCalendar
I answered a similar question a while ago, "ASP.net weekly schedule control", and the answer there would still be relevant to yourself.
DayPilot is a pretty good general
purpose calendaring/schedule control.
The full version is not free, but
there is a "lite" version available
which is not only free but open
source!
The "lite" version will give you both Day and Week (and "Work" week) views of the calendar and will show a Month Scheduler view.
Whilst the original DayPilot component is not meant for ASP.NET MVC, a guy called Craig Stuntz has adapted the DayPilot Lite component for ASP.NET MVC:
Using DayPilot with ASP.NET MVC
The best one I found is dhtmlxScheduler. It is highly customizable, fires events and works cross-browser. It is free for GPL projects, otherwise there are commercial licenses available with affordable prices. And their customer support is excellent!
Use Google's Calendar API
I am using this jquery plugin.
http://www.web-delicious.com/jquery-events-calendar-wdcalendar/
It provide php mvc sample, you can convert it to .net mvc