This is really unclear. If you only want "sangeetha" then only print that. What makes you think that the text box will print? What do enabling controls on your page have to do with anything? Why would you need the textbox to magically disappear when the print button is pressed?

1 solution

Solution 2

1. Common way: Create completely new page that will contain only labels with the data you need printed. Format the page however you see fit. Add a button that will have @media print style display: none; The button should call javascript function window.print();

2. If you want to keep your page without having to create another: create CSS sheet with printing styles in which your text boxes and other controls have "border: none" and background-color = whatever your background color is (or set it to transparent) - that way only the data will be visible when printing.