Interfaces
Interface is a "Contract" with a set of public members, like (properties, methods, events and indexers). With using interfaces your code will be easy testable, extensible and maintainable.
RMH

ellievsbear

Aqua Utopia|海の底で記憶を紡ぐ
almost home

oozey mess
🪼
One Nice Bug Per Day

#extradirty
wallacepolsom
Misplaced Lens Cap
Xuebing Du

taylor price
todays bird
h
$LAYYYTER

Product Placement
seen from T1

seen from United Kingdom
seen from Germany

seen from Malaysia
seen from Netherlands
seen from United Kingdom

seen from Malaysia
seen from Canada

seen from France

seen from United States
seen from United States
seen from Switzerland
seen from United States

seen from Türkiye

seen from Malaysia

seen from Ghana

seen from Malaysia
seen from Belgium

seen from Netherlands
seen from United Kingdom
@codingcode-blog
Interfaces
Interface is a "Contract" with a set of public members, like (properties, methods, events and indexers). With using interfaces your code will be easy testable, extensible and maintainable.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
DiffDate MSSQL
SELECT DATEDIFF(day,'2001-06-03','2001-09-05') AS DiffDate
String.IsNullOrEmpty
Best way to check if string is null or empty:
if (String.IsNullOrEmpty(value)) {
// null or empty
}
Finding duplicate values in a SQL table
SELECT email, COUNT(email) AS CountOf FROM Subscriber with (nolock) where subscriberId = 333 GROUP BY email HAVING COUNT(email)>1
Using tilde (~) in path
Tilde (~) is the shortcut for the root of the website. This is what you use to resolve the paths of the image files or any other resources.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
jQuery autocomplete
Just tested autocomplete function in jQuery and this is awesome. Here is a simple example:
$(function () { var stores = [ "ICA", "Hemköp", "Willys", "ICA Maxi", "Coop", "Abdos" ];
$("#store").autocomplete({ source: stores });
<html>
<input type="text" title="Best store:" id="store" />
</html>
Read value from app.config
Here is a simple explenation of how to read a value from app.config file:
This is value that i add in app.config:
<appSettings> <add key="Logging" value="C:\Develop\DOTNET4.0\" /> </appSettings>
For getting value just apply following line of code:
sting keyValue = ConfigurationManager.AppSettings["Logging"];
SQL BETWEEN DATE RANGE
SELECT Id FROM TableName WHERE [DateTime] BETWEEN DATEADD(d,-5,getdate()) and getdate()
Boot Camp: MacBook Pro built-in keyboard mapping in Windows
Great page about built-in keyboard mapping in Windows on Mac http://support.apple.com/kb/HT1220
SQL SELECT
Use is to select data from the tables located in a database.
SELECT ColumnName FROM TableName

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Razor syntax samples
Display value in view: <p>@ViewBag.Messag</p>
Code expressions in Razor are always HTML encoded, this is how you shows NOT HTML encoded values: <p>@Html.Raw(@ViewBag.Messag)</p>
Escape code delimiter: By @@ My twitter account is @@Eldlabs Or by HTML encodeing @ My twitter account is @ Eldlabs
Arrays C#
// Declare and set array element values
string[] names = { "Eldar", "Siri", "Vicki" };
foreach (var name in names)
{
Console.WriteLine(name);
}
Short key for implement using
Short key for implement using in Visual Studio Ctrl + .
HTTP Status Infomration
1xx informational
100
client should continue with request
101
server is switching protocols
102
server has received and is processing the request
103
resume aborted PUT or POST requests
122
URI is longer than a maximum of 2083 characters
2xx success
200
Standard response for successful HTTP requests
201
request has been fulfilled; new resource created
202
request accepted, processing pending
203
request processed, information may be from another source
204
request processed, no content returned
205
request processed, no content returned, reset document view
206
partial resource return due to request header
207
xml, can contain multiple separate responses
208
results previously returned
226
request fulfilled, reponse is instance-manipulations
3xx redirection
300
multiple options for the resource delivered
301
This and all future requests directed to the given URI
302
response to request found via alternative URI
303
response to request found via alternative URI
304
this and all future requests should redirect to given URI
305
content located elsewhere, retrieve from there
306
subsequent requests should use the specified proxy
307
connect again to different uri as provided
308
Resumable HTTP Requests
4xx client error
400
request cannot be fulfilled due to bad syntax
401
authentication is possible but has failed
402
payment required, reserved for future use
403
server refuses to respond to request
404
requested resource could not be found
405
request method not supported by that resource
406
content not acceptable according to the Accept headers
407
client must first authenticate itself with the proxy
408
server timed out waiting for the request
409
request could not be processed because of conflict
410
resource is no longer available and will not be available again
411
request did not specify the length of its content
412
server does not meet request preconditions
413
request is larger than the server is willing or able to process
414
URI provided was too long for the server to process
415
server does not support media type
416
client has asked for unprovidable portion of the file
417
server cannot meet requirements of Expect request-header field
418
I'm a teapot
420
Twitter rate limiting
422
request unable to be followed due to semantic errors
423
resource that is being accessed is locked
424
request failed due to failure of a previous request
426
client should switch to a different protocol
428
origin server requires the request to be conditional
429
user has sent too many requests in a given amount of time
431
server is unwilling to process the request
444
server returns no information and closes the connection
449
request should be retried after performing action
450
Windows Parental Controls blocking access to webpage
499
connection closed by client while HTTP server is processing
5xx server error
500
generic error message
501
server does not recognise method or lacks ability to fulfill
502
server received an invalid response from upstream server
503
server is currently unavailable
504
gateway did not receive response from upstream server
505
server does not support the HTTP protocol version
506
content negotiation for the request results in a circular reference
507
server is unable to store the representation
508
server detected an infinite loop while processing the request
509
Bandwidth Limit Exceeded
510
Further extensions to the request are required
511
client needs to authenticate to gain network access
598
network read timeout behind the proxy
599
network connect timeout behind the proxy
Html Controls in code behind c#
var button = new HtmlButton(); button.InnerText = "Spara"; this.Controls.Add(button);
button.ServerClick += new EventHandler(button_ServerClick);
protected void button_ServerClick(object sender, EventArgs e)
{
//Button event.
}

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Class in App_Code
If you have a problem to access your clases from App_Code folder in Web Application Project (Web Project) the easiest way to fix is to move you Class from App_Code to different folder. The App_Code folder for stroing your classes is only used in Web Site.
Formatting Date and Time in C#
string displayDate;
var dateForConvert = Convert.ToDateTime("2012-01-15 00:00:00");
displayDate = dateForConvert.ToString("MMMM"); //Will return January