Hi,
I am migrating my application from asp.net mvc to mvc version 2 and am having the following issue.
I have paging links << < > >> that I include in each page. Like so:
<% Html.RenderPartial("PagingControl", Model); %>
They exist in an ascx file as follows.
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserContr...
i recently was working on an ASP.NET MVC site that basically serves static html and uses ajax gets to return data to the page when inputs are changed. there is actually no posting or getting from an html input tag on the pages at all. (it is a specific style of site that is not used by the general public, so having compatibility problems...
Hi, I've searched over the topics on Stackoverflow but this question hasn't been answered so far.
I have two projects in my solution: a) MVC Application b) Class Library.
The class library acts as a plugin, so it contains views. The main problem is that I have no intellisense in the view's markup for my classes contained within the cla...
I'm using the DropDownListFor helper method inside of an edit page and I'm not having any luck getting it to select the value that I specify. I noticed a similar question on Stackoverflow. The suggested workaround was to, "populate your SelectList in the view code". The problem is that I've already tried this and it's still not working.
...
I wish to play a video content (in a container) from my website/ blog, when the page is loaded . Similar to that of youtube, dailymotion etc.
I wish to give the actual Url to that container, which then plays the video in that location.
The basic idea is to hide the actual URL from the user and make the person to view the video from th...
The mechanics of making this work aren't hard, but testing it is a little strange. The scenario is that I want to dump some basic user data into the view data based on the User property of a base controller (an IPrincipal object) so that the master page always has it. I need access to my IUserManager (a service class), which is provided ...
How can I merge this two class to one?
this:
new { action = "index|new|edit" }
new { controller = "category|article" }
To this:
new { action = "index|new|edit", controller = "category|article" }
I know that it's not trivial at all, but here is the problem.
I have a method that I used to register my routes. The method don't have ...
when i put jquery icon on my website it looks fine, but when i put icon inside jquery tab, icon image is moved few pixels left
has anybody solved that problem already?
thnx!
...
I have tried to get an example but was noy successful so far. I have created various arrays and filled them in jquery. How to post all of them to the controller? On the controller side how to retrieve them and their values? I would appreciate if I can have an example or a link with much explanation since i`m completely new to using aj...
Hello
I have this atm:
<a href="<%= Url.RouteUrl("UserDelete", new { userID = item.UserID }) %>" onclick="$.post(this.href); return false;"><img src="/Content/Admin/Images/Icons/delete.gif" /></a>
How can I modify this one so it also shows a confirm messagebox?
As it is now nothing happens when I click it, it doesnt post, what more ...
Currently I'm working with a big, old and extremely poorly written ASP.NET 1.1 application and the continuous maintenance is becoming quite a problem. Basically it's reaching breaking point and I'm reluctant to expand it any more than I have to as demanded by the business. Based on my experience creating other projects from scratch it wo...
Hello everyone.
I'm very new for ASP.NET MVC. I found that this is very cool thing and KIGG is good to start creating real MVC web application.
I've followed KIGG development guide part 1 and run application.
However, only listing directory shows on web browser as below
Directory Listing -- /
Friday, February 05, 2010 12:44 PM ...
i have some controlers that provide access only to users that are in Admin role:
[Authorize(Roles = "Administrators")]
controler im talking about displays company details for customers and i want to provide access to that controler by some url for example:
www.mysite.com/Company/123?code=0932840329809u0932840
generating code wil...
I have seen in RC 2 release notes says
"The new UrlParameter type allows default values in routes to be removed after URL routing runs."
But I still get the route values in the path.
Here what i get:
<div id="PartialView">
<%Html.RenderAction("Partial"); %>
</div>
<% using (Ajax.BeginForm("Partial", new { name = "test" }, new Aj...
Should all routes in ASP.net MVC follow a "Only slashes, no QueryString" philosophy?
I'm working on a Wiki software, so I have routes like
/{pageTitle}
/{pageTitle/Edit
/{pageTitle/History
etc. for all actions, but what if I want to control the behavior of an Action? Is something like
/{pageTitle}?noredirect=true
okay or considere...
System is Windows 7 32 bit fully up2date, Visual Studio 2008 & 2010 RC.
Trying to install AspNetMVC2_RC2_VS2008.exe following the instructions from http://haacked.com/archive/2010/02/10/installing-asp-net-mvc-2-rc-2-on-visual-studio.aspx I keep getting this error
Prerequisite check for system component Microsoft ASP.NET MVC 2 - Visual S...
I have build a production system using ASP.NET MVC 1 and am now playing and preparing a talk on the second installment.
One peculiar thing that I can't comprehend is why all controllers and action methods have gone partial and virtual.
This question will surely pop-up at the Q&A round and I have no answer to it. So please if somebody k...
Hi all,
I have a User entity, and in various views, I want to create links to a user home page basically. This fuctionality should be avaialbe in different controllers, so I can easily redirect to the user's home page. Each user in my site has a role ; for example reader, writer, editor, manager and admin. Ideally, I want to try to achi...
I am getting the following exception on a call to Html.RenderPartial:
The model item passed into the dictionary is of type 'ChildClass' but this dictionary requires a model item of type 'ParentClass'.
These two classes are related this:
public class ChildClass { /* properties */ }
public class ParentClass
{
public ChildClass ...
Hi, I have a pager on a table using ajax and I would like each such request also to change the browser's url, so when I hit refresh button I won't skip back to first page. I was fighting the Url parameter of AjaxOptions, but it keeps winning over me. Please help.
Trim
...