1
Answer

How to print the value of text box in asp.net.

hi friends..

i ant to print the text of Multiline Textbox trough the printer when client click on print button.
I
I m using following code for that..

//======================
this is for bind the all printer of network in a dropdown
 String InstalledPrinters;
        for (int count = 0; count < PrinterSettings.InstalledPrinters.Count; count++)
        {
            InstalledPrinters = PrinterSettings.InstalledPrinters[count];
           DropDownList1.Items.Add(InstalledPrinters);
//=========

And this is for printing.......

 // prd.DocumentName = TextBox1.Text;


     

       
        prd.PrinterSettings.PrintFileName = "D://pd.txt";//here i want to print the valu of textbox
        prd.PrinterSettings.PrinterName = DropDownList1.Text;

        if (prd.PrinterSettings.IsValid)
        {

            //prd.Print();
        }
        else
        {
            Label1.Text = "invalid printer name";
        }

Thanks & Regards
Mukesh Tiwari
Answers (1)
0
Shivanand Arur

Shivanand Arur

NA 4.9k 745.3k 12y
You can describe the meta tag description, content and keywords just the way we do in any static website... You can define the content like this...

<meta name="description" content="Description of your website.... What your site is all about...">

and 

<meta name="Keywords" content="Here you can describe the keywords used in your site... In your case you can use book names, etc.... Check out for some seo keywords on google for your pdf books"...

You should also popularize your website, by creating accounts on social networking sites like, Facebook, Google Plus, Linked In.... Do remember, the more good keywords you use in your site and the more links you give to your site... the more better SEO u r doing/performing.

Hope this helps you. Feel free to post your question if you still have any doubt.

Thank you.