Global ASAX – get the server name
Can anybody tell me if there is a way for me to get the domain name of my site in the Application_Start event in the global.asax?
Can anybody tell me if there is a way for me to get the domain name of my site in the Application_Start event in the global.asax?
I am new to ASP.Net MVC and facing a problem. Here it is.
I know there is a ListBoxFor extension method among the ASP.NET MVC Html helper extension methods, but I always thought that a checkbox list is more user-friendly than a list box.
I just upgraded to Visual Studio 2010 and MVC 2.0 and I noticed the Web.config has two additional files attached to it? Are these files used to specify debug and release specific settings, so you don’t clutter up the main Web.config?
I am working on a ASP.NET MVC web site which has a form that allows for the upload of files using the multipart/form data enctype option on the form tag like so
I’m working on a MVC3 web application. I want a list of categories shown when editing a blo from whe applications managements system. In my viewmodel i’ve got the following property defined for a list of selectlistitems for categories.
I have a Web Application project in VS 2012 and when I use the web publishing tool it builds successfully but doesn’t copy any files to the publish target (File System in this case).
I’m wanting my WEB API method to return an XML object back to the calling application. Currently it’s just returning the XML as a string object. Is this a no no? If so how do you tell the webapi get method that it’s returning an object of type XML?
My main issue is that I want to display an custom error page when an uploaded file exceeds allowed size (maxRequestLength in web.config).
I’m currently developing a site using ASP.Net MVC3 with Razor. Inside the “View/Shared” folder, I want to add a subfolder called “Partials” where I can place all of my partial views (for the sake of organizing the site better.