Top "Asp.net-mvc-2" questions

ASP.

jQuery Ajax calls and the Html.AntiForgeryToken()

I have implemented in my app the mitigation to CSRF attacks following the informations that I have read on some …

asp.net-mvc ajax asp.net-mvc-2 csrf antiforgerytoken
When using .net MVC RadioButtonFor(), how do you group so only one selection can be made?

This one has me stumped, I have a strongly typed view that has this loop to generate radiobuttons: <% foreach (…

c# asp.net asp.net-mvc-2
ActionLink htmlAttributes

WORKS <a href="@Url.Action("edit", "markets", new { id = 1 })" data-rel="dialog" data-transition="pop" data-icon="gear" class="ui-btn-right">Edit&…

asp.net-mvc asp.net-mvc-2 actionlink html.actionlink
Session state can only be used when enableSessionState is set to true either in a configuration

I am working on Asp.net MVC 2 app with c# by using vs 2010.I am having below mentioned error when …

.net visual-studio-2010 session asp.net-mvc-2
What does Html.HiddenFor do?

Although I have read the documentation on Html.HiddenFor, I've not grasped what is it used for... Could somebody explain …

.net asp.net-mvc asp.net-mvc-2 html-helper html.hiddenfor
How to Set RadioButtonFor() in ASp.net MVC 2 as Checked by default

How can i Set RadioButtonFor() as Checked By Default <%=Html.RadioButtonFor(m => m.Gender,"Male")%> there is …

asp.net-mvc-2 radiobuttonfor
ASP.Net MVC - Read File from HttpPostedFileBase without save

I am uploading the file by using file upload option. And i am directly send this file from View to …

file c#-4.0 file-io asp.net-mvc-2 stream
Current date and time - Default in MVC razor

When the MVC view page with this textbox, loads , I would like to display current date and time by default. …

asp.net-mvc asp.net-mvc-3 asp.net-mvc-2 razor html-helper
Getting index value on razor foreach

I'm iterating a List<T> in a razor foreach loop in my view which renders a partial. In …

asp.net-mvc asp.net-mvc-2 razor partial-views
JSONResult to String

I have a JsonResult that is working fine, and returning JSON from some POCO's. I want to save the JSON …

c# json asp.net-mvc-2 serialization