Currently my asp.net-mvc site makes the w3wp.exe process cpu run at 100%.
I figured red-gate's ants profiler should be able to give me some clues as about where I should be looking.
When I start a profiling session I can choose between IIS hosted- and dev server hosted asp.net web application. One of these look like the most logical opt...
I use a homebrewn CMS in my site. The texts in it are used by inserting an html-helper into the view:
<%=Html.CmsEntry("About.Title")%>
The entries of the CMS are stored in SQLServer. I need a way to scan all views in my project and see if all tokens are already in the database.
Is there a way to do this? I already enter an entry in...
I'm asp.net mvc for my project and now I have to show a couple of reports using the ReportViewer control. I need to specify a couple of properties before rendering the report ie. ReportServer Url.
Is it possible to achieve this using asp.net mvc?
...
As we all know RenderAction() is either part of:
Asp.net MVC 1 Futures or
Asp.net MVC 2 Beta 2
and allows us to render action result inside another view or partial view.
Description
You have a view with multiple partial views displayed using RenderAction() helper.
At least two partial views render a <form> probably by using Html.B...
I'm using the jQuery.Cascade plugin in my Asp.Net MVC application. I've got it all working in a manner as follows:
jQuery("#CompareModelList").cascade("#CompareManufacturerList", {
ajax: { url: '/Home/Models' },
template: commonTemplate,
match: function (selectedValue) { return this.Manuf...
I am working with an ASP.NET MVC project which was originally started from the CodeBetter.Canvas project - and I'm trying to move to ASP.NET MVC 2. I successfully upgraded my project using Eilon's upgrade tool, moved to VS2010 (although not yet to .NET 4).
The issue I'm having currently is only occurring when using the spark view engine...
I am currently reading through a proposal, where this person is proposing to use WCF services to facilitate AJAX calls in a web application. They say that WCF can serialize data more efficiently.
I personally have never considered going this approach. I have always liked calling MVC controllers using jQuery's AJAX functionality, and th...
Hi, Please note: this is NOT an MVC vs web forms general debate question. I'm looking to find what is the best choice for my situation and could use some guidence. I understand that MVC is not a replacement for web forms and they both have their advantages/disadvantages.
I'm starting to design and will soon start development for a few d...
Currently MS has been release asp.net MVC 2.0 beta with the AsyncController in it but there are very few document about this except one document at: http://msdn.microsoft.com/en-us/library/ee728598%28VS.100%29.aspx
The example from microsoft show that there is an event was used in the process of making an AsyncController.
However, the...
Hi,
When a user logs on, I check if there is a return url, and if so I redirect to it, as per the MVC application template.
if (!String.IsNullOrEmpty(returnUrl))
{
return Redirect(returnUrl);
}
How would I check if this URL was valid (routes to a controller/action), and the user has permission to access it?
My actions a...
We are trying to create a more specific [Authorize] Attribute for Asp.Net MVC
[AttributeUsage(AttributeTargets.All)]
public class AuthoriseUser : System.Attribute
{
public AuthoriseUser(string PermRequest)
{
//Do Some Auth.
}
}
and we call this like so,
[AuthoriseUser("CanViewRoles")]...
Hi,
I'm trying to get model bind a sub class in a form.
I have a Page class with a related PageContent class.
There are many PageContent objects in a Page object.
ie Page.PageContents
I return Page as the Model and I can see all the PageContent items.
However I'm a bit blurry on how to assign the PageContent items to the form so it'...
Hi peeps,
In the world of MVC I have this view model...
public class MyViewModel{
[Required]
public string FirstName{ get; set; } }
...and this sort of thing in my view...
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
<%= Html.TextBox("FirstName") %>
<%= Html.ValidationMessage("FirstName", "*") %>
My q...
Hi,
I have been evaluating xVal as framework for validating Entities in the ASP.Net MVC Framework. I have recently discovered that each time a validation rule is broken, xVal cause an excpetion to be thrown. To me is seems incorrect. For example, when a user fills in a form, and forgets to fill three required fields , three exceptions w...
I have a person table which has two properties: ID, nameID; And a personName table which has four properties: NameID, Firstname, Middlename, Lastname; Here nameID is a foreign key form PersonName table to PersonTable; (Hope you understand i am here to test the multi valued attribute test.)
Then i made a ADO.net datamodel of these two ta...
When you start creating an application or site in ASP.NET MVC, what do you do before typing in that first line of code?
I'm personally fond of creating a new ASP.NET MVC Web Application project and then cleaning out controllers/views until I have what is essentially a blank project (i.e. it runs but doesn't offer functionality). Then I...
Hi,
I'm having a hack around with the MVC framework, to try some proof of concept ideas. This are not production code..
Anyhow - I have an anonymous controller. I would like to execute an Action on that controller, however, I only have this controller's action name available as a string.
How can I render the controller's action via ...
The project is developed using ASP.NET MVC framework and heavily relies on .NET 3.5.
What would be the best solution to allow a web designer, who is using OSX, to develop the site's UI? Basically he would just need to edit the aspx, css and js files, but also run the web application locally.
I've thought of some possibilites:
Install...
If I create an object in a Custom Action Filter in ASP.NET MVC in
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
DetachedCriteria criteria = DetachedCriteria.For<Person>();
criteria.Add("stuff");
// Now I need to access 'criteria' from the Action.....
}
is there any way I can access the ob...
I'm presented with a problem of using query string variables in a RESTful Asp.net MVC application. Does that violate the RESTful pattern?
The thing is that Asp.net MVC uses default route like:
/controller/action/id
I have to pass through another controller+action combination like:
/controller/action/id/controllerX/actionX
but this...