|
|
_Shortcuts
|
|
Angular
|
|
Blank Angular Controller with timer
Please Log in to see the code snippet
|
|
|
|
APIFactory
Please Log in to see the code snippet
|
|
|
|
FileReaderFactory
Please Log in to see the code snippet
|
|
|
|
File Upload Controller and Directive
Please Log in to see the code snippet
|
|
|
|
|
Bootstrap
|
|
Row with 1 column
Please Log in to see the code snippet
|
|
|
|
Row with 2 columns
Please Log in to see the code snippet
|
|
|
|
Row with 3 columns
Please Log in to see the code snippet
|
|
|
|
|
C#
|
|
Write to File Output
Please Log in to see the code snippet
|
|
|
|
WebAPI Enable CORS Attribute
Please Log in to see the code snippet
|
|
|
|
|
|
AJAX
|
|
Angular TypeScript
|
|
Post and Download pdf file
Please Log in to see the code snippet
|
|
|
|
|
JQuery AJAX
|
|
for webforms
Please Log in to see the code snippet
|
|
|
|
For MVC
Please Log in to see the code snippet
|
|
|
|
For MVC with JSON format
Please Log in to see the code snippet
|
|
|
|
For MVC, Output JSON
Please Log in to see the code snippet
|
|
|
|
For MVC with JSON Output, Simple working example
Please Log in to see the code snippet
|
|
|
|
|
Raw AJAX
|
|
AJAX Generic snippet
Please Log in to see the code snippet
|
|
|
|
|
Raw Ajax in Angular Typescript
|
|
Post and retrieve downloaded file
Please Log in to see the code snippet
|
|
|
|
|
Raw AJAX MVC
|
|
DropdownListFor example
Please Log in to see the code snippet
|
|
|
|
|
UpdatePanel
|
|
Progress Bar
Please Log in to see the code snippet
|
|
|
|
|
|
Angular
|
|
Adding objects to javascript Array
|
|
Using angular.ForEach
Please Log in to see the code snippet
|
|
|
|
|
Angular C# MVC
|
|
Working Example
Please Log in to see the code snippet
|
|
|
|
|
Angular Post to C# MVC
|
|
Sample Angular and MVC Controller
Please Log in to see the code snippet
|
|
|
|
|
Angular Post to C# Web API
|
|
Working example
Please Log in to see the code snippet
|
|
|
|
|
Angular Postman
|
|
Simple postman
Please Log in to see the code snippet
|
|
|
|
|
Angular Sort
|
|
Example
Please Log in to see the code snippet
|
|
|
|
|
Calendar
|
|
2-Month Calendar for Angular
Please Log in to see the code snippet
|
|
|
|
|
Complete Page with Upload File
|
|
Simplified Postman style
Please Log in to see the code snippet
|
|
|
|
|
Concept for query
|
|
Simulating LINQ with JS
Please Log in to see the code snippet
|
|
|
|
|
Controller
|
|
Receive Hashtable of 3 arrays from factory (Category, Film, FilmCategory) and query with fancy javascript
Please Log in to see the code snippet
|
|
|
|
Basic Controller that posts to URL
Please Log in to see the code snippet
|
|
|
|
Retrieve pdf Byte array from SSRS
Please Log in to see the code snippet
|
|
|
|
Retrieve excel Byte array from SSRS
Please Log in to see the code snippet
|
|
|
|
|
Draw circle
|
|
draw cycle circle
Please Log in to see the code snippet
|
|
|
|
|
Factory
|
|
Basic Factory that posts to URL
Please Log in to see the code snippet
|
|
|
|
|
Function to convert date
|
|
Converting datetime type comes from C# Controller
Please Log in to see the code snippet
|
|
|
|
|
Generic HTML Page
|
|
Barebone CRUD Page
Please Log in to see the code snippet
|
|
|
|
|
JSON validator
|
|
web-based JSON validator
Please Log in to see the code snippet
|
|
|
|
|
Modal Show and Hide manually
|
|
Excuted from Javascript
Please Log in to see the code snippet
|
|
|
|
|
Pagination routine
|
|
This one works
Please Log in to see the code snippet
|
|
|
|
|
Post Mix data and files
|
|
Example
Please Log in to see the code snippet
|
|
|
|
|
Simulation
|
|
Trajectory
Please Log in to see the code snippet
|
|
|
|
|
|
Apache
|
|
Apache Setup
|
|
including httpd.config
Please Log in to see the code snippet
|
|
|
|
|
|
ASPHost NS Server
|
|
Domain Registrar and Name Servers
|
|
IP Address and port / Email Setting
Please Log in to see the code snippet
|
|
|
|
|
|
Bootstrap
|
|
Modal
|
|
How to trigger Modal view
Please Log in to see the code snippet
|
|
|
|
|
|
Build Issues
|
|
Entity Framework 6
|
|
When using SProc in EF 6
Please Log in to see the code snippet
|
|
|
|
|
GeoCoding
|
|
Could not load file or assembly HRESULT: 0x80131515
Please Log in to see the code snippet
|
|
|
|
|
|
C#
|
|
Assembly
|
|
Load an assembly file
Please Log in to see the code snippet
|
|
|
|
|
Console Program reading Excel File
|
|
Sample of complete program
Please Log in to see the code snippet
|
|
|
|
|
Cool Write
|
|
Console.write s l o w l y......
Please Log in to see the code snippet
|
|
|
|
|
Date
|
|
Get Date only without time
Please Log in to see the code snippet
|
|
|
|
Conversion to and from UNIX DateTime
Please Log in to see the code snippet
|
|
|
|
|
DateDiff
|
|
Function to calculate Date difference
Please Log in to see the code snippet
|
|
|
|
|
Delegate
|
|
Sample Delegate code
Please Log in to see the code snippet
|
|
|
|
Sample Delegate on Winform
Please Log in to see the code snippet
|
|
|
|
Another Example
Please Log in to see the code snippet
|
|
|
|
Asynchronous Delegate Example
Please Log in to see the code snippet
|
|
|
|
|
Delegate and Events
|
|
Sample setup multi-thread that trigger events
Please Log in to see the code snippet
|
|
|
|
|
Design Pattern
|
|
Singleton Template
Please Log in to see the code snippet
|
|
|
|
|
Dictionary
|
|
Sample use of dictionary
Please Log in to see the code snippet
|
|
|
|
Item type
Please Log in to see the code snippet
|
|
|
|
|
Exception Error
|
|
Drilldown to get ex.Message
Please Log in to see the code snippet
|
|
|
|
|
Extensions
|
|
Phone Format extending string
Please Log in to see the code snippet
|
|
|
|
Datetime? to text
Please Log in to see the code snippet
|
|
|
|
|
Folder and subfolder enumeration
|
|
Finding strings in drill-down folders for certain file extensions
Please Log in to see the code snippet
|
|
|
|
|
Hardware reading
|
|
Using System.Management
Please Log in to see the code snippet
|
|
|
|
|
Impersonate Class
|
|
Imersonate Windows user
Please Log in to see the code snippet
|
|
|
|
|
Impersonate usage
|
|
sample use of impersonate class
Please Log in to see the code snippet
|
|
|
|
|
Inline if
|
|
Sample use of shortcut if
Please Log in to see the code snippet
|
|
|
|
|
IsDate
|
|
Function to validate Date
Please Log in to see the code snippet
|
|
|
|
|
isNum
|
|
Function to check for numeric
Please Log in to see the code snippet
|
|
|
|
|
List of Data Dictionary
|
|
Using sqlDataReader to get List<Dictionary<string,object>>
Please Log in to see the code snippet
|
|
|
|
|
Lock screen
|
|
Programmatically locks screen
Please Log in to see the code snippet
|
|
|
|
|
Mailer
|
|
A function to send email
Please Log in to see the code snippet
|
|
|
|
|
Miscellaneous snippets
|
|
Miscellaneous snippets
Please Log in to see the code snippet
|
|
|
|
|
Multithreading
|
|
Generic multithread
Please Log in to see the code snippet
|
|
|
|
Sample application coin toss
Please Log in to see the code snippet
|
|
|
|
|
Parallel Process
|
|
Complete program to invert images with parallel process
Please Log in to see the code snippet
|
|
|
|
|
Parallel.For
|
|
Parallel process example
Please Log in to see the code snippet
|
|
|
|
|
Prime method
|
|
static method to check for prime number
Please Log in to see the code snippet
|
|
|
|
|
Randomizer
|
|
Randomizer function
Please Log in to see the code snippet
|
|
|
|
|
Special Paging Program
|
|
Console
Please Log in to see the code snippet
|
|
|
|
|
Streamreader
|
|
Read Line by Line from a flat file
Please Log in to see the code snippet
|
|
|
|
|
String
|
|
Split paragraph into records and words
Please Log in to see the code snippet
|
|
|
|
String.Format example
Please Log in to see the code snippet
|
|
|
|
IndexOf nth occurrence
Please Log in to see the code snippet
|
|
|
|
|
Stringing a property collection with comma
|
|
Practical example
Please Log in to see the code snippet
|
|
|
|
|
Winform accessing WebAPI
|
|
Convert long url to shortUrl with goo.gl
Please Log in to see the code snippet
|
|
|
|
|
XML File
|
|
Reading XML file into a Dataset
Please Log in to see the code snippet
|
|
|
|
|
|
C# ADO.NET
|
|
ADO.NET DataTable
|
|
Sample code to create DataTable with ADO.NET
Please Log in to see the code snippet
|
|
|
|
|
Dataview
|
|
Create Dataview with ADO.NET
Please Log in to see the code snippet
|
|
|
|
|
MySQL
|
|
Invoking MySQL Stored Procedure
Please Log in to see the code snippet
|
|
|
|
Invoking MySQL Stored Procedure to read
Please Log in to see the code snippet
|
|
|
|
|
SProc - ADO - Generic Collection
|
|
ADO with Stored Procedure call
Please Log in to see the code snippet
|
|
|
|
|
TreeView
|
|
TreeView with ADO.NET / Dataset
Please Log in to see the code snippet
|
|
|
|
|
|
C# ASP.NET
|
|
Bulleted List
|
|
Retrieve value from each item on the list
Please Log in to see the code snippet
|
|
|
|
|
Cacheing
|
|
How to cache a page
Please Log in to see the code snippet
|
|
|
|
|
Casting
|
|
Casting a checkbox from gridvew
Please Log in to see the code snippet
|
|
|
|
|
Container
|
|
Gridview Container example
Please Log in to see the code snippet
|
|
|
|
|
Create button event
|
|
Manually create button click event
Please Log in to see the code snippet
|
|
|
|
|
Display Images
|
|
Display multiple images
Please Log in to see the code snippet
|
|
|
|
|
Dropdownlist
|
|
Populate with Generic Collection
Please Log in to see the code snippet
|
|
|
|
Add a blank in dropdown
Please Log in to see the code snippet
|
|
|
|
|
Exception Error
|
|
To display the line number
Please Log in to see the code snippet
|
|
|
|
|
Export dataset to Excel
|
|
Convert DataSet to Datagrid, and from Datagrid to Excel
Please Log in to see the code snippet
|
|
|
|
|
GAC
|
|
Location
Please Log in to see the code snippet
|
|
|
|
|
Gridview
|
|
Adding value and onchange attribute to textboxes in gridview onItemDataBound
Please Log in to see the code snippet
|
|
|
|
Flexible Gridview / datagrid
Please Log in to see the code snippet
|
|
|
|
How to delete record in a gridview
Please Log in to see the code snippet
|
|
|
|
How to update a row in Gridview
Please Log in to see the code snippet
|
|
|
|
Gridview OnRowDataBound sample
Please Log in to see the code snippet
|
|
|
|
Create textboxes in Gridview with onchange Javascript
Please Log in to see the code snippet
|
|
|
|
Dynamically add boundfield
Please Log in to see the code snippet
|
|
|
|
Capture onclick event
Please Log in to see the code snippet
|
|
|
|
onrowcommand
Please Log in to see the code snippet
|
|
|
|
Sort and Page
Please Log in to see the code snippet
|
|
|
|
Two flavors of links
Please Log in to see the code snippet
|
|
|
|
Checkboxes in gridview
Please Log in to see the code snippet
|
|
|
|
Radio button in gridview
Please Log in to see the code snippet
|
|
|
|
DataSource setup
Please Log in to see the code snippet
|
|
|
|
Date format in Boundfield
Please Log in to see the code snippet
|
|
|
|
Showing Total number of records
Please Log in to see the code snippet
|
|
|
|
Set DataSource to DataView and query the DataView
Please Log in to see the code snippet
|
|
|
|
|
Listbox - Multiple selection
|
|
Extract multiple selections from a listbox into a textbox
Please Log in to see the code snippet
|
|
|
|
Multiple selection to a string Extension conversion
Please Log in to see the code snippet
|
|
|
|
|
Mailer
|
|
sending email with .Net.Mail
Please Log in to see the code snippet
|
|
|
|
sending multiple attachments with email
Please Log in to see the code snippet
|
|
|
|
|
Master Page
|
|
Accessing Control from Master Page
Please Log in to see the code snippet
|
|
|
|
|
Max File Upload Size
|
|
To increase
Please Log in to see the code snippet
|
|
|
|
|
Page Events
|
|
Manually add page events
Please Log in to see the code snippet
|
|
|
|
|
Rendering document
|
|
Render various kind of documents
Please Log in to see the code snippet
|
|
|
|
rendering document from datagrid
Please Log in to see the code snippet
|
|
|
|
Rendering from "Image" field in db
Please Log in to see the code snippet
|
|
|
|
|
|
C# Entity Framework
|
|
Adding table in EDMX
|
|
Show link to the screenshot
Please Log in to see the code snippet
|
|
|
|
|
Basic validation
|
|
Sample usage of changing methods for db validation
Please Log in to see the code snippet
|
|
|
|
|
CRUD
|
|
Simple Create Update Delete / Get SingleorDefault
Please Log in to see the code snippet
|
|
|
|
|
Nested Add
|
|
Sample to add Hierarchy Entity
Please Log in to see the code snippet
|
|
|
|
|
Stored Procedure
|
|
Using Stored Procedure with EF
Please Log in to see the code snippet
|
|
|
|
Sample insert record with SP
Please Log in to see the code snippet
|
|
|
|
Sample retrieve records with SP
Please Log in to see the code snippet
|
|
|
|
|
Using this.Database.SQLQuery
|
|
Example of quick and dirty use of SQLQuery
Please Log in to see the code snippet
|
|
|
|
|
Using Transaction
|
|
To commit or not
Please Log in to see the code snippet
|
|
|
|
|
|
C# Graphics
|
|
Color
|
|
Convert Hex to System color
Please Log in to see the code snippet
|
|
|
|
|
Draw
|
|
Drawing a pie chart
Please Log in to see the code snippet
|
|
|
|
|
Upload and resize image
|
|
Upload photos and make thumbnails for them
Please Log in to see the code snippet
|
|
|
|
|
|
C# LINQ
|
|
Check for existence
|
|
See if the record exists using LINQ
Please Log in to see the code snippet
|
|
|
|
|
Concatenate String
|
|
Concatenate String in LINQ Select
Please Log in to see the code snippet
|
|
|
|
|
Datatable conversion
|
|
Convert LINQ anonymous type to Datatable
Please Log in to see the code snippet
|
|
|
|
|
Delete multiple records
|
|
Sample code to delete multiple records with LINQ
Please Log in to see the code snippet
|
|
|
|
|
Dynamic Where Clause
|
|
How to construct conditional where clause after a base query is setup
Please Log in to see the code snippet
|
|
|
|
|
Group
|
|
Simple Grouping
Please Log in to see the code snippet
|
|
|
|
|
Join multiple fields
|
|
How to join multiple fields with LINQ
Please Log in to see the code snippet
|
|
|
|
|
Left Join
|
|
Basic Left Join
Please Log in to see the code snippet
|
|
|
|
|
LINQ Basics
|
|
Add, Delete, Update operations
Please Log in to see the code snippet
|
|
|
|
|
LINQ Join
|
|
Display records from joined tables
Please Log in to see the code snippet
|
|
|
|
|
LINQ Join with || logic
|
|
The trick is, use LINQ subquerry instead of straight join
Please Log in to see the code snippet
|
|
|
|
|
LINQ Paging
|
|
Setup paging for LINQ based gridviews
Please Log in to see the code snippet
|
|
|
|
|
LINQ Reference
|
|
Comprehensive LINQ Reference
Please Log in to see the code snippet
|
|
|
|
|
LINQ Simple display
|
|
Display records from one table using LINQ to SQL
Please Log in to see the code snippet
|
|
|
|
|
Mass update
|
|
Mass update records with LINQ
Please Log in to see the code snippet
|
|
|
|
|
Order by multiple fields
|
|
Order by
Please Log in to see the code snippet
|
|
|
|
|
TreeView
|
|
TreeView with LINQ
Please Log in to see the code snippet
|
|
|
|
|
|
C# MVC
|
|
ActionFilter
|
|
Sample ActionFilter
Please Log in to see the code snippet
|
|
|
|
|
Allowing html input
|
|
Decoration in controller
Please Log in to see the code snippet
|
|
|
|
|
Async methods
|
|
Example of async controller and async model
Please Log in to see the code snippet
|
|
|
|
|
BasicAuthentication
|
|
Sample setup that works
Please Log in to see the code snippet
|
|
|
|
Get user information with extension
Please Log in to see the code snippet
|
|
|
|
|
Display Image from DB
|
|
Image stored in SQL
Please Log in to see the code snippet
|
|
|
|
Performance Enhanced
Please Log in to see the code snippet
|
|
|
|
|
DropdownList Array
|
|
Sample of populated dropdown list
Please Log in to see the code snippet
|
|
|
|
|
Key Value Pair From web.config
|
|
Retrieve & convert to List SelectListItem
Please Log in to see the code snippet
|
|
|
|
|
Mix with Webform
|
|
How to Mix MVC with Webform
Please Log in to see the code snippet
|
|
|
|
|
Model not clearing
|
|
How to clear it
Please Log in to see the code snippet
|
|
|
|
|
Page and Sort
|
|
Keep Page and Sort Intact
Please Log in to see the code snippet
|
|
|
|
|
Page MaintainScroll on Postback
|
|
Simple implementation
Please Log in to see the code snippet
|
|
|
|
|
Paging Implementation
|
|
Sample paging with postback
Please Log in to see the code snippet
|
|
|
|
Smart Paging
Please Log in to see the code snippet
|
|
|
|
Multiple paging implementation
Please Log in to see the code snippet
|
|
|
|
|
Routing
|
|
Sample implementation
Please Log in to see the code snippet
|
|
|
|
|
Sample MVC App
|
|
Covers Model, Controller, View, screen shot
Please Log in to see the code snippet
|
|
|
|
Sample Very Basic C# MVC
Please Log in to see the code snippet
|
|
|
|
Comprehensive
Please Log in to see the code snippet
|
|
|
|
|
Sample MVC Controller
|
|
Controller that controls a couple pages
Please Log in to see the code snippet
|
|
|
|
Return to a different folder
Please Log in to see the code snippet
|
|
|
|
|
Sample MVC Model
|
|
Product Manager Model that contains several methods
Please Log in to see the code snippet
|
|
|
|
Model with one method returning Generic Collection
Please Log in to see the code snippet
|
|
|
|
Model that processes a form
Please Log in to see the code snippet
|
|
|
|
Model that includes multiple class
Please Log in to see the code snippet
|
|
|
|
Calendar Model
Please Log in to see the code snippet
|
|
|
|
Upload Excel and parse the fields
Please Log in to see the code snippet
|
|
|
|
|
Sample MVC View
|
|
Sample MVC View - Edit Page
Please Log in to see the code snippet
|
|
|
|
Sample MVC View - Index Page
Please Log in to see the code snippet
|
|
|
|
Displaying Generic collection from Model 2
Please Log in to see the code snippet
|
|
|
|
TreeView with MVC
Please Log in to see the code snippet
|
|
|
|
|
Scripts in UI
|
|
Difference between <%: and <%=
Please Log in to see the code snippet
|
|
|
|
Some script in UI that is used quite often
Please Log in to see the code snippet
|
|
|
|
Html.DropdownListFor
Please Log in to see the code snippet
|
|
|
|
|
Simulated GridView
|
|
GridView with paging
Please Log in to see the code snippet
|
|
|
|
|
Textbox array
|
|
Sample of populated textbox array
Please Log in to see the code snippet
|
|
|
|
|
Upload File
|
|
How to upload multiple files with MVC
Please Log in to see the code snippet
|
|
|
|
Upload and resize a single image file
Please Log in to see the code snippet
|
|
|
|
Upload Images and store it in DB as Image
Please Log in to see the code snippet
|
|
|
|
Store any File to Binary Field and display it
Please Log in to see the code snippet
|
|
|
|
Upload images, store in binary, and display them
Please Log in to see the code snippet
|
|
|
|
Convert File to byte[]
Please Log in to see the code snippet
|
|
|
|
Complete Sample
Please Log in to see the code snippet
|
|
|
|
|
Upload Text File
|
|
Read Line by Line
Please Log in to see the code snippet
|
|
|
|
|
URL of the current Host with port#
|
|
To get just the first Node
Please Log in to see the code snippet
|
|
|
|
|
Validation
|
|
Required Field
Please Log in to see the code snippet
|
|
|
|
|
WebGrid
|
|
Sample setup
Please Log in to see the code snippet
|
|
|
|
|
|
C# Silverlight
|
|
Consume WCF
|
|
Sample code to consume WCF in silverlight
Please Log in to see the code snippet
|
|
|
|
|
|
C# WCF
|
|
Consuming WCF
|
|
Sample code to consume WCF
Please Log in to see the code snippet
|
|
|
|
|
Max number of records
|
|
Increase max number of bytes returned by WCF
Please Log in to see the code snippet
|
|
|
|
|
|
C# WCF / ADO
|
|
WCF with ADO.NET
|
|
WCF Service contract returning Struct and Generic Collection
Please Log in to see the code snippet
|
|
|
|
|
|
C# WCF / LINQ
|
|
Sample WCF with LINQ
|
|
Sample WCF returning Generic Collection, accessing data with LINQ
Please Log in to see the code snippet
|
|
|
|
|
|
C# Web API
|
|
Controller
|
|
Sample Web API Controller with CORS
Please Log in to see the code snippet
|
|
|
|
Template
Please Log in to see the code snippet
|
|
|
|
|
Generic POST Controller
|
|
Accepting Object
Please Log in to see the code snippet
|
|
|
|
|
Program
|
|
Program.cs for .net 6 with Log provider
Please Log in to see the code snippet
|
|
|
|
|
Sample Setup
|
|
Extension, Controller, WebAPIConfig
Please Log in to see the code snippet
|
|
|
|
|
Self Host Controller
|
|
Async call, courtesy of Arman Gazanchyan
Please Log in to see the code snippet
|
|
|
|
|
|
C# Web Service
|
|
Programmatic Authentication
|
|
Sample authentication in program
Please Log in to see the code snippet
|
|
|
|
|
|
C# WebAPI
|
|
Missing Roselyn
|
|
When publishing it errors out
Please Log in to see the code snippet
|
|
|
|
|
|
C# WIN
|
|
Directory Search
|
|
Function to list the contents of a directory
Please Log in to see the code snippet
|
|
|
|
|
Launch a program
|
|
Sample launch a program - execute a notepad to open a file
Please Log in to see the code snippet
|
|
|
|
|
OpenFileDialog
|
|
Open a dialog to locate and select file in the system
Please Log in to see the code snippet
|
|
|
|
|
|
CLR
|
|
PERMISSION_SET = EXTERNAL_ACCESS
|
|
To give permission to access more resources in C#
Please Log in to see the code snippet
|
|
|
|
|
|
Contact
|
|
Contact
|
|
Definition
Please Log in to see the code snippet
|
|
|
|
|
|
CSS
|
|
Basic setup
|
|
Barebone
Please Log in to see the code snippet
|
|
|
|
|
Enable and Disable ALL
|
|
Disable all html elements from being clicked
Please Log in to see the code snippet
|
|
|
|
|
Google Font
|
|
Link url
Please Log in to see the code snippet
|
|
|
|
|
Gradient
|
|
Example that works
Please Log in to see the code snippet
|
|
|
|
|
inline li
|
|
Sample ul li in one row
Please Log in to see the code snippet
|
|
|
|
|
Print
|
|
How to not display item on printouts
Please Log in to see the code snippet
|
|
|
|
|
Round-edge box
|
|
Round-edge box
Please Log in to see the code snippet
|
|
|
|
|
Shadow
|
|
Box shadow
Please Log in to see the code snippet
|
|
|
|
Text Shadow
Please Log in to see the code snippet
|
|
|
|
|
|
Entertainment Partners
|
|
Load and Save UI setting
|
|
ManagedDataEntryBaseForm
Please Log in to see the code snippet
|
|
|
|
|
|
Entity Framework 6
|
|
Issues
|
|
No Entity Framework Provider
Please Log in to see the code snippet
|
|
|
|
Function import not working
Please Log in to see the code snippet
|
|
|
|
|
|
GAC
|
|
To register dll to GAC
|
|
Sample registering CCLibrary
Please Log in to see the code snippet
|
|
|
|
|
|
Google API Key
|
|
Where to get Google API Key
|
|
Just Hyperlink
Please Log in to see the code snippet
|
|
|
|
|
|
HTML5
|
|
Zen Coding
|
|
Zen Coding Plugin for Visual Studio 2015
Please Log in to see the code snippet
|
|
|
|
|
|
IIS
|
|
IIS 7.5 Configuring
|
|
Configuring UploadReadAhead
Please Log in to see the code snippet
|
|
|
|
For Windows Authentication web apps
Please Log in to see the code snippet
|
|
|
|
How to make it always running
Please Log in to see the code snippet
|
|
|
|
Registering ASP.net to IIS
Please Log in to see the code snippet
|
|
|
|
|
IIS Express
|
|
How to launch using IIS Express 7.5 command line
Please Log in to see the code snippet
|
|
|
|
|
Problematic 7.0
|
|
Due to conflict with 2.0 or php
Please Log in to see the code snippet
|
|
|
|
|
|
Info
|
|
Pwd
|
|
:2082
Please Log in to see the code snippet
|
|
|
|
|
|
Install
|
|
vs2017
|
|
exe
Please Log in to see the code snippet
|
|
|
|
|
|
Javascript
|
|
Change attribute
|
|
changing attribute of an html element
Please Log in to see the code snippet
|
|
|
|
|
Check All
|
|
Check / uncheck all checkboxes in a Gridview
Please Log in to see the code snippet
|
|
|
|
|
Checkbox label
|
|
How to change label on checkbox list
Please Log in to see the code snippet
|
|
|
|
|
Split
|
|
How to split string into arrays
Please Log in to see the code snippet
|
|
|
|
|
|
JQUERY
|
|
Animate
|
|
Click a thumbnail and animate an image
Please Log in to see the code snippet
|
|
|
|
Scroll up slowly - number in miliseconds
Please Log in to see the code snippet
|
|
|
|
|
DatePicker
|
|
Implement DatePicker in C# MVC
Please Log in to see the code snippet
|
|
|
|
|
Fadeout
|
|
A sample fadeout on a click
Please Log in to see the code snippet
|
|
|
|
|
Mouse position
|
|
mouseposition and set width & height
Please Log in to see the code snippet
|
|
|
|
|
Razor-coded Jquery
|
|
Sample to move images
Please Log in to see the code snippet
|
|
|
|
|
scrollFollow() to follow scrolls
|
|
if scrollFollow doesn't work, use this script
Please Log in to see the code snippet
|
|
|
|
|
Set Opacity
|
|
set opacity / transparency
Please Log in to see the code snippet
|
|
|
|
|
|
LDAP
|
|
Active Directory Search
|
|
Search for email address from AD
Please Log in to see the code snippet
|
|
|
|
|
|
Microsoft Validation
|
|
apnet_db
|
|
Setup Microsoft Validation
Please Log in to see the code snippet
|
|
|
|
|
|
Mission Federal
|
|
Account
|
|
Website and Account #
Please Log in to see the code snippet
|
|
|
|
|
|
MonoTouch
|
|
Add event
|
|
Create event from a button
Please Log in to see the code snippet
|
|
|
|
|
MonoTouch WCF
|
|
Add Proxy to consume WCF
Please Log in to see the code snippet
|
|
|
|
|
Outlet
|
|
Creating outlet to bridge xCode to Mono
Please Log in to see the code snippet
|
|
|
|
|
Sample Code
|
|
For phone directory via WCF
Please Log in to see the code snippet
|
|
|
|
|
Using MonoTouch in Mac
|
|
How to show Object Library
Please Log in to see the code snippet
|
|
|
|
|
|
MySQL
|
|
Adding a Foreign Key
|
|
Example
Please Log in to see the code snippet
|
|
|
|
|
Complex mysql statements in a loop
|
|
Include IF, WHILE, and FIND_IN_SET, etc
Please Log in to see the code snippet
|
|
|
|
|
|
NodeJS
|
|
Developing Nodes.js with Visual Studio 2013
|
|
Packages to install
Please Log in to see the code snippet
|
|
|
|
|
Hosting NodeJS API and http SPA at the same time
|
|
One File host both Front End and Back End
Please Log in to see the code snippet
|
|
|
|
|
WebAPI
|
|
Complete Working Sample
Please Log in to see the code snippet
|
|
|
|
|
|
OOP
|
|
Partial class
|
|
Example of Partial Class
Please Log in to see the code snippet
|
|
|
|
|
Sample OOP
|
|
Class, method, property, instantiation, invoking methods, passing parameters, using object collection
Please Log in to see the code snippet
|
|
|
|
|
Singleton Class
|
|
Single instance of an object in a namespace to maintain the same object
Please Log in to see the code snippet
|
|
|
|
|
|
OWIN
|
|
Self-Host Web API
|
|
Basic steps to start
Please Log in to see the code snippet
|
|
|
|
|
|
PHP
|
|
$_POST
|
|
Retrieve all $_POST fields
Please Log in to see the code snippet
|
|
|
|
|
Object Oriented
|
|
Sample OO PHP
Please Log in to see the code snippet
|
|
|
|
|
Sample Static method
|
|
Retrieving a token via curl
Please Log in to see the code snippet
|
|
|
|
|
WebAPI
|
|
php reading MySQL, producing JSON
Please Log in to see the code snippet
|
|
|
|
|
|
Physics problem
|
|
Solving 100% elastic impact
|
|
Find final velocities of the two objects
Please Log in to see the code snippet
|
|
|
|
|
|
Raspberry Pi
|
|
Email client
|
|
installing Claw
Please Log in to see the code snippet
|
|
|
|
|
Keyboard Mapping
|
|
Setup US Layout
Please Log in to see the code snippet
|
|
|
|
|
|
Reflection
|
|
Get assembly information
|
|
Sxample use of getting a version number
Please Log in to see the code snippet
|
|
|
|
|
Using Reflection to validate object properties
|
|
Check if the property exists AND, validate if it contains CustomAttribute
Please Log in to see the code snippet
|
|
|
|
|
|
SharePoint
|
|
Business Intelligence
|
|
Central Administration to create BI Application
Please Log in to see the code snippet
|
|
|
|
How to Setup PerformancePoint
Please Log in to see the code snippet
|
|
|
|
|
|
Smart Accounting
|
|
Screen Dictionary Hardcoded
|
|
EaseAccountingMenu
Please Log in to see the code snippet
|
|
|
|
|
|
SQL
|
|
Backup
|
|
Run in SQL Server Agent
Please Log in to see the code snippet
|
|
|
|
|
CLR
|
|
Create and Execute External Assembly
Please Log in to see the code snippet
|
|
|
|
|
Function
|
|
Compare Int
Please Log in to see the code snippet
|
|
|
|
|
Grant execute permission
|
|
Grant a SQL user privilege to execute a Stored Procedure
Please Log in to see the code snippet
|
|
|
|
|
mass update
|
|
update from Select
Please Log in to see the code snippet
|
|
|
|
|
Partition
|
|
Distinct one column and choose most recent ot the rest
Please Log in to see the code snippet
|
|
|
|
Partition and Pivot
Please Log in to see the code snippet
|
|
|
|
|
Primary Key
|
|
Add Primary Key to Existing Table
Please Log in to see the code snippet
|
|
|
|
|
Stored Procedure
|
|
trim
Please Log in to see the code snippet
|
|
|
|
Semi-Dynamic
Please Log in to see the code snippet
|
|
|
|
Retrieve AutoID after Insert
Please Log in to see the code snippet
|
|
|
|
Drop and Create Practice
Please Log in to see the code snippet
|
|
|
|
Sample SQL Programming
Please Log in to see the code snippet
|
|
|
|
function to accept multiple values
Please Log in to see the code snippet
|
|
|
|
Using cursor to calculate running total
Please Log in to see the code snippet
|
|
|
|
Add Midnight time to end date
Please Log in to see the code snippet
|
|
|
|
|
Trigger
|
|
Executing External Program
Please Log in to see the code snippet
|
|
|
|
|
UNIXTIME
|
|
Handling Unix Time field
Please Log in to see the code snippet
|
|
|
|
|
|
SQL Server
|
|
AdventureWorks
|
|
Where to download
Please Log in to see the code snippet
|
|
|
|
|
|
SRS
|
|
Linked Report
|
|
Screenshot
Please Log in to see the code snippet
|
|
|
|
|
Render Report
|
|
Function to render SRS report
Please Log in to see the code snippet
|
|
|
|
Combine multiple byte[] to become a single pdf
Please Log in to see the code snippet
|
|
|
|
method to generate byte[]
Please Log in to see the code snippet
|
|
|
|
|
SRS Credential
|
|
Passing user ID, password, and domain to SRS
Please Log in to see the code snippet
|
|
|
|
|
VS 2010 Report Data Not Showing
|
|
How to make it show
Please Log in to see the code snippet
|
|
|
|
|
|
Swift
|
|
Car Performance Simulation
|
|
Prints out speed history for 0-60 Test
Please Log in to see the code snippet
|
|
|
|
|
|
Test
|
|
test
|
|
test
Please Log in to see the code snippet
|
|
|
|
TestDB
Please Log in to see the code snippet
|
|
|
|
|
|
TFS
|
|
TFS not sending email
|
|
How to resolve
Please Log in to see the code snippet
|
|
|
|
|
|
VB .NET
|
|
ADO
|
|
Read multiple records
Please Log in to see the code snippet
|
|
|
|
Read single record
Please Log in to see the code snippet
|
|
|
|
Insert Record
Please Log in to see the code snippet
|
|
|
|
Read with parameter
Please Log in to see the code snippet
|
|
|
|
|
Check for DBNull
|
|
How to check for DBNull
Please Log in to see the code snippet
|
|
|
|
|
Inline If
|
|
IIF
Please Log in to see the code snippet
|
|
|
|
|
Listbox
|
|
Retrieve a value from listbox
Please Log in to see the code snippet
|
|
|
|
|
User Control
|
|
Add event trigger
Please Log in to see the code snippet
|
|
|
|
|
|
VS 2010
|
|
How to display Find All
|
|
See screen shot in the URL
Please Log in to see the code snippet
|
|
|
|
|
Immediate Window
|
|
How to make it available
Please Log in to see the code snippet
|
|
|
|
|
|
Web.Config
|
|
File size
|
|
Controls filesize to upload in KB
Please Log in to see the code snippet
|
|
|
|
|
Script input
|
|
Enable script input in .NET textareas
Please Log in to see the code snippet
|
|
|
|
|
|
Windows Registry
|
|
Reassociate Zip
|
|
Enable Windows Zip
Please Log in to see the code snippet
|
|
|
|
|
|
XML
|
|
XML Parser
|
|
Extract data from XML string
Please Log in to see the code snippet
|
|
|
|
read the nodes
Please Log in to see the code snippet
|
|
|
|
|
|
XPATH
|
|
Sample Javascript XMLHttp Xpath
|
|
To parse out XML document with XPATH query
Please Log in to see the code snippet
|
|
|
|