Welcome To Snipplr


Everyone's Recent Snippets Tagged Net



.net 3.0+, To create stability in your code, you must check all inputs into a method to make sure they are valid . Often people overlook this step because of laziness, or because they aren't convinced that exceptions and assertions are actually in pl...
0 1674 posted 14 years ago by bryanlyman
0 1069 posted 14 years ago by cadnet
0 1693 posted 15 years ago by liouys
0 1331 posted 15 years ago by Shamaoke
The filter only needs to know which requests need to be returned as JSONP, doesn't care how. Modify "OnBeginRequest" accordinly. If original .asmx doesn't return JSON, extend it like example shows. JSONP only works for GET requests, so don't forget...
0 1529 posted 15 years ago by FMalk
This can be used to help load, play and monitor playback of external video.
1 1792 posted 15 years ago by adrianparr
This is an extension method for splitting strings with a regular expression.
0 1577 posted 15 years ago by gyurisc
isNumber string extension method for testing strings.
2 2266 posted 15 years ago by gyurisc
Hay dos maneras, la mejor es usar el script manager, tambien ver la diferencia entre http://forums.asp.net/t/902895.aspx
0 2824 posted 15 years ago by ramirocalero
create aspnet db in sql from .net tools
1 1836 posted 15 years ago by hairajeshk
1 1352 posted 15 years ago by housecor
2 1383 posted 15 years ago by stewshack
1 1551 posted 15 years ago by mpcircuitry
I removed several properties from my custom Profile class, and wanted to clean out the data from the aspnet\_Profile table. This code will remove all unwanted data from the PropertyNames and PropertyValuesString columns of aspnet\_Profile. Note this...
2 1693 posted 15 years ago by mmfusion
1 1360 posted 15 years ago by imstand
WPF unleashed pg 303
0 1172 posted 15 years ago by ethansimmons
This code will execute a postback.
0 1120 posted 15 years ago by blackf0rk
.net 2.0+ Generic classes make code size much smaller and casting objects (boxing) a cinch. However, currently there are some unsupported IDE options when trying to cast objects to and from generic objects that use mixed object types (inherited from...
0 1657 posted 15 years ago by bryanlyman
0 1579 posted 15 years ago by ptruta
Con este código: Creas un archivo txt donde se almacenaran los nombres de archivos encontrados (temporal.txt). En caso de existir la unidad J. la elimina sin pedir confirmación (/Y). Crea la conexión J: al servidor requerido, con usuario y passwor...
0 1546 posted 15 years ago by lsaez
`w_Dgv` is the name of the DataGridView control.
0 2169 posted 15 years ago by pckujawa
Read the [best article on the subject - Exploring Secrets of Persistent Application Settings](http://www.devx.com/dotnet/Article/33944/1954) - and then the following links if desired. (Note, I recommend reading [this forum post about settings not bei...
0 2736 posted 16 years ago by pckujawa
Requires TidyATL library for .NET - http://www.devx.com/dotnet/Article/20505/1763/page/2
0 2386 posted 16 years ago by tclancy
Snippet out of my C# KNN implementation. Uses leave-one-out cross validation tuning with our given K to find our nearest neighbors.
0 1523 posted 16 years ago by ahawker
If you wish to set an ASyncPostBackTrigger in ScriptManager for AJAX.NET, using ASyncPostBackTrigger="xxx" causes Firefox, Chrome, Safari, etc. to timeout on partial page postback, using this javascript to set the ASyncPostBackTrigger (instead of the...
0 1720 posted 16 years ago by cardiffblogger
This class uses static methods to create html controls on the fly in .NET
2 1757 posted 16 years ago by mpcircuitry