عرض المشاركات من يناير, 2008

JavaScript keycode constants and their values

In this blog post, I will show how to get the value of keycode using a simple javascript code. Apart from this, I will also provide the list of keycode mapping < html > < head > < meta http-equiv = &quo…

Invoke button click event from javascript in asp.net

In this blog post, I will show you how to trigger button click events from javascript. To understand The problem let’s create a simple page and put the following logic inside. The code is self-explanatory. function TrigBu…

How TO Add copy to clipboard Button On Page

This article will show you how to copy text to the clipboard without using any third-party library. < html > < head > < script > function copyToClipboar ( ) { /* Get the textare…

Easily Convert ArrayList To DataSet in ASP.NET

In this article, I will show you a simple trick for converting ArrayList to DataSet or DataTable so that I can filter or make a select distinct from it or Bind it to Gridview. public DataSet ConvertArrayListToDataSet ( …

How To Get HTML from a URL using C#

You need to get the HTML returned from a web server in order to examine it for items of interest. For example, you could examine the returned HTML for links to other pages or for headlines from a news site. using System ; usi…

How To Get Information for All Drives on a System

Your application needs to know if a drive (HDD, CD drive, DVD drive, etc.) is available and ready to be written to and/or read from. Additionally, it would be nice to know if you have enough available free space on the drive to …

How To Fill Dropdownlist With XML in ASP.NET

This article will see how we can populate a DropDownList control with an XML file as a source. Our XML file looks something like below, which simply contains the name of the clients. <?xml version="1.0" encoding=&q…

How To Generate Random Image Using HttpHandler in ASP.NET

How to construct an image generator used to create a visual security code that helps prevent automated sign-ups in your web applications. The text generated is stored in Session to be used for comparison to the user’s input. …

How To Validate Checkboxlist control in ASP.NET

< %@ Page Language = " C# " AutoEventWireup = " true " CodeFile = " ValidateCheckBoxList.aspx.cs " Inherits = " ValidateCheckBoxList " % > <!DOCTYPE html PUBLIC "-/…

How To Block IP Addresses from your website using ASP.NET

To block an IP address from your web application we used a HttpModule that could be reused in any ASP.NET application. When an IP address is blocked it stops the response and sends a “403 Forbidden” header. Even though it’s a…

How To Compress and Decompress Strings in C#

It would help if you could compress the data you write to a file using one of the stream-based classes. In addition, you need a way to decompress the data from this compressed file when you read it back in. Use the System.IO…

ASP.NET: Seeing What is in the ViewState in ASP.NET Web Forms

Have you ever wondered what is actually encoded in the __VIEWSTATE hidden variable on your WebForms? It’s actually a base64 serialized encoding of a datatype called a Triplet, that has other objects nested within it. I threw …

تحميل المزيد من المشاركات
لم يتم العثور على أي نتائج