devxlogo

.NET

Switch to HTTP2 for Faster Websites

HTTP2 is binary protocol released some time after 2015. It is completely multiplexed and allows you to send multiple requests via a single TCP connection. It also reduces additional round

Identify Troublesome Web Queries in IIS

The IIS admin interface lets you view the worker process details that are sometimes helpful to debug server performance issues. Choose the “Worker Processes” in the list of options in

How to Restrict Input Text to Characters in a Text Box

Use the KeyPress event to check for the keys pressed. See below for an example: private void textFirstName_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if ( !( char.IsLetter(e.KeyChar) ) ) { e.Handled

Check Whether a String Contains Another String

Often, we have to do a string comparison by ignoring the case, or the results end up being wrong. The StringComparison enum provides the “ordinalignorecase” member that allows you to