Welcome to my blog.

Post on this blog are my experience which I like to share. This blog is completely about sharing my experience and solving others query. So my humble request would be share you queries to me, who knows... maybe I can come up with a solution...
It is good know :-)

Use my contact details below to get directly in touch with me.
Gmail: nadarmuthukumar1987@gmail.com
Yahoo: nadarmuthukumar@yahoo.co.in

Apart from above people can share their queries on programming related stuff also. As me myself a programmer ;-)

Session Value lost on every request

Recently I was facing an issue where my website is working fine with other browsers but it fails on internet explorer. Getting deeper into that issue I found like session values are lost on every request on pages on internet explorer, this is because session id actually getting changes on every request on internet explorer.

Getting into deeper, why it wasn't working is, because my website's url contained an underscore character (ie http://my_website). I have changed the name and now it all works fine.

Reference: Muthukumar Nadar (http://nadarmuthukumar.blogspot.in) 
http://forums.iis.net/post/1873244.aspx

Hope you liked this post, also let me know your thoughts on the post through your valuable comment. Thank you.

lock folder without any software

Open Notepad and copy the below code
 
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Find "type your password here" and replace with a password for the folder, now save the notepad as "locker.bat". 

Now double click on "locker.bat", at the first time start it will create folder with name "Locker" automatically for you. 

That's it, you are done. 

Now to lock the folder double click on the "locker.bat" file, it will ask you to press "Y" or "N". "Y" is to lock. 

To unlock the folder double click on the "locker.bat" file, it will ask you the password, enter the correct password and the folder will be visible now. 

Important note: This technique is not the secure one because anybody can right click and go to the edit option and can see the password. 

So it is recommended that you keep the file somewhere secure. 
OR 
You can use ".bat" to ".exe" converter

But remember to take a backup before you convert "locker.bat" file because if you forgot the password "locker.bat" is the only file which will help you in retrieving the password.

By converting the file nobody can view your password by right click and edit. 


Reference: Muthu Nadar (http://nadarmuthukumar.blogspot.in) 

Hope you liked this post, also let me know your thoughts on the post through your valuable comment. 

Thank you.

Insert text at the cursor position in CKEditor

function InsertHTML() {
      CKEDITOR.instances['<%= CKEditor1.ClientID %>'].insertText('Your Text');
      return false;
}

Reference: Muthukumar (http://nadarmuthukumar.blogspot.in) 
Hope you liked this post, also let me know your thoughts on the post through your valuable comment. Thank you.

Unable to set Minimum and Maximum value of MultiHandleSliderExtender

Anyone who have this problem the solution is to reset or clear MultiHandleSliderExtender's ClientState using below code.
MultiHandleSliderExtender_Price.ClientState = "0";
OR
MultiHandleSliderExtender_Price.ClientState = "45,55";
Reference: Muthukumar (http://nadarmuthukumar.blogspot.in) Hope you liked this post, also let me know your thoughts on the post through your valuable comment. Thank you.

Convert List to DataTable in C#

public DataTable ConvertToDataTable<T>(IList<T> data)
    {
        PropertyDescriptorCollection properties =
           TypeDescriptor.GetProperties(typeof(T));
        DataTable table = new DataTable();
        foreach (PropertyDescriptor prop in properties)
            table.Columns.Add(prop.Name, Nullable.GetUnderlyingType(prop.PropertyType) ?? prop.PropertyType);
        foreach (T item in data)
        {
            DataRow row = table.NewRow();
            foreach (PropertyDescriptor prop in properties)
                row[prop.Name] = prop.GetValue(item) ?? DBNull.Value;
            table.Rows.Add(row);
        }
        return table;

    }
Reference: Muthukumar (http://nadarmuthukumar.blogspot.in) 
Hope you liked this post, also let me know your thoughts on the post through your valuable comment. 
Thank you.

Twitter Delicious Facebook Digg Stumbleupon Favorites More