When you try to set textbox readonly, it loses its value...
Reason is readonly controls are not posted back to server.

To solve the above problem use the below code.



Ref : here

Design View


Code View


Ref : here

use iframe to show your pdf file.
use paramater"#toolbar=0" to hide the toolbar of pdf file after you url ends
e.g.
src="sdsd/sdsd.pdf#toolbar=0"

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
    DataTable dt = new DataTable("Menu");
    protected void Page_Load(object sender, EventArgs e)
    {
        dt.Columns.Add("MenuId");
        dt.Columns.Add("MenuName");
        dt.Columns.Add("ParentMenuId");
        dt.Columns.Add("NavigationUrl");
        dt.Rows.Add(new string[] { "1","Home","0","http://www.google.com" });
        dt.Rows.Add(new string[] { "2", "Sub_Home_1", "1", "http://www.yahoo.com" });
        dt.Rows.Add(new string[] { "3", "About Us", "0", "http://www.reliancemoney.com" });
        dt.Rows.Add(new string[] { "4", "Sub_AboutUs_1", "3", "http://www.relince.com" });
        dt.Rows.Add(new string[] { "5", "Sub_AboutUs_2", "3", "http://www.codeproject.com" });
        dt.Rows.Add(new string[] { "6", "Contact Us", "0", "http://www.sqlauthority.com" });
        dt.Rows.Add(new string[] { "7", "Sub_Contact Us_1", "6", "http://www.crm.com" });
        dt.Rows.Add(new string[] { "8", "Sub_Sub_Contact Us_1", "7", "http://www.firebug.com" });
        dt.Rows.Add(new string[] { "9", "Sub_Sub_Home_1", "2", "http://www.dotnet.com" });
        ShowMenu(mnuTest.Items,0);
    }

    private void ShowMenu(MenuItemCollection nodes, int parentMenuId)
    {
        int MenuID;
        string MenuName, Url = string.Empty;
       
        DataRow[] ChildMenu = dt.Select("parentMenuId='" + parentMenuId + "'");
        if (ChildMenu.Length == 0) return;
        foreach (DataRow child in ChildMenu)
        {
            MenuID = Convert.ToInt32(child.ItemArray[0]);
            MenuName = Convert.ToString(child.ItemArray[1]);
            Url = Convert.ToString(child.ItemArray[3]);
            MenuItem NewNode = new MenuItem(MenuName, MenuID.ToString(),string.Empty,Url);
            nodes.Add(NewNode);
            ShowMenu(NewNode.ChildItems, MenuID);
        }
    }
}


