Anybody got any experience in mapping a domain to an MVC area?
Here's our situation:
Old system (still active but will soon redirect to new store):
www.example.com - our main site where we send traffic
store.example.com - our store site which is a completely separate site that is indexed in google
New system:
www.example.com - sam...
Hi all,
I was wondering if anyone know of examples out there on how to page a List of data via scrolling. (i.e. like yahoo mail)
Thanks
...
Hi guys,
I'm trying to get the HandleError attribute to work, but I'm having some difficulty because of a sort of a special circumstance.
I have another attribute which checks against a blacklist of IPs in my database and quite literally throws an exception. I was hoping to catch that exception with the HandleError attribute and route ...
I am an ASP.NET MVC newbie. I am getting a very strange error when I attempt to add a new strongly-type view in my controller. I am using a basic class, with no dependencies, with the View content set to "List". I am using a master page. The view name is a standard "Index". This used to work just fine but it all of a sudden started ...
I think Page.User.Identity.IsAuthenticated is available in ASP.NET MVC, because I see other people talking about using it.
However, when I type Page., the intellisense gives me only these 3 options :
CreateHtmlTextWriterFromType
Equals
ReferenceEquals
What do you think is going on?
EDIT: If I do Page page = new Page(), then page.Us...
I have 2 properties in my ViewModel
class ViewModel1
{
Dictonary<int, string> PossibleValues {get;set;}//key/value
int SelectedKey {get;set}
}
I want to edit this using a Html.DropDownListFor
I want to get MVC to auto serialize the data into/from the ViewModel so I can the following
public ActionResult Edit(ViewModel1 model)...
I thus far worked with asp:Treeview for all my dynamic menus for my web applications..
Any suitable replacement of it in an asp.net mvc web application...
Any HTML helper that can perform like Treeview for me?
...
I am using DataAnnotations for my model validation i.e.
[Required(ErrorMessage="Please enter a name")]
public string Name { get; set; }
In my controller I am checking the value of ModelState. This is correctly returning false for invalid model data posted from my view.
However, when executing the unit test of my controller ac...
Somebody knows the answer? I'm using L2S with field ntext in my db
...
Update
I have have this up and working on my site. http://rsolberg.com/ViewBlog/21
I'm currently testing out the MarkItUp rich text editor in a MVC app, and everything is working great with the exception of the preview. In the settings (set.js), there is a previewParserPath property ("path to your BBCode parser"). I'm not exactly s...
How can I have different URL ids like www.somewebsite.com/index?theidentifier=34 only in ASP.NET MVC not Webforms.
...
I am doing my first project in ASP.NET MVC and using the NerdDinner sample project in ScottGu's book as a guide. In his project, all his strongly typed views neatly correspond to the objects he defined (e.g. Dinner). That is not really reality of a business application.
For instance, in my app, a page (e.g. View) gets most of its info...
I want to used extended Textarea from tiny_mce_src. What am I doing wrong?
<%using(Ajax.BeginForm("CreateArticle","Home",new AjaxOptions(UpdateTargetId="content" }))
{% <div><p><label for="body"></label> <%= Html.TextArea("body", new style="height:500px"})%></p> <input type="submit value="Save"/></div> <%}%>
<script type="text/javas...
Lets say I have the following code:
return (from p in repository.GetPostMedia() select p).ToList();
But in the values of object p, I want to inject a property calculated as follows:
MediaUrl = App.Resource["MediaPath"] + p.Id + "." + p.Ext;
PS. This code is located in the Service section of an ASP.NET MVC application. It is suppose...
I am used to ASP.NET where each user control would have its own codebehind, and you do things related to that usercontrol in that codebehind C#.net file, so you can reference the usercontrol anywhere you like.
I am new to ASP.NET MVC, and I added an ascx control, and I can not seem to figure out where do I write the code for setting vi...
How does one accomplish "model-level" validation as stated in Brad Wilson's post:
Finally, if you want a validation to have access to multiple properties, then make it a model-level validation (so that it gets the entire model as the model parameter, rather than a single individual property value).
From http://forums.asp.net/p/1457...
The following link loads a pop-up in my application. On Save from this i'd like to do a page refresh on the underlying data. So, i'd like to add to the link something like 'history.go(0);'
<%= Html.ActionLink("[EditImg]", "Edit",
new { id = item.SiteAgreementScheduleActionId },
new { id = "ActionEdit", rowid = item.SiteAgreement...
Hey all,
I’m hoping to investigate/implement a CDN (initially just via a sub-domain, though moving over to CDN in time) and am having a mare finding resources that talk about handling of versions of files on that sub-domain.
Most places I’ve worked previously have implemented caching of resources (images, javascript, css, etc.) and whe...
How do you turn a field from the database, say, (8/8/2009) into 8 August?
...
I have just updated to the latest structuremap dll and now my site no longer works at runtime due to deprecated methods in structuremap so I am trying to update my bootstrapper code.
In my bootstrapper class I have rewritten it to:
public class Bootstrapper
{
public static void ConfigureStructureMap()
{
ObjectFactory.In...