G S Modi
Gurpreet Singh Modi

Quotable Quote

"Readers are plentiful; thinkers are rare."
- Harriet Martineau


Linkedin

Blog

Latest posts from my blog - the gsm orbital

December 01, 2008

ASP.Net Login Controls: Custom Membership Provider for SQL Server

ASP.Net provides excellent controls for managing user logins in your web application. But some applications require custom database fields and functionality for their user tables. The ASP.NET login controls can be used in these applications by writing a custom membership provider.

This msdn tutorial guides you on the implementation steps required for implementing a membership provider. An ODBC based sa...

November 12, 2008

ASP.NET: Recursively Writing all Form Elements to a Cookie

There are instances when you need to write all your form elements on a page to a cookie. Here's a simple recursive function, which will write all form values to cookies with the form ids as the cookie keys:

   Private Sub AddToCookie(ByVal Parent)   'Add form values to cookies
For Each c As Control In Parent.Controls
If (TypeOf c Is TextBox) Then
Response.Cookies("Order")(c.ID) = CType(c, TextBox).Text
ElseIf (c.ID = "Prod...

October 17, 2008

Microsoft's Web Platform Installers

Here's something really exciting for web developers. Microsoft has come up with a web platform installer for free. It allows you to install IIS 7.0, Visual Web Developer 2008 Express, SQL Server 2008 Express and the .NET Framework. No more painful configuration settings required. The installer automatically configures all these components for a smooth experience and allows you to start working instantly.

Apart from the platfor...

Visit Blog » the gsm orbital