Tagged: mvc

0

Handle the custom exception in ASP.NET MVC

Introduction The ASP.NET exception is not user friendly, so we should create our custom exception handler, but for some situation, we maybe didn’t handle the error and user will see the ASP.NET build error. For...

3,789 total views, 18 views today

0

Dynamic to generate menu items with MVCSiteMapProvider

Introduction The MVCSiteMapProvider is powerful and can generate the site map menu from xml, but sometime you may want to dynamic to generate the menu by user access rights, in this time we can...

5,030 total views, 6 views today

0

How to create and download file with Ajax in ASP.NET MVC

Introduction When you use the Ajax call in ASP.NET MVC, you just can return a JSON object but not a file, if you want to do that, you need to create and save the file in server and return it’s path to Ajax, after that, you can call a redirect link for download the file, because this is a temp file, so you should need to delete it after download. 3,077 total views, 12 views today

3,077 total views, 12 views today