CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 28 Aug 2025 22:54:24 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080328001104
location: https://web.archive.org/web/20080328001104/https://www.daniweb.com/code/csharp.html
server-timing: captures_list;dur=0.516262, exclusion.robots;dur=0.019373, exclusion.robots.policy;dur=0.008941, esindex;dur=0.010660, cdx.remote;dur=54.178139, LoadShardBlock;dur=802.326929, PetaboxLoader3.datanode;dur=196.756013, PetaboxLoader3.resolve;dur=544.707999
x-app-server: wwwb-app212
x-ts: 302
x-tr: 882
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app212; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 28 Aug 2025 22:54:25 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Fri, 28 Mar 2008 00:11:03 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastactivity=0; expires=Sat, 28-Mar-2009 00:11:03 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 28 Mar 2008 00:11:04 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 09 Jul 2005 08:34:05 GMT", ; rel="prev memento"; datetime="Thu, 06 Mar 2008 17:18:35 GMT", ; rel="memento"; datetime="Fri, 28 Mar 2008 00:11:04 GMT", ; rel="next memento"; datetime="Mon, 14 Apr 2008 22:24:46 GMT", ; rel="last memento"; datetime="Wed, 26 Aug 2009 08:45:18 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_2_20080327213433_crawl101-c/51_2_20080328001008_crawl104.arc.gz
server-timing: captures_list;dur=0.734976, exclusion.robots;dur=0.023553, exclusion.robots.policy;dur=0.009900, esindex;dur=0.014104, cdx.remote;dur=66.424126, LoadShardBlock;dur=303.149527, PetaboxLoader3.datanode;dur=451.931663, PetaboxLoader3.resolve;dur=204.564858, load_resource;dur=376.967466
x-app-server: wwwb-app212
x-ts: 200
x-tr: 830
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
csharp Code Snippets
csharp Syntax
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 301,635 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,112 IT professionals currently interacting right now! If you are in the IT industry or are just a technology enthusiast, you might find just what you're looking for in DaniWeb. Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Modernize Legacy Data with Sybase
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) (View Snippet)
Enables creating substring arrays from strings seperated by character sets . (View Snippet)
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. (View Snippet)
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... (View Snippet)
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... (View Snippet)
Easy way to showing messageboxes in asp.net using c# (View Snippet)
Query your datatable like sql's "select distinct" statement (View Snippet)
Set page's scroll position programmatically according to server side processing (View Snippet)
Enables DataView to DataTable conversion (View Snippet)
SelectTopFrom method gets the top rows from dataview or datatable (View Snippet)
