大约有 1,811 项符合查询结果(耗时:0.0300秒) [XML]
How to force ASP.NET Web API to always return JSON?
ASP.NET Web API does content negotiation by default - will return XML or JSON or other type based on the Accept header. I don't need / want this, is there a way (like an attribute or something) to tell Web API to always return JSON?
...
ASP.NET MVC3: What is the packages.config for?
What is the asp.net MVC packages.config for?
2 Answers
2
...
DTO = ViewModel?
...Hibernate to persist my domain objects.
To keep things simple I'm using an ASP.NET MVC project as both my presentation layer, and my service layer.
...
@media media query and ASP.NET MVC razor syntax clash
I've got a large site that runs in ASP.NET MVC using the Razor view engine.
3 Answers
...
If statement in aspx page
... { %> <asp:Label ID="lblQuantity" runat="server" Text='<%# Convert.ToDouble(Eval("Quantity")).ToString("#####0") + " " + Eval("unitMsr") %>'>></asp:Label> <% }...
Get URL of ASP.Net Page in code-behind [duplicate]
I have an ASP.Net page that will be hosted on a couple different servers, and I want to get the URL of the page (or even better: the site where the page is hosted) as a string for use in the code-behind. Any ideas?
...
How do I refresh the page in ASP.NET? (Let it reload itself by code)
How do I refresh a page in ASP.NET? (Let it reload itself by code)
13 Answers
13
...
Logging errors in ASP.NET MVC
I'm currently using log4net in my ASP.NET MVC application to log exceptions. The way I'm doing this is by having all my controllers inherit from a BaseController class. In the BaseController's OnActionExecuting event, I log any exceptions that may have occurred:
...
ASP.NET: Session.SessionID changes between requests
Why does the property SessionID on the Session -object in an ASP.NET-page change between requests?
14 Answers
...
What is ModelState.IsValid valid for in ASP.NET MVC in NerdDinner?
On the NerdDinner example of Professional ASP.NET MVC 1.0 there's a method to create a new dinner as copied bellow (page 89 of the free NerdDinner version).
...