Welcome To Snipplr
Everyone's Recent C# Snippets Tagged c#
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
this program view some of OS information try it you will not lose thing.
1
481
posted 10 years ago by PalCoder
This example is for an inline table value function with one string parameter
t1 is of type YourDataContext and t2 is of type string(hence the name of the mole method)
0
1057
posted 11 years ago by kirstencris
Draw a border around the form.
Add to the paint event handler.
0
881
posted 11 years ago by thomas-h
Shows how to use WebClient class to retrieve HTML from an URL and then to use HtmlAgilityPack to parse it.
1
1188
posted 11 years ago by denakitan
this handy function gets all child tabs for the tab id you pass in, only those that are meant to appear in the menu.
0
731
posted 11 years ago by box86rowh
Sort a file that contains integers between 1 and thousand. The output file should contain the entries like (n-times 1, followed by n-times 2 and so on): 1111222333555... But - you are not allowed to load all entries into memory at once. How to solve...
0
535
posted 11 years ago by awsomedevsigner
Utility class that abstracts the creation of a Excel spreadsheet through Interop, and helps on adding and format its contents.
1
1299
posted 11 years ago by denakitan
Example of the usage of Directory IO class and the parsing of strings to DateTime.
1
758
posted 11 years ago by denakitan
Snippet to illustrate how to bind a ComboBox to a Dictionary.
0
1060
posted 11 years ago by denakitan
This code allows quick access to the dnn state/region listings..
0
657
posted 11 years ago by box86rowh
A small snippet to parse out proxies from http://hidemyass.com/proxy-list/
0
782
posted 11 years ago by icinNet
How do I prevent previously submitted form data from being reinserted into the database when the user presses the browser's Refresh button?
Although it is not possible due to unique key constraint available in tables but it is unnecessary go to othe...
0
659
posted 11 years ago by satie83
Snippet to illustrate the three actions that happen in all LINQ query operations.
0
802
posted 12 years ago by denakitan
Just call "ProcessImageAndItsThumbnail" with your newly uploaded image's URL, and it will resize it for you, and make a thumbnail as well. Just remember to set the sizes you want for these new images.
1
840
posted 12 years ago by Krummelz
Properties that can be set are found here: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/cde669f1-5714-4159-af95-f334251c8cbd.mspx?mfr=true
0
566
posted 12 years ago by jsturtevant
Overwrite LoadViewSate and SaveViewState page methods.
SaveViewState is called on initial page load and that is the place to save your negated flag to Session.
This value should be compared in LoadViewState and if the values are the same it means...
0
559
posted 12 years ago by Neven