mvc (11,415)


Paging a collection with LINQ

Paging a collection with LINQ

How do you page through a collection in LINQ given that you have a startIndex and a count ?…


ASP.NET built in user profile vs. old stile user class/tables

I am looking for guidance regarding the best practice around the use of the Profile feature in ASP.NET. How do you decide what should be kept in the built-in user Profile, or if you should create you…


c# - CSV File Imports in.Net

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, argument…


c# - How to RedirectToAction in ASP.NET MVC without losing request data

Using ASP.NET MVC there are situations(such as form submission) that may require a RedirectToAction.One such situation is when you encounter validation errors after a form submission and need to redir…


asp.net - Are Multiple DataContext classes ever appropriate?

In order to fully use LinqToSql in an ASP.net 3.5 application, it is necessary to create DataContext classes(which is usually done using the designer in VS 2008). From the UI perspective, the DataCo…


design patterns - What are MVP and MVC and what is the difference?

Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted. When…


c# - Developing for ASP.NET-MVC without Visual Studio

Instead of writing my ASP.NET C# applications in Visual Studio, I used my favorite text editor UltraEdit32. Is there anyway I can implement MVC without the use of VS?…


c# - Setting Objects to Null/Nothing after use in.NET

Should you set all the objects to null(Nothing in VB.NET) once you have finished with them? I understand that in.NET it is essential to dispose of any instances of objects that implement the IDisposab…



c# - Absolute path back to web-relative path

If I have managed to locate and verify the existence of a file using Server.MapPath and I now want to send the user directly to that file, what is the fastest way to convert that absolute path back in…


Multiple languages in an ASP.NET MVC application?

What is the best way to support multiple languages for the interface in an ASP.NET MVC application? I've seen people use resource files for other applications. Is this still the best way?…




net asp example how core with web from controller using