Getting used to using your keyboard exclusively and leaving your mouse behind will make you much more efficient at performing any task on any Windows system. Below are some of the Keyboard Shortcuts:

  • Windows key + R = Run menu
  • Windows Key + E = Explorer
  • ALT + Tab = Switch between Active Windows
  • ALT, Space, X = Maximize window
  • CTRL + Shift + Esc = Task Manager
  • Windows key + Break = System properties
  • Windows key + F = Search
  • Windows key + D = Hide/Display all windows
  • CTRL + C = copy
  • CTRL + X = cut
  • CTRL + V = paste
  • CTRL + Z = Undo
  • "Right-click" key next to the right Windows key on your keyboard.
  • [Alt] and [Esc] Switch between running applications
  • [Alt] and letter Select menu item by underlined letter
  • [Ctrl] and [Esc] Open Program Menu
  • [Ctrl] and [F4] Close active document or group windows (*does not work with some applications)
  • [Alt] and [F4] Quit active application or close current window
  • Ctrl] Lft., Rt. arrow Move cursor forward or back one word
  • Ctrl] Up, Down arrow Move cursor forward or back one paragraph
  • [F1] Open Help for active application
  • Windows+M Minimize all open windows
  • Shift+Windows+M Undo minimize all open windows
  • Windows+F1 Open Windows Help
  • Windows+Tab Cycle through the Taskbar buttons
  • Windows+Break Open the System Properties dialog box
  • Right SHIFT for eight seconds........ Switch FilterKeys on and off.
  • Left ALT +left SHIFT +PRINT SCREEN....... Switch High Contrast on and off.
  • Left ALT +left SHIFT +NUM LOCK....... Switch MouseKeys on and off.
  • SHIFT....... five times Switch StickyKeys on and off.
  • NUM LOCK...... for five seconds Switch ToggleKeys on and off.
  • END....... Display the bottom of the active window.
  • HOME....... Display the top of the active window.
  • NUM LOCK+ASTERISK....... on numeric keypad (*) Display all subfolders under the selected folder.
  • NUM LOCK+PLUS SIGN....... on numeric keypad (+) Display the contents of the selected folder.
  • NUM LOCK+MINUS SIGN....... on numeric keypad (-) Collapse the selected folder.
  • LEFT ARROW...... Collapse current selection if it's expanded, or select parent folder.
  • RIGHT ARROW....... Display current selection if it's collapsed, or select first subfolder.
  • Delete. DELETE
  • Delete selected item permanently without placing the item in the Recycle Bin. SHIFT+DELETE
  • Copy selected item. CTRL while dragging an item
  • Create shortcut to selected item. CTRL+SHIFT while dragging an item
  • Rename selected item. F2
  • Move the insertion point to the beginning of the next word. CTRL+RIGHT ARROW
  • Move the insertion point to the beginning of the previous word. CTRL+LEFT ARROW
  • Move the insertion point to the beginning of the next paragraph. CTRL+DOWN ARROW
  • Move the insertion point to the beginning of the previous paragraph. CTRL+UP ARROW
  • Highlight a block of text. CTRL+SHIFT with any of the arrow keys
  • Select more than one item in a window or on the desktop, or select text within a document. SHIFT with any of the arrow keys
  • Select all. CTRL+A
  • Search for a file or folder. F3
  • View properties for the selected item. ALT+ENTER
  • Opens the shortcut menu for the active window. ALT+SPACEBAR
  • Cycle through items in the order they were opened. ALT+ESC
  • Display the shortcut menu for the selected item. SHIFT+F10
  • Display the System menu for the active window. ALT+SPACEBAR
  • Refresh the active window. F5
  • View the folder one level up in My Computer or Windows Explorer. BACKSPACE
  • Cancel the current task. ESC
  • SHIFT when you insert a CD into the CD-ROM drive Prevent the CD from automatically playing.
  • Move forward through tabs. CTRL+TAB
  • Move backward through tabs. CTRL+SHIFT+TAB
  • Move forward through options. TAB
  • Move backward through options. SHIFT+TAB
  • Select or clear the check box if the active option is a check box. SPACEBAR
  • Select a button if the active option is a group of option buttons. Arrow keys
  • Display Help. F1
  • Display the items in the active list. F4      
  • If you have a Microsoft Natural Keyboard, or any other compatible keyboard that includes the Windows logo key and the Application key , you can use these keyboard shortcuts:
  • Display or hide the Start menu. WIN Key
  • Display the System Properties dialog box. WIN Key+BREAK
  • Show the desktop. WIN Key+D
  • Minimize all windows. WIN Key+M
  • Restores minimized windows. WIN Key+Shift+M
  • Open My Computer. WIN Key+E
  • Search for a file or folder. WIN Key+F
  • Search for computers. CTRL+WIN Key+F
  • Display Windows Help. WIN Key+F1
  • Lock your computer if you are connected to a network domain, or switch users if you are not
  • connected to a network domain. WIN Key+ L
  • Open the Run dialog box. WIN Key+R
  • Open Utility Manager. WIN Key+U
  • Type the following commands in your Run Box (Windows Key + R) or Start Run
  • devmgmt.msc = Device Manager
  • msinfo32 = System Information
  • cleanmgr = Disk Cleanup
  • ntbackup = Backup or Restore Wizard (Windows Backup Utility)
  • mmc = Microsoft Management Console
  • excel = Microsoft Excel (If Installed)
  • msaccess = Microsoft Access (If Installed)
  • powerpnt = Microsoft PowerPoint (If Installed)
  • winword = Microsoft Word (If Installed)
  • frontpg = Microsoft FrontPage (If Installed)
  • notepad = Notepad
  • wordpad = WordPad
  • calc = Calculator
  • msmsgs = Windows Messenger
  • mspaint = Microsoft Paint
  • wmplayer = Windows Media Player
  • rstrui = System Restore
  • netscp6 = Netscape 6.x
  • netscp = Netscape 7.x
  • netscape = Netscape 4.x
  • waol = America Online
  • control = Opens the Control Panel
  • control printers = Opens the Printers Dialog

Now hide your personal files, i mean any files into a jpeg file.

Steps to Hide the Files : 

  1. Put all the file you wanted to hide in a Single Folder and add that folder into zip file.
  2. Now make a folder and place a jpeg file and the zip file you made now.
  3. Now go to Start > Run > type cmd and press enter, this will open a command prompt i.e. a black screen.
  4. Now i assume that the Folder you created is in D: Drive.
  5. In Command Prompt type Cd\ and Press Enter.
  6. Now type cd d: and press enter.
  7. The zip file Name i used here is NewFolder.zip
  8. Now cmd is in d:\> if you are right.
  9. Now type cd NewFolder and press enter.
  10. Now type the following command without Double codes "Copy /b Muthu.jpg + NewFolder.zip Muthu.jpg" and press Enter
  11. that's it.
Steps to get the Files Back : 
  1. One is you simply change the extension from .jpg to .zip.
  2. second right click the image and select open with and select winrar or winzip .
  3. that's it.
Conditions apply * This method wont work with AMD Processor

The way to get the public key token using the .NET 2.0 provided utilities is to open a Visual Studio 2005 command prompt and typing: sn.exe -T [full path to strong named assembly]
However, there's an even easier way using the external tools dialog in Visual Studio 2005

  1. In Visual Studio 2005, click Tools -> External Tools...
  2. Click Add and enter the following into the different fields as displayed in the following screen shot:  
    •  Title: Get Public Key 
    • Command: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe  
    • Arguments: -Tp "$(TargetPath)" 
    • Uncheck all options, except Use Output window\
Now, you have a new entry listed in the Tools menu titled Get Public Key as shown in the following screenshot:




Assuming you have a project open that has been configured to be signed when built, and you've built it at least one time, selecting the new Get Public Key menu item from the Tools window to get the public key token and blob in the Output window, as shown here:





 Very slick! You can even take this one step further by adding a button to a toolbar by customizing your toolbar and adding a button from the Tools category. you should pick External Command # where # is the index of the external command from the External Tools window (in my screen shots above, this is External Command 3). Then you can change the name of the button to be Get Public Key as shown below:


Very cool!


Help From : http://www.andrewconnell.com/blog/archive/2006/09/15/4587.aspx