Hi Guys,
I am using MVCSiteMap - http://mvcsitemap.codeplex.com/ - with Azure and I am trying to figure out how I can get it to remove the PORT number at the end of the generated sitemap.
Currently, I am getting
http://127.0.0.1:5100/
For this url and all others. Does anyone have any experience with this or know how to remove the p...
I'm new to ASP.NET MVC and am using version 1.0 of the framework. I have a site.master page with the following hard-coded menu
<div id="menucontainer">
<ul id="menu">
<li><%= Html.ActionLink("Home", "Index", "Home")%></li>
<li><%= Html.ActionLink("Drivers", "List/?category=Drivers", "Product")%></li>
<li><...
Using JQuery's ajax() or get() methods we can make an async call to the ASP.NET MVC controller action, for instance like this:
function(){
$.get('<%=Url.Action("TitleToSlug", "Services", new { title = "Some title" }) %>', function (data) {
$('#SomeOtherTextbox).val(data);
});
}
What if we wanted t...
This is my scenario:
Development Environment:
Visual Studio 2008, Windows 7
Deployment Environment:;
Ubuntu 10.04, Apache 2.2.14-5, Mono-runtime 2.4.4.(mono-server2 for ASP.Net 2.0 applications) I have all the dependencies installed.
I'm simply trying to create an ASP.Net MVC 1 web application in Visual Studio and deploy it to Apache wi...
Hi,
I'm quite new to asp.net MVC. I'm following the NerdDinner tutorial and have created an Edit page to modify the dinner information. This time, I want to somehow have a photo uploaded and save to the database when I press the Save button.
So how can I do this?
If possible, can anyone point me to a good tutorial that shows me how t...
HI,
I am new to JQuery. I am having issues implementing the same. I want to use the tab from the JQuery custom themes. The issue is that the css don't seem to apply. I have gone through a lot of blogs etc on google but nothing seem to work for me.
I have followed what is mention here.
I am also pasting the contents of site.master and /...
Hi Guys,
I am trying to figure out how to do a server ASP.NET MVC Image Load on Refresh. Basically, I have an array of image's I would like to rotate on refresh on the page. I know how to do this in jQuery but the problem is that all images load at the same time [which sucks in terms of performance]
Does anyone know how I could do this...
I have a dynamically-generated javascript file that I want to ensure is NEVER cached by the browser. My current method is to simply append a (new) guid to the url in the script tag on each page view.
For example:
<script type="text/javascript" src="/js/dynamic.js?rand=979F861A-C487-4AA8-8BD6-84E7988BD460"></script>
My question is...i...
Hello,
I'm sorry to ask such a basic question, but it's kind of fundamental for me. To better understand filters, I need to understand this notions. Although I'm on ASP.NET MVC for few months now and now are doing nice demos, I'm more familiar with Action method concept than action result.
What are:
Action Method?
Action Result?
How...
In my ASP.NET MVC application I have a number of threads that wait for a certain length of time and wake up to do some clean tasks over and over. I have not deployed this application to a production server yet but on my dev machine they seem to work as expected. For these threads to work the same on IIS7 do I need to look out for anythin...
How to implement a mechanism (within a single ASP.NET MVC application) to ensure that:
if request comes on mydomain (user visits mydomain.com) -> handle using certain set of controllers
if request comes on otherdomain (user visits otherdomain.com) -> handle using different set of controllers
(the domains are aliased to the same web h...
I am trying to teach myself LINQ to SQL and have decided to do a small MVC.NET project to get my feet wet. The problem is that I have fallen very early on with the following error.
I am making a golf application so I have setup the database and got my dbml classes made. The database has a course table and a hole table. The hole table re...
last time when i debug our application who is written in mvc
i make a break-point on routing in globals.ascx.cs
i see that when my breakpoint goes to right routing. the page show in the browser but my breakpoint check all other routing who is written down in the globals.ascx.
after it when i refresh the browser routing is work but bre...
I found a bunch of possible duplicates around this but none really seemed to be having the same problem I'm having.
I'm getting a DuplicateKeyException: Cannot add an entity with a key that is already in use. Here's my SqlProductsRepository:
public class SqlProductsRepository : IProductsRepository
{
private Table<Product> productsT...
I have a strongly typed view called News with a calendar control. I have defined the calendar's selectionchanged handler as follows:
<script runat="server">
void OnCalendarSelectionChanged(Object sender, EventArgs e)
{
var ndt = new Nullable<DateTime>(Calendar1.SelectedDate);
Html.RenderAction(...
I have a controller called "Categories" and you are allowed to type a few letters and get a filtered list back.
Fairly standard stuff. However, I'm combining the result set with paging and have run into a snag.
When you first come into the page I have all categories listed. When you type into the text box you get a filtered list but ...
I've looked at most of the ModelBinding examples but can't seem to glean what I'm looking for.
I'd like:
<%= Html.TextBox("User.FirstName") %>
<%= Html.TextBox("User.LastName") %>
to bind to this method on post
public ActionResult Index(UserInputModel input) {}
where UserInputModel is
public class UserInputModel {
public stri...
Hi,
I trying to return the same model back to the view that edited the model. Making it sort of like Word or something with ctrl+s functionality for saving the mode. This works fine though the model that is returned to the view contains a bunch of nulls for some stupid reason. Is it because things were not serialized properly when the c...
I have a web server that has existing pages in it that are created with basic static HTML. I want to leave them alone, but augment the site with some ASP.NET MVC pages. I want these pages to be reachable via the MVC URL routing mechanism. But, ideally, I want to preserve the old static pages URLs without having to bring all those stat...
I need to get to a certain file in my ASP.NET MVC project. Have two folders in my same Project, let's call them Main and Reference.
From my Main, I am calling a class from my Reference.csproj file. From there, I need to get to my TargetFile, which also lives in the Reference folder.
When I use AppDomain.CurrentDomain.BaseDirectory i ge...