I'm using webhost4life shared hosting right now. They have a 99.99% up-time guarantee, but it is definitely not.
Their support has been good when I do contact them, but it's just not stable. The site will just go down at random times for 5-10 minutes at a time.
I know I'm on shared hosting, but I was hoping it would be more stable than...
I am using MVC RC2.
I have Two tables
1)Product (PID, PName, CIDfk);
2)Category(CID, CName);
So i query like these
var Product = from p in dc.Product
from C in dc.Category
where p.CIDfk == c.CID
select new { ProductName = p.PName, ProductCategory = c.CName };
return ...
I'd like to supply instance of logged User (or null if nobody logged yet) for all views in my MVC application. I've already succesfully implemented my own ControllerActionInvoker class which overrides InvokeAction and supplies logged user instance in ViewData (controllerContext.Controller.ViewData["LoggedUser"] = xxx). The problem is tha...
I want to be able to map a route using a URL that doesn't conform to the {controller}/{action}/{id} format. The mapping looks like:
routes.CreateArea("Root", "MyApp.Web.Controllers",
routes.MapRoute("Category-List", "Category/{category}",
new { controller = "Category", action = "List" }),
routes.MapRoute("Default", "{co...
I've got an ADO.NET Entity Framework class called Node in a WPF project. I want to use it in a different ASP.NET MVC project within the same solution.
My Node controller:
Public Class NodeController
Inherits System.Web.Mvc.Controller
Function Display(ByVal id As Guid) As ActionResult
Dim db As New WpfApplication1.Mod...
If I have a Lucene query string
"field1:value1 myField:aValue"
Is there a way to let Lucene parse this so I can get term queries?
I ultimately want to be able to get the field names and their values back to my viewdata so I can fill them in my textboxes on post back.
...
I have an application that gets rolled out in multiple countries. There will be a setting in the web.config file, that defines the country.
The country will not be in the URL.
Some of the the views change depending on the country.
My first attempt is to use a folder inside the views folder that contains views, if they differ from the d...
Hi,
Anyone know of good articles for setting up a new project with git and asp.net mvc?
Just wondering what to include and ignore and what to do about deployment.
Cheers
Trev
...
Hello,
Sorry if this as already been asked.
I am currently working on a small feature and am trying to implement the ASP.NET Mvc framework into my current Web Forms web application. I have been following the Professional ASP.NET 3.5 Mvc Chapter 13 pdf document that I recently found on stack**overflow** to get Web Forms and Mvc to work...
I think in C# you can create in-line RouteValueDictionary instances like this:
<%=Html.RouteLink(Model.Name, "SomeRoute", new { id = Model.Id }) %>
What's the equivalent in Visual Basic?
This works, but is quite wordy:
<%
Dim d As New RouteValueDictionary()
d.Add("id", Model.Id)
%>
<%=Html.RouteLink(Model.Name, "SomeRoute",...
I'm attempting to create an MVC application as a sub-application to my standard Asp.Net Web application. Both of these projects are inside the same solution. While the parent application appears to be going fine, I'm having trouble getting the sub-application to work. After some massaging of my two web.configs, I was able to get the Asp....
I've started using MVC reccently, and one thing that occurs to me is whether its possible for the concept of a Control to exist in MVC?
From what I see the framework allows the application to be nicely factored into Models, Views and Controllers, but I can't think of a nice way to take a "vertical slice" of that application and reuse it...
I have an ASP.NET MVC (beta) application that I'm working on, and am having trouble figuring out if I'm doing something wrong, or if my Application_Start method in Global.asax.cs is in fact not firing when I try to debug the application.
I put a breakpoint on a line in my Application_Start method, and am expecting that when I attempt to...
General Info:
ASP.NET MVC app
using ADO.NET Entity Framework
SQL Server 2005
I have a few tables that more or less have a hierarchical structure of mostly one-to-many relationships. Most if not all of them have a Last Modified column and my question is simply how best to go about making sure that this column is updated properly throu...
How do I return .html files or .xml files that are in folders in the view? I'm using jquery which request a static Html file via ajax and insert the results into a div and it keeps giving a 404 error any idea?
Thanks
...
The 'RenderPartial()' method in ASP.NET MVC offeres a very low level of functionality. It does not provide, nor attempt to provide a true 'sub-controller' model *.
I have an increasing number of controls being rendered via 'RenderPartial()'. They fall into 3 main categories :
1) Controls that are direct
descendants of a specific ...
To see my problem in action, visit www.apoads.com and hover over the "Local Businesses" menu item. It's a series of nested unordered lists generated from a db call. Go ahead and click on a few of the items underneath "Local Businesses", you'll see that most of the categories are empty (the site is very new).
Problem:
I only want to sho...
I have 3 days to learn the basics of ASP.NET MVC and create a very small PoC web application with it.
What are currently the best online resources for:
Learning the basics in a tutorial-like way
Reference material regarding ASP.NET MVC
Best practices regarding the use of ASP.NET MVC
I am not looking for general info about the MVC p...
I'm passing IList<Post> to View(posts).
Post is a linqToSql generated model class.
Post has an FK relation to the Category table by Id.
When I'm iterating over IList<Post> inside my View and trying to access post.Category.Title I'm receiving an error:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'D...
OK so im trying to create a settings class to store certain strings that i need to access throughout the system. I have created a globalSettings.cs with the code below:
public class GlobalSettings
{
private readonly Hashtable myHT;
public GlobalSettings()
{
//Hashtable used to store global strings
myHT = new...