Hi, I want to change an ASP.NET variable when someone clicks on a link on the page. Specifically a Session["something"] variable. That means I should do it after postback, but I am new to whole web development and the ASP.NET MVC specifically, so I know just an overloaded action with some [Accept] attribute. Since this link is on the mas...
After installing the latest VS 2008 and SQL Server 2008 and buying the new Hanselman (plus others) book on ASP.Net MVC, went to create the NerdDinner solution. Didn't get real far as it won't let me create the database. It threw up this dialog that says "Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function ...
I've found many similar questions but nothing with quite the answer I'm after. Part of my problem is due to the inability to use Generics in Attributes.
I am probably trying to over-complicate things, so if you can think of an easier way of doing this I'm all ears.
My specific problem relates to ASP.NET MVC, using Attributes (Filters) ...
I am using ASP.NET Mvc to display a JQuery dialog that has a few input fields. I now need these fields to submitted to an action method like how a normal HTML submit button would work on an ASP .NET MVC application and i want to harvest data in dialog to Mvc controller. How do I accomplish this?
This is my data form
<% Html.BeginForm("...
Hi, I am curious, how do I pass a parameter to a server side function, which looks like this?
<asp:LinkButton ID="lkbChange" runat="server" OnClick="lkbChange_Click" />
Then the serverside function will look something like this:
<script runat="server">
protected void lkbChange_Click(Object sender, EventArgs e)
{
Session["location"...
The site I work on has a lot of images that contain text. This includes buttons and navigation.
To support localization I include 2 css-files. One that has non language specific properties (font, colour ...) and one that has language specific properties. There is only 1 language specific file served to the user depending on his choosen ...
Hi All,
I'd like to have an action that on the first request will save the view result to a HTML file and then return the view, and in the next request the MvcHandler will just point to this generated HTML file without referring to the controller, this way I can avoid some heavy DB work in pages that usually stay static.
How can this b...
Hello,
I'm creating a content management for a kind of Enterprises, lets say for example, pets shops.
Thats my projects structure:
PetShopModel
PetShopControllers
PetShopWeb1
PetShopWeb2
PetShopWeb3
The structure is that since each client would have different specifications.
Its that a good choice? or there are better solutions?...
Hello!
I have my controllers separated in a different project, i'm using castle windsor and everything was fine, i had a tipical Controller factory in the same project that do the follow:
public WindsorControllerFactory()
{
container = new WindsorContainer(
new XmlInterpreter(new ConfigResour...
Hello,
I'm using LinqToSQL, creating my entities with the designer in studio which nicely creates the designer class with all corresponding entity-classes. Normally when I wanted some custom stuff added to my entities, I would create a partial class and do the custom stuff there.
Here's my problem; the new ASP.NET MVC 2 (preview) contain...
I am doing an ajax post in my code like this,
$.post("myAction",$("#myForm").serialize(),
function(response) {alert(response);});
if my response is an error message from my controller, I would like to display it not in an alert box, but in a regular browser page. How can I do this?
Thanks.
...
I am looking for a good ASP.NET MVC hosting company and would like recommendations. I realize MVC can be installed on any ASP.NET host, but want a solution where it is installed in the GAC. Also, must offer MySQL DB.
Thanks
...
I have developed a set of apis that live on an asp.net mvc application, but will be consumed from a browser accessing our main site (which lives on a LAMP stack).
The domain names look like this:
http://www.mainsite.org
API's
http://apis.www.mainsite.org (originally, apis.mainsite.org, but I made the modification in an attempt to fix...
Tried to install ASP.Net MVC but the install keeps rolling back. I Googled this and followed the advice found but there are no add-ins, have the latest hot-fixes and so forth. Using Vista, .NET 3.5 SP1 and VS2008. Even downloaded the MS Web Platform installer and this installed everything except ASP.Net MVC!
Any idea would be appreciate...
We run multiple apps to provide services to our members at our organization
1. DotNetNuke as CMS
2. Classic ASP custom app for membership management and event management
3. ASP.NET app for providing online learning
4. Wordpress blog
Can somebody please suggest a way to enable Single Sign On in this kind of an environment.
I am looking...
The default code that VS generates for HomeController is:
<HandleError()>
Public Class HomeController Inherits System.Web.Mvc.Controller
Function Index() As ActionResult
ViewData("Message") = "Welcome to ASP.NET MVC!"
Return View()
End Function
Function About() As ActionResult
Return View()
En...
I want to create a MVC 2 editor template for a value type i.e. int , has anyone done this with the preview 1 bits?
Many thanks
...
I have a strong typed View
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyPortal.Domain.Kite>" %>
In the view I do a foreach on a list that I placed on ViewData that has a different type
<%
foreach(var item in (List<MyPortal.Domain.Brand>)ViewData["BrandsList"]) { }
%>
Do I have to define the full path of the...
We've found that compiling our Linq queries is much, much faster than them having to compile each time, so we would like to start using compiled queries. The problem is that it makes code harder to read, because the actual syntax of the query is off in some other file, away from where it's being used.
It occurred to me that it might be ...
I have just started using jqGrid, and I have some tables that I would like to display within it.
Can anyone tell me what the proper way would be to populate this grid using ASP.NET MVC? How do I pass information from my controller to the jqGrid? Does it need to be a particular format?
If anyone can provide some information regardin...