برچسب‌ها » ASP .NET MVC

Cyber Security References

Starting a new web based project? This is a reference of useful security related links and tools. Mostly web focused generally related to technologies I happen to be working with. 269 واژهٔ دیگر

Technology

RedirectResult in ActionFilterAttribute in MVC

ActionFilterAttribute:
Below Response.Redirect(«URL») doesn’t kill the process execution for redirection instead it will be redirecting after executing mentioned action method
filtercontext.Context.Result = Response.Redirect(«URL»);

Instead Replace Result on the context with a RedirectResult. 25 واژهٔ دیگر

ASP.Net / MVC

Maximum request length exceeded.

in your .config

<configuration>
    <system.web>
        <httpRuntime maxRequestLength="1048576" />
    </system.web>
</configuration>

— For IIS7 and higher than, you furthermore might got to add the lines below: … 18 واژهٔ دیگر

Asp.net Core

Why choose ASP.NET Core?

Millions of developers have used (and continue to use) ASP.NET 4.x to create web apps. ASP.NET Core is a redesign of ASP.NET 4.x, with architectural changes that result in a leaner, more modular framework. 87 واژهٔ دیگر

.NET

Select random questions from db

Bài dưới gợi ý một số cách lấy random câu hỏi từ csdl

Cú pháp với cơ sở dữ liệu MySQL:

SELECT column FROM table
ORDER BY RAND()
LIMIT 1… 85 واژهٔ دیگر
ASP.NET MVC

Variable number of routes in ASP.Net MVC

We all know about default routing mechanism of ASP.Net MVC that is how routing is works. I would call below routing mechanism as static routing. In this routing, our URL pattern is fixed. 201 واژهٔ دیگر

Software

How to implement Structure Map in Asp.net MVC application?

Recently while working on one of client web based project, I got a chance to explore the structure map, so I have created small note on this topic… 591 واژهٔ دیگر

Asp.net MVC