Archives / 2007 / May
  • Script#: Past, Present, Future...

    A new build of Script# is now available, complete with full support for creating Microsoft ASP.NET AJAX components, controls and behaviors... this post includes a video demonstration of building a script watermark behavior, and gives a chance to reflect on the project exactly a year since its initial release...

  • File Upload & Compression in ASP.Net

    In this article Bean Software look at how to upload a file to the web server and compress it using the compression methods provided in .Net. They use the open source compression method to compress to a .gz file. The method is available in System.IO.Compression.

  • Expression Studio on MSDN today - not for all subscribers !! :-(

    Update 1: This story now start to be like a bad joke. Scott Guthrie and Tim Heuer answers sounds like an Abbott and Costello routine, yes you need to be MSDN Premium subscriber, but yes I am, no you aren't, we tell you, you need to be an MSDN Premium subscriber, etc... !! Come on, can we get some "intelligent" answers ?

  • XML Debug Type Visualizer

    Derek Smyth has created a XML debugger visualizer for Visual Studio 2005 which you can download here. Just unzip and place the DLL in 'C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\Visualizers'. You can view the XML as text and as a DOM like tree as well as run XPath expressions as a filter mechanism.

  • Top 15 free SQL Injection Scanners

    While the adoption of web applications for conducting online business has enabled companies to connect seamlessly with their customers, it has also exposed a number of security concerns stemming from improper coding. Vulnerabilities in web applications allow hackers to gain direct and public access to sensitive information (e.g. personal data, login credentials).

  • IE6 & IE7 on same machine!!

    There is a situation where you need both IE versions on the same machine to test your web application. Now you can still run IE6 even if you have IE7 installed on your computer. Just download the file attached and extract it.

  • Bitjuice: Ajax bitmap API

    Bitjuice is a little library to do bitmap/raster graphics in the browser. The aim is to make it easy to write “Ajax graphics” - graphics you can update real-time in the browser. And at the same time, maintain compatibility with all major browsers and old browsers too. That’s why it doesn’t use any new-fangled SVG/Canvas APIs. Just a plain-old HTML table, where we manipulate the CSS cell background style.

  • Working with Transactions

    A transaction is a group of operations combined into a logical unit of work that is either guaranteed to be executed as a whole or rolled back. Transactions help the database in satisfying all the ACID (Atomic, Consistent, Isolated, and Durable). Transaction processing is an indispensible part of ADO.NET. It guarantees that a block of statements will either be executed in its entirety or rolled back,( i.e., none of the statements will be executed). Transaction processing has improved a lot in ADO.NET 2.0. This article discusses how we can work with transactions in both ADO.NET 1.1 and 2.0 versions.

  • Refresh module

    Most of you are familiar with the feature of all web-browsers that when you press the F5 button, the content of a page is refreshed. After the F5 button is pressed, the browser repeats the previous request to the page. Nothing wrong will actually happen when the previous request is made by the GET method. However, problems appear when the last request is made by the POST method. Let's consider an example where a user is transferring money to a shop to pay for some goods. Having completed this operation, the user refreshes the page and as a result the server code is executed once again with the same data. Thus, the user may accidentally pay twice.

  • Autolist

    This small web application has following features:

    1. Auto suggest list box [AutoList.js]
    2. Auto select text.
    3. Scrolling list item either one by one or on the basis of defined page size.
    4. Multicolor list item.
    5. Getting result in the xml form directly from SQL Server using ‘FOR XML’ and to process it to populate list box or to send back to client.
    6. Client side population of list box from xml.
    7. Getting result in xml form by using callback function (AJAX).
    8. Client side XML transformation using XSLT.
    9. Client side wait/process message while processing data [ProcessMonitor.js].
    Read more...  

  • Role of HTTP Modules in .NET Security

    Today, one of the important goals is to provide high security to the distributed Web Applications. The security is designed throughout the .NET Framework like Code Access Security, ASP.NET Integrated Security and Cryptography, which can be optimally used to develop Secure Applications.

    However, in scenarios where one has to perform Authentication or Authorization by the database and give appropriate privileges to the users (or) the permissions have to be provided at the runtime for specific operations (or) in scenarios like where no web browsers are used , it becomes crucial to develop Custom Security.
    The ASP.NET Framework has defined set of Http Modules which takes care of the basic Authentication and Authorization mechanisms. The Custom Security (Custom Authentication or Authorization) can be performed in Forms Authentication or Windows Authentication by coding in the Global.asax file, which is not a reliable (or) reusable solution. The .NET Framework gives the flexibility to develop custom Http Modules and plug them into the ASP.NET Application,hence enabling to develop highly scalable, reusable and reliable .NET Security Components.

    This article explains in detail about the HTTP Modules and the steps to create custom Http Module with an example. The article also gives a brief how to create a custom Http Module in developing a custom database authorization module.

  • WWF and WPF E-Learning for free!

    Here's your chance to learn about WPF and WWF free-of-charge:

    Collection 5134: Developing Rich Experiences with Microsoft® .NET Framework 3.0 and Visual Studio® 2005

    This collection of 3 2-hour premium clinics teaches about the new capabilities provided by the .NET Framework 3.0. These clinics are for experienced Developers and Software Architects who are looking to adopt Microsoft's next generation technology within their solutions.
    Topics covered within the collection include:

    • Windows Presentation Foundation
    • Windows Workflow Foundation
    • Windows Communication Foundation


  • SQL Server 2005 Paging Results

    With SQL Server 2005 it is now a lot easier to use paged queries than in previous versions. I will be using NorthWind db (mostly) so you can also use the examples I have provided. I will keep the examples simple; anything complex will only cause confusion. I will start with "traditional" methods such as SELECT, TOP, and then move onto the specific SQL Server 2005 paging examples.

  • First Steps with ADO.NET Synchronisation Services

    ADO.NET Synchronisation Services is a technology for helping with those online/offline applications where you need to get data down to be stored on a laptop to enable mobile working (device support isn't something that it's in the first version AFAIK).

  • Ireland Microsoft Conference - June 7th - Dublin

    With 18 sessions from amazing speakers, this is one event that you will not want to miss! They are covering everything from the new Silverlight and Expression products to WCF, Biztalk, SQL Server, Longhorn Server, Security, mobile dev, Infocard, game development with XNA. Have a look at the list below to get an idea of the sessions you will get to choose from.

    visit to know more!

  • Microsoft ASP.NET 2.0 Membership API Extended

    Microsoft ASP.NET 2.0 shipped with a complete membership API that allows developers to manage the application’s users and their roles. However, this API best suits small to medium Web sites due to their limitation in expressing a detailed member record.

  • Examine and Resolve XHTML Compliance Issues

    By default, Visual Studio 2005 generates and validates XHTML-compliant markup. This helps you build Web applications that are standards compliant and helps minimize issues with browser-specific rendering. Visual Studio .NET 2003 did not generate XHTML-compliant markup, so you might see validation and rendering issues with pages created in Visual Studio .NET 2003.

  • Get All URLs on a Page

    In this article, I show a class that can be used to find and display all of the urls on a web page. What for you may ask? Well, in my experience as a web developer, I have found a class like this to be very useful. Sometimes, you may want to use this class a a basis for a more complex application that crawls your site checking for bad or broken links. In other cases, you may simply want to check an individual page to make sure your links are formatted correctly, or don't contain any obsolete pages. You could also easily change this class to look for other items within your page, like specific text or tags. Who knows, this may be the start of a specialized spider that crawls sites on the internet looking for something specific.

  • Better Entities with Nullable Types

    There is an impedance mismatch between objects and normalized relational databases. Everyone knows this. Almost everyone has tried to fix it—think object-oriented databases—and some people have gotten famous off of proposed solutions. (Deservedly so or not.) Well, truth be told Microsoft is working on an ADO.NET Entity Framework to address this issue. The issue phrased using my words is getting data from databases into objects makes for better programming but is time consuming, tedious, and not altogether convenient. From what I know of LINQ, LINQ for Data, and the Entity Framework, they may really be on to something.

  • Consuming Web Service Using ASP.NET AJAX

    ASP.NET AJAX provides the power of asynchronous JavaScript and XML to your web sites. AJAX makes web pages more responsive and interactive by reducing page refreshes or postbacks. It harnesses the power of client-side JavaScript and the XML HTTP object to provide these features.

  • Maintaining Fixed Headers in GridView

    One of the commonly asked question by developers is how to maintain headers of GridView in a fixed position. You must have observed that in Excel you can freeze top cells of your spread sheet. When you scroll down the headers are always visible making your sheet more readable. The same effect is often needed in GridView control especially if you are displaying many records at a time.

  • What ASP.NET Developers Should Know About JavaScript

    This article approaches JavaScript from the perspective of an ASP.NET developer who is comfortable with the paradigms and patterns of either C# or Visual Basic. The article doesn't look at how to use JavaScript from ASP.NET exactly, but it does look at why JavaScript is so different from the two languages we commonly use with the .NET CLR. The article assumes you already know that JavaScript is a loosely-typed language (because you don't have to declare the type of data you store in a variable), and that the syntax is similar to the C family of languages (with charming curly braces and stunningly beautiful semi-colons).