Browse by Tags

All Tags » Web Form (RSS)

Centralizing SqlDataSource Events by imran_ku07

Introduction: I was working with an old legacy web-form application. This web-form includes a good amount of physical web-form pages and each web-form uses SqlDataSource control heavily. I was required to do some things with all SqlDataSource controls...
Filed under: ,

Page Instrumentation in ASP.NET 4.5 by imran_ku07

.code{ background-color: #EEEEEE; } Introduction: ASP.NET 4.5 include a hidden gem called Page Instrumentation , very few people aware of this gem. You can use page instrumentation in ASP.NET 4.5 WebForm and MVC 5 or 4(assuming it targets 4.5). It allows...

Invalid Html Response and JS Errors when you open your Application in Visual Studio 2013 by imran_ku07

I was working on an application which uses Telerik controls. The application was working fine for a while. Suddenly, the application stopped working. I mean lot of my application pages becoming very very ugly . I found JavaScript errors on every Browser...

Using Response.Redirect Effectively by imran_ku07

.code{ background-color: #EEEEEE; } Introduction: I was reviewing an ASP.NET Web Form application which has some scalability issues. Means, the application was becoming slow when the traffic on the site increases. When I check the application logs, I...

Localizing Default Error Messages in ASP.NET MVC and WebForm by imran_ku07

Introduction: System.ComponentModel.DataAnnotations validation attributes (like RequiredAttribute ) allows us to localize error messages using ErrorMessageResourceName and ErrorMessageResourceType . But some error messages cannot be localized using these...

Using Classic ASP, PHP and WebForm Pages in ASP.NET MVC Views by imran_ku07

Introduction: The ASP.NET MVC framework is becoming more and more popular every day. With ASP.NET MVC 3(or upcoming ASP.NET MVC 4), you can build rich modern web applications. If you are developing an application in ASP.NET MVC then sometimes you may...

Persisting Session Between Different Browser Instances by imran_ku07

Introduction: By default inproc session's identifier cookie is saved in browser memory. This cookie is known as non persistent cookie identifier. This simply means that if the user closes his browser then the cookie is immediately removed. On the other...
Filed under: , , ,

Globally Handling Request Validation In ASP.NET MVC by imran_ku07

Introduction: Cross Site Scripting(XSS) and Cross-Site Request Forgery (CSRF) attacks are one of dangerous attacks on web. They are among the most famous security issues affecting web applications. OWASP regards XSS is the number one security issue on...
Filed under: , , ,

Server Controls in ASP.NET MVC without ViewState by imran_ku07

Introduction : ASP.NET Web Forms provides a development environment just like GUI or windows application and try to hide statelessness nature of HTTP protocol. For accomplishing this target, Web Forms uses ViewState (a hidden field) to remove the gap...
Filed under: , , ,
More Posts