Member Avatar

Placing ComboxBox in DataGrid Cell is a task usually found in Invoicing application. Here is my version of same.

Member Avatar
+0 forum 1
Member Avatar

Checking whether value is entered into a control and preventing focus to go out if no value is entered.

Member Avatar
+0 forum 1
Member Avatar

Serialization is the process of saving the state of an object into persistant medium. BinaryFormatter class is used for serializing and deserializing an object. HybridDictionary is optimized for key-based item retrieval from both small and large collections.

Member Avatar
+0 forum 1
Member Avatar

EventViewer can be accessed by Selecting Event Viewer from Administrative Tools of Control Panel. This code snippet will add an Entry called Shalvin inside the Application section.

+0 forum 0
Member Avatar

Uploading a file to a specific folder inside the virtual directory.

+0 forum 0
Member Avatar

aspnet_regsql is a tool user for installing membership, role and personalization tables to Sql Server. 1. Porting all tables to Sql Server 2. Porting only membership tables to Sql Server 3. Removing all membership and role tables 4. Removing Personalization tables. I am be posting a detailed blog on Membership in shalvinpd.blogspot.com soon. Happy programming

+0 forum 0
Member Avatar

Web site Administration Tool is accessible only from the hosting server. Many times programmers won't have direct access to the the hosting server. So knowledge of ASP.Net Membership classes is an added advantage in creating an administrative module for the site. In this code snippet we will take up: 1. Listing all roles 2. Creating a role 3. Listing all users 4. Deleting a user 5. Listing Number of users online

+0 forum 0
Member Avatar

CAS is the programatically means by which you secure the resouce of a system like file system, printer, registry, etc. in contrast to Role Base Security (RBS)

+0 forum 0
Member Avatar

Though .Net classes are vast and versatile at time you will have to resort to Win32 API calls for accomplishing certain tasks. The following code shows a simple example of invoking a Win32 api. The best way to use Win32 apis is to encapsulate it in a class module. The namespace for COM interop is System.Runtime.InteropServices. The method name should have DllImport attribute specifying the name of the dll. Here the dll is user32. Other dlls are Gdi and Kernel.

+0 forum 0
Member Avatar

TreeView was one of my favourite control in COM. It is well suited for creating Chart of Accounts, Hierarchical data and the like. Though there is a tree view in .Net I find it less flexible in comparison to COM TreeView. The issue with using COM TreeView in C# is C# does not support optional parameters. Type.Missing it the way out.

+0 forum 0

The End.