How to transfer domain from Namescheap.com

Follow the below steps to transfer domain from namescheap.com to any other hosting website.

  1. Login to your namescheap.com account and open domain list
  2. Right end of the domain which needs to transfer you can see a Renew button next to this renew button there is a small arrow.
  3. Clicking this arrow will show a Manage menu and click this menu to access the domain details page.
  4. There you can see a Sharing & Transfer button click this button to access the domain transfer page.
  5. In the domain transfer page look for the section Transfer Out, there you can two links OFF and LOCK. If your domain is locked the OFF link will be active otherwise the LOCK link will be active.
  6. By default namescheap.com domains are locked and you should click the OFF button to unlock the domain. This process will take some time and after the completion of this process you will get an email confirmation.
  7. After receiving the email confirmation go to the domain transfer page and you can see a AUTH CODE button in the Transfer Out section, click this button to get the authentication code, it will email to you.
  8. Using this code you can transfer your code any other web hosting company. Please note the whole domain transfer process may take up to 15 days to complete.

 

Advertisements
Posted in Web Hosting | Leave a comment

Fill LINQ data to a data table in C#

Load LINQ data to a variable varlist of data type var. Pass the variable varlist to the below function.


public DataTable LINQToDataTable<T>(IEnumerable<T> varlist)
{
DataTable dtReturn = new DataTable();

//Column names
PropertyInfo[] oProps = null;

if (varlist == null) return dtReturn;

foreach (T rec in varlist)
{
if (oProps == null)
{
oProps = ((Type)rec.GetType()).GetProperties();
foreach (PropertyInfo pi in oProps)
{
Type colType = pi.PropertyType;

if ((colType.IsGenericType) && (colType.GetGenericTypeDefinition() == typeof(Nullable<>)))
{
colType = colType.GetGenericArguments()[0];
}

dtReturn.Columns.Add(new DataColumn(pi.Name, colType));
}
}

DataRow dr = dtReturn.NewRow();

foreach (PropertyInfo pi in oProps)
{
dr[pi.Name] = pi.GetValue(rec, null) == null ? DBNull.Value : pi.GetValue
(rec, null);
}

dtReturn.Rows.Add(dr);
}
return dtReturn;
}
Posted in C#, Programming | Tagged , , , | Leave a comment

File path not available for file control in firefox

For some security reasons modern web browsers will return only file name instead of file name with directory path from client computer.

To upload a file to the server from client computer you can use the SaveAs method of file control see below.

string filename = Path.GetFileName(fileUpload1.PostedFile.FileName);
fileUpload1.SaveAs(Server.MapPath("Files/"+filename));
Posted in Programming | Tagged , , , , | Leave a comment