Today I come across an application crash due to version mismatch. The application executable was compiled using version 1.0.x.x, and we were using 6.2.x.x. Due to this version mismatch application was crashing. Unfortunately we don’t have the source code of this application with us. Later I got one solution using bindingRedirect. This configuration element will [...]
Posts Tagged: ASP.Net
How to send email messages with embedded images
While creating email messages with HTML content, normally the images are displayed with IMG tag, where the SRC attribute pointing to an image, which is hosted in the web server. Most email clients will not display the images, which is downloading from the web. Instead of pointing to web URL, you can embed image in [...]
Multiple browser tabs and ASP.Net session
If you are using Session in ASP.Net for storing some user information, most of the modern browsers may create problem for you. Because if you open the asp.net application in same browser, but different tab, both of these tabs shares the session value. Two solutions are available for this problem. Using Cookieless SessionIDs – By [...]
How to create controls dynamically in asp.net and retrieve values from it
Sometimes you may require to create controls dynamically in asp.net. Because of asp.net page life cycle, you may loss the created controls on next post back(ASP.Net framework recreate the page on postback). You can resolve this issue by overriding LoadViewState() and SaveViewState() methods. LoadViewState() method restores view-state information from a previous page request that was [...]
Extract to User Control feature in Visual Studio 2012
The Visual Studio 2012 comes with a nice feature allows web developers to refactor aspx markup into user controls, called Extract to User Control, this feature is available in context menu. To use this feature, simply highlight the bits and pieces to extract and then right-click and click Extract to User Control. Which will display [...]
Web application testing using WatiN and C#
Today I got a chance to explore web application testing with WatiN library. You can download WatiN from website. Or you can install via NuGet, using following command. I am using VS Express 2012 for Web, for testing my web application. I am testing a Login page, where I got two textboxes for username and [...]