![]() |
| ||
| how to print the contents of text box hi all, I am developing a web application. I have loaded some block of text into the text box. Now i want to print only the contents of the text box.Can anybody help me regarding since i am new to asp.net thanks in advance |
| ||
| Re: how to print the contents of text box Print? I guess you mean print on the screen? Did you check the HttpContext.Current.Response object? Regards, |
| ||
| Re: how to print the contents of text box hi, no i have not used HttpContext.current...... If i use that, will it be possible to print the contents of text box in the sameway as i entered into the text box. Can u please explain me briefly how to use that.. thanks |
| ||
| Re: how to print the contents of text box Hi :=) Do you want to change the screen during typeing the text in the textbox? You have to notice that the scripts you write (in the code-behind-page or in the page itself) are serverside executed. Which means that you have to implement some kind of redirection. The redirection has been standarized within the textbox by means of the autopostback option. This, in combination with the TextChange() event is a worse combination because after each keypress the page will be posted back..... The LostFocus() event gives a much better performance on this but the page still have to make a roundtrip to the server in able to execute the scripts..... What exactly are you trying to acchieve? Regards, Richard The Netherlands |
| ||
| Re: how to print the contents of text box hi Richard, Thank you for your reply.Actually i have loaded some block of text into the text box with particular line at particular position. Now i want to print that contents of text box by pressing the print button.Can u please help me to solve this thanks |
| ||
| Re: how to print the contents of text box This code should manage your printing with asp.net. It's a piece of javascript;) <script type="text/javascript"> |
| ||
| Re: how to print the contents of text box I've worked it out to an example for you.... Place 1 textbox control on your page, make it multiline and insert the below stated code in the code-behind page. Regards, Richard The Netherlands Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| ||
| Re: how to print the contents of text box the solution is simple, just open a new window with the content of that textbox using javascript. |
| ||
| Re: how to print the contents of text box hmm... did you read my last post serkansendur? :P |
| ||
| Re: how to print the contents of text box hi richard, I think the code u have written is VB.NET, Can u please send the code in C#. thanks |
| All times are GMT -4. The time now is 6:26 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC