I am using the ASP.Net Charting Controls and ASP.Net MVC.
I am trying to have a chart displayed on a page, the user can change various data associated with this chart and then press a button which will perform a POST operation and then return a newly rendered chart. This is refreshed via jQuery which loads a partial view containing th...
I'm trying to create a simple site. Basically it has one Controller Home controller.
This controller has an action Index takes a string as argument (which is a directory) and uses that 'directory' to do its work.
I can't work out how to create a generic catch all route that will send every URL to this one Action.
Any URL combination c...
Hello there,
Actually I have an application that is using a WebService to retrieve some clients information.
So I was validating the login information inside my ActionResult like:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult ClientLogin(FormCollection collection)
{
if(Client.validate(collection["username"], collection["passwor...
I would like to display a tag cloud in my test application using a helper class to create the html.
I can use a for each loop in the partial view to visit each item in the model
Inherits="System.Web.Mvc.ViewUserControl < IEnumerable < MyTestproject.Models.TagCount > >
foreach (var item in Model) {
}
But when I try to pass the model...
Just a quick one really, I'm just looking for a bit of clarification.
I'm looking to update multiple tables from one "Create" action, before I try it, I was just wondering if it's possible to simply just do the following:
db.hdCalls.InsertOnSubmit(a)
db.hdCustomers.InsertOnSubmit(b)
db.hdAssign.InsertOnSubmit(c)
db.SubmitChanges()
Or...
I have this one in View:
<%
foreach (var item in (List<MyType>)ViewData["MyTypeArray"])
{
%><tr>
<td>
<%=Html.Encode(item.Name)%>
</td>
<td>
<%=Html.CheckBox("MyTypeFlags" + item.BitNumber),
/* Mo...
I have setup error handling as described here: http://stackoverflow.com/questions/619895/how-can-i-properly-handle-404s-in-asp-net-mvc/620559#620559
When the errorController.Execute method is called, I get an InvalidOperationException: The SessionStateTempDataProvider requires SessionState to be enabled.
My session state mode is set to...
I have an ASP.NET MVC application running on IIS7. I use sessions to keep track of logged in users. There is a session named IsSignedIn. ("true" means this user is currently logged in).
I also have an administration page for my application.
Now, say user1 who is signed in already, must be suspended from using the service immediately. ...
Code:
<% using (Ajax.BeginForm("GetResourcesByProject", "CreateRequest", new AjaxOptions { UpdateTargetId = "ResourceListDiv"}))
{
Response.Write(Html.DropDownList("SelectProject", Model.ProjectList, "Select Project", new { onchange = "this.form.submit();" }));
} %>
When I run the page I get the correct controller action to trigger w...
The bad 'return JavaScript' goes like this:
This is the action link that gets selected.
Ajax.ActionLink("Sign Out", "LogOff", "Account", new AjaxOptions { })
This is the action.
public ActionResult LogOff()
{
FormsAuth.SignOut();
return JavaScript("ClearDisplayName()");
}
The JavaScript is never called !
...
I have an asp.net-mvc app with the following aspx pages served by my 'Users' controller: Index.aspx, User.aspx, UsersIntoActivity.aspx and UsersUsingLocation.aspx.
In my Global.ashx.cs I've got the following routes set up:
routes.MapRoute(
"UsersHome",
"Users",
new { controller = "Users", action = "I...
Hi,
I would like to use some kind of nosql database in my web application which is written in asp.net mvc , but cannot find anything useful. I have a looked at MongoDB and CouchDB but i'd like to have better api (strongly typed not magic strings) for my queries than they have.
Is anything like this exists for .NET ?
...
I watched this webcast recently, and I got the sense that a lot of the "cool stuff" from ASP.NET MVC is getting pulled back into the ASP.NET framework.
At the moment I'm setting the ground-work for a project at my company using ASP.NET MVC, but after watching this, I'm beginning to wonder if that's the right choice, and whether it would...
I have the following in my view:
<%using (Html.BeginForm()) {%>
<% foreach (var item in Model.Cart) { %>
<div>
<%= Html.TextBox("Cart.Quantity", item.Quantity, new { maxlength = "2" })%>
<%= Html.Hidden("Cart.ItemID", item.ItemID)%>
</div>
<% } %>
<input name="update" type="image" src="image.gif" />
<% } %>
I ...
I am using json to get the list of user information to show on the top of the page using jquery in asp.net (C#) application.
i am using jquery timer plugin for the json call to check for the user information frequently(for every 15 minute when the user is in online).
When the json request is in progress, and when i navigate to the nex...
I am trying to run a standard SubText blog engine as a sub application to a standard MS MVC website. The Web.configs have conflicting entries. I know there is some way to limit the scope of these entries in the web.config, but I have yet to make it work. Any ideas? I tried using a <location> tag but it cannot exist at a root xml leve...
I have a master page with Header, Menu, Content and Footer panes in my asp.net mvc (C#) application.
I don't want the Header and Footer panes to refresh on each page navigation, only the Menu and Content panes should get refreshed.
How can i achieve it in the asp.net mvc application? any suggestions
...
Hello,
Lately, I've been exploring what's the best way to organize presentation layer of ASP.NET MVC application when underlying Model is complex. What came up till now is MVVM architecture with their ModelView objects. However, I'm not sure what are the best practices when this kind of architecture is in case.
Does ModelView objects ...
Hello There,
Actually I'm building an application in ASP.NET MVC (using C#) and I would like to know how I can perform calls like curl http://www.mywebsite.com/clients%5Flist.xml inside my controller
Basically I would like to build a kind of REST API to perform actions such as show edit and delete, such as Twitter API.
But unfortunately...
I know this could be silly, but would like gurus to clarify it for me... Why is this method defined as static ..
public class MvcApplication : System.Web.HttpApplication
{
/* Why this method is declared as static? */
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*path...