This is puzzling me. I deployed an MVC 2 application to IIS6 and everything works fine except for my jqGrid calls to get data.
All is well on my development machine, but here are the two URLs I'm working with
Local dev web server:
POST http://localhost:port/Ctrl.mvc/JsonMethod
IIS6 (notice https - not sure if that matters)
POST ht...
I would like to create an ASP.NET MVC web application which has extensible logic that does not require a re-build. I was thinking of creating a filter which had an instance of the IronPython engine. What I would like to know is: how much overhead is there in creating a new engine during each web request, and would it be a better idea to ...
Hello,
In HTML, What's the purpose of the attribute for in the label tag.
<label for = "Name">Name: </label>
<% = Html.TextBox("Name")%>
In the above sample, why the label tag has a for = "Name" attribute? To mark their association??? If I don't put for what gonna happen?
Thanks for helping
...
Here is the code I am using to setup the form:
<% using (Ajax.BeginForm("SaveCroppedPhoto", new { Id = Model.memberId.GetValueOrDefault() }, new AjaxOptions
{
OnBegin = "ProfileOnBegin",
...
I have found the place near the very top in a T4MVC template file (.tt) where assembly references can be added, which looks like:
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Collections.Generic" #>
However, it seems that I can only reference assemblies that are in the GAC. i.e. if I have an assembly MyProject.Stu...
hi, m having problem in passing parameter to controller action, i have done the following
Url.Action("SchoolDetails","School",new{id=item.SchoolId})
and my controller action follows
public ActionResult SchoolDetails(string schoolId,_ASI_School schoolDetail)
{
schoolDetail = SchoolRepository.GetSchoolById(...
I have a client who is trying to deploy a site that I designed in ASP.NET MVC, they are running IIS 6 and I've talked them through on how to setup wildcard mapping to make the clean URLs work.
However; when they attempt to go to the site they are still getting the normal page not found. Because for some reason the wildcard mapping isn't...
A wild card SSL allows any domain prefix:
*.mydomain.com accepts
ssl.mydomain.com
secure.mydomain.com
anything.mydomain.com
Given that MVC can route the request to the correct view based on the URL, is it as simple as loading the wildcard SSL cert on an IP, then use DNS to map the various names to the IP?
...
In my application users can enter commands that are executed on the server. The results are added to a session object. I then stuff the session object into ViewData and add it to a textarea.
When done with a standard HTML form whitespace is preserved.
However, when I swap this out for an ajax form (Ajax.BeginForm) and return the result...
Hi all,
I am working on a project using asp.net mvc 2 and linq to sql. The problem occurs when trying to insert data into a table where the table has an identity column type of tinyint. When trying to insert the following error occurs:
The primary key column of type 'TinyInt' cannot be generated by the server.
Does linq to sql suppor...
I'm building a ASP.Net MVC site, which has some small islands of non MVC code. Is this best called ASP.Net Classic, or Legacy ASP.Net?
Is there some better name two distinguish the two?
...
MVC.net 2 by default outputs validation messages like this:
<span id="UserName_validationMessage" class="field-validation-valid">A Validation message</span>
I would like it to do it like this:
<label id="UserName_validationMessage" class="field-validation-valid">A Validation message</label>
Is there a way to do it like the display ...
I need to be notified any time a largeish asp.net mvc web application makes an ajax call to the server. We're using both jquery, and the built-in Ajax.* methods to do the remote calls, and I would like a global way of knowing when we make a call without having to manually inject some sort of "IsMakingCall" method to every request.
The r...
Hi, I am trying to post back some data using a viewmodel i have created and it works for me for one of the projects.But I am doin this right now
public ActionResult Foo(string userkey)
{
vm.Value="Xvalue";
return View(vm);
}
[HttpPost]
public ActionResult Foo( MyViewModel vm)
{
// process input
if (inputOK)
...
I'm trying to get a nested model to bind correctly with a nested view but am not having any luck.
Here is a detailed look
This is the class
public class Foo
{
public AnotherClass AnotherClass { get; set; }
public string Name { get; set; }
public ......
}
Inside AnotherClass we have more sub objects such as
public clas...
In my ASP.NET MVC app I'm using jQuery Treeview with Async node expansion to build a tree of Active Directory objects. I'm encoding id's of each node with Base64 due to request length issue. For example in response for http://devel.local:49210/Domain/LeafExpand?root=source I get the following:
[{"text":"DC=anusiewicz,DC=pl","id":"REM9YW...
Hi all,
I noticed that I cannot add stylesheets on any page. They must be added to the master page.
I already have about 15 stylesheets in the master view, which seems like overkill, since only some of the pages use a certain stylesheet.
I imagine I could reference the file via javascript (although, I can't think of how off the top of...
I have an web application that I'm working on, it was working fine until my curiosity got the better of me and I right-clicked on a view and chose Set As Start Page option. Now, whenever I run my application it takes me to the Resource Not Found error page. I have the default register route set in my Global config route which was worki...
I thought MVC was supposed to make all this easier but I'm trying various ways and getting issues.
If I try the accepted answer for this question (changing the content type accordingly)... http://stackoverflow.com/questions/1375486/how-to-create-file-and-return-it-via-fileresult-in-asp-net-mvc
...I get into trouble because my encoding ...
Hi, I have a web application where I would like to pull user settings from a database and store them for Global access. Would it make more sense to store the data in a Singleton, or a Session object? What's the difference between the two?
Is it better to store the data as an object reference or break it up into value type objects (ints ...