tagged [asp.net-mvc]
How to set ID and Text in html.label helper in mvc2
How to set ID and Text in html.label helper in mvc2 I want to set ID and Text attribute in html.label helper in mvc2 Plz help me out..
- Modified
- 28 Aug at 07:25
What is the MVC Futures Library?
What is the MVC Futures Library? On Stack Overflow, I've seen a few people referring to the [MVC Futures library](http://aspnet.codeplex.com/releases/view/24471) What is this project? How do I use it?...
- Modified
- 1 Jul at 01:13
ASP.NET MVC4 List of all areas
ASP.NET MVC4 List of all areas I have an ASP.NET MVC4 application in which I am creating multiple areas, is there a way I can find out programmatically the number of areas that are present and their n...
- Modified
- 28 Mar at 19:48
Pass viewbag to partial view from action controller
Pass viewbag to partial view from action controller I have a mvc view with a partial view.There is a ActionResult method in the controller which will return a PartialView. So, I need to pass ViewBag d...
- Modified
- 4 Dec at 06:24
Aspx to Razor syntax converter?
Aspx to Razor syntax converter? I have a considerable amount of ASPX and ASCX files writed in C# for MVC and I would like to convert them to the new Razor syntax. Any body knows about some utility tha...
- Modified
- 7 Jan at 09:29
What does Html.HiddenFor do?
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 its uses and give a short example? Where should th...
- Modified
- 17 Jul at 21:47
How to get query string parameter from MVC Razor markup?
How to get query string parameter from MVC Razor markup? I want to check the URL parameter in my Razor markup. For example, how do I do something like this:
- Modified
- 28 Jun at 15:36
ValidateAntiForgeryToken purpose, explanation and example
ValidateAntiForgeryToken purpose, explanation and example Could you explain [ValidateAntiForgeryToken](http://msdn.microsoft.com/en-us/library/system.web.mvc.validateantiforgerytokenattribute%28v=vs.1...
- Modified
- 25 Feb at 09:37
asp.net mvc 3 razor. navigate to view on table tr click
asp.net mvc 3 razor. navigate to view on table tr click I have users list table how i can navigate on url: "../users/showprofile?userid=" I want to make table when user clicks on table row navigate on...
- Modified
- 23 May at 12:14
How to add row number to kendo ui grid?
How to add row number to kendo ui grid? I have a kendo ui grid in my page that has some columns. Now I want to add a column to it that shows me row number. How to I do this? Thanks.
- Modified
- 29 Jun at 08:42
Run a method in each request in MVC, C#?
Run a method in each request in MVC, C#? In WebForm we could write a method in MasterPage.cs and it ran in each request . e.g: How can we do something like this in MVC ?
- Modified
- 17 Jul at 00:39
Session Management in MVC
Session Management in MVC I am new in MVC. I am creating new WebApplication in MVC4 Razor. I want to maintain User Login session for all pages. Can any one Explain me how to maintain session for all v...
- Modified
- 27 Apr at 12:7
MVC 3 Display HTML inside a ValidationSummary
MVC 3 Display HTML inside a ValidationSummary I am trying to display a strong tag inside a validation summary but it encodes it and does not display properly. How can I get this to work?
- Modified
- 15 Feb at 15:55
Difference between "MapHttpRoute" and "MapRoute"?
Difference between "MapHttpRoute" and "MapRoute"? Why using "MapRoute" for "Default" routing, while using "MapHttpRoute" for "DefaultApi" routing? ``` routes.MapHttpRoute( name: "DefaultApi", routeT...
- Modified
- 24 Nov at 01:46
What is the difference between @Html.ValueFor(x=>x.PropertyName) and @Model.PropertyName
What is the difference between @Html.ValueFor(x=>x.PropertyName) and @Model.PropertyName It seems like these two Razor commands do the exact same thing. Is there any special circumstance or benefit of...
- Modified
- 24 May at 15:0
Difference between Interface and Abstract class in terms of Decoupling?
Difference between Interface and Abstract class in terms of Decoupling? As we know there are basically two important difference between Interface and Abstract class. 1. We can have function definition...
- Modified
- 18 Dec at 03:48
asp.net mvc Bundle.IncludeDirectory example?
asp.net mvc Bundle.IncludeDirectory example? Hi Can anyone give me an example on how to use Scriptbundle method IncludeDirectory for Javascripts, not able to get how to write the search pattern string...
- Modified
- 29 Mar at 08:22
Adding style to Editor For
Adding style to Editor For I'm trying to apply a Style to the Editor for an element, but I can't make it work; what am I doing wrong?
- Modified
- 20 Mar at 18:0
Learn asp.net mvc 3 from open source project
Learn asp.net mvc 3 from open source project I want to learn ASP.NET MVC 3 (C#) by studying open source projects. Do you guys have any recommendations? I want to find a project that's written in MVC 3...
- Modified
- 28 May at 02:32
what is the difference between ViewData & PageData in asp.net MVC 3?
what is the difference between ViewData & PageData in asp.net MVC 3? Well i see this 2 properties but i cant understand the difference between them? I cant seem to find any help anywhere about the Pag...
- Modified
- 7 Aug at 18:34
How to use MVC 3 @Html.ActionLink inside c# code
How to use MVC 3 @Html.ActionLink inside c# code I want to call the @Html.ActionLink method inside a c# function to return a string with a link on it. Something like this:
- Modified
- 25 Oct at 11:7
How can I use Html.Action?
How can I use Html.Action? I am trying to understand how to use: What I would like to do is to pass a call to my controller and pass the parameters: Can someone explain how I can do that with the Html...
- Modified
- 16 Jan at 00:56
Routes.AppendTrailingSlash exclude some routes
Routes.AppendTrailingSlash exclude some routes In MVC 5.2.2 I can set `Routes.AppendTrailingSlash` to true so that trailing slash are appended to urls. However I also have a robots controller which re...
- Modified
- 11 Jun at 02:18
Add CSS references to page's <head> from a partial view
Add CSS references to page's from a partial view Is there a way to add CSS references to a page from a partial view, `` (as required by the [HTML 4.01 spec](http://www.w3.org/TR/html4/struct/links.htm...
- Modified
- 17 Nov at 23:46
ASP.NET MVC 3 Razor: Include JavaScript file in the head tag
ASP.NET MVC 3 Razor: Include JavaScript file in the head tag I'm trying to figure out the proper Razor syntax to get a JavaScript file for a particular *.cshtml to be in the head tag along with all th...
- Modified
- 1 Jan at 17:8