Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
i want to print content in the textbox , can u guide me or send any snippets
Posted
Comments
OriginalGriff 18-Feb-12 4:35am    
I'm sorry, but that doesn't tell us what you are trying to do.
Remember, we can't see your screen, access your HDD, or read your mind!
Use the "Improve question" widget to edit your question and provide better information.

You can directly assign text to your textbox by Text property, To set values to HTML control from server side, you can write script to assign value and register it from code behind, by using RegisterClientScriptBlock.
 
Share this answer
 
if you are using asp.net
in your code file use:
C#
textField.Value = "Text";

and "textField" is your textbox.
Another solution is to use javascript if you want to do this client side.
 
Share this answer
 
Comments
Mohammad A Rahman 20-Feb-12 0:18am    
I agree :)
Hi, if you are using JS for printing then before print command, set text box value.

You can use below code for set value

JavaScript
document.getElementById('<%=textbox1.ClientID%>').value = "ABC";
 
Share this answer
 
Hey
Try javascript for this
best luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900