|
|
|
Friday, 10 February 2012 09:58 |
|
Changing Apache Server Name To Whatever You Want With mod_security On Debian 6
In this tutorial I want to focus on how to change the Apache server name to whatever
you want, so you can give your own name or sentence to Apache server headers that
are sent to whois programs or websites, for example you can type "YTS","GWS" or
"Microsoft-IIS/7.0" to misguide the hacker to guess which Linux OS or which
version of Apache you are using. Read more: |
|
|
Monday, 26 December 2011 23:57 |
The syntax of the window.open method is given below:
open (URL, windowName[, windowFeatures])
URL
The URL of the page to open in the new window. This argument could be blank.
windowName
A name to be given to the new window. The name can be used to refer this window again.
windowFeatures
A string that determines the various window features to be included in the popup window (like status bar, address bar etc)
The following code opens a new browser window with standard features.
window.open ("http://www.javascript-coder.com","mywindow");
 Read more: |
|
|
Monday, 19 December 2011 02:18 |
This will help you only when you have to filter distinct records based on specified fields.
e.g. I have a table called UserDetail which contains the following fields:
UserID | Name | Mobile | Email | City | State
Now I want to only display distinct records with Name, City and State, then you can use:
string[] TobeDistinct = {"Name","City","State"};
DataTable dtDistinct = GetDistinctRecords(DTwithDuplicate, TobeDistinct);
//Following function will return Distinct records for Name, City and State column.
public static DataTable GetDistinctRecords(DataTable dt, string[] Columns)
{
DataTable dtUniqRecords = new DataTable();
dtUniqRecords = dt.DefaultView.ToTable(true, Columns);
return dtUniqRecords;
}
 Read more: |
|
|
|
|
|
|
Page 1 of 3 |