hi all,
I am developing web application. I have some text in text box. Now i want to change the font of some text to different size than the other lines in the text box. How can i do this. Can anybody help me regarding this.
thanks in advance
![]() |
0 |
![]() |
I think you should use some other Text Input control beacause it is not possible in text box. Try the Free text Box in the link below. http://freetextbox.com/default.aspx This will solve your problem
Muhammad Shoaib
Software Engineer,
Lahore, Pakistan
www.heartofpakistan.com (U/C)
--------------------------------
Mark it as ANSWER if it Helps U
![]() |
0 |
![]() |
Hello,
This is not possible with a single text box.
As the properties will be reflected in an entire textbox, if you change the style of the text box, that will affect the entire text box and not the particular words....
Regarding the alternate options for a text box you can go with a HTML editor instead, which you can achieve this...
check out this at the following:
http://forums.asp.net/t/1352878.aspx
ukr
Mark this as Answer if it helps you, As some other might get the solution quickly...!
![]() |
0 |
![]() |
sancti:
I am developing web application. I have some text in text box. Now i want to change the font of some text to different size than the other lines in the text box. How can i do this. Can anybody help me regarding this.Hello,
What you are trying to do is not applicable in ASPNET TextBox Control.. You can instead use Rich Text Editor such as FCKEditor, FreeTextBox or something that you can apply formatting to the contents...
Just google each terms to get more information about the editors mentioned..
Regards,Vinz
"Code, Beer and Music" that's my way of being a programmer!
How to get your Forum Question Answered | Blog | CodeASP.NET
![]() |
0 |
![]() |
hi ukr,
if i use fckeditor in my code, is it possible to load some text from database. Also can u please tel me how can i use this fckeditor in place of text box in my .aspx file.
thanks
![]() |
0 |
![]() |
Hai
You can use FCKEditor , Freetextbox control, Wyswyg editor , etc...,
lot more , fckeditor.net or www.freetextbox.com then download the dll file and place it on
Bin folder and place the support folder for in your project folder , which contain supporting files
then you can use it as a normal controls as textbox... you can also place the control on your
Toolbox... Its also retrieve data from database to you editor controls
Regards,
M.Venkatesan
My Blog : http://venkat-dotnetsamples.blogspot.com
Please remember to click “Mark as Answer” on the post that helps you,and to click “Unmark as Answer” if a marked post does not actually answer your question.
![]() |
0 |
![]() |
Hello sancti,
If you use the editor controls, You just need to assign the value as for a normal text box and it will work fine.
FreeTextBox1.Text = "Text value returned from the DB";
Regarding the Use of the editor control to be added to our site...
Eg. take "FreeTextBox", download the dll and corresponding files from the site and copy to your application directory. Make sure that the FreeTextBox.dll is referenced in the application and also It will add a httpHandler in the Web.Config file of the application .
Make sure of the files, dll and httpHandler... then add the tag below the page directory
and then when you try the Intellisense, it will automatically give the tag to you
Also your page directive tag should have the ValidateRequest="false" to work with this. else you will get an error
Hope its very clear now... Let me know of you did not get any...!
ukr
Mark this as Answer if it helps you, As some other might get the solution quickly...!
![]() |
0 |
![]() |
hi ukr,
thank u for ur reply.i have downloaded all the files of free text box. But i am finding difficult to inserting this into my project . Can u explain clearly how can i insert this into my project since i am new to this asp.net.
thanks,
![]() |
0 |
![]() |
Hai
First place the freetextbox.dll file into you bin folder
and there is ftb folder in your downloaded files is it
copy the Ftb Folder and paste it on you project folder
and also in you toolbox Rightclick - > choose items -> select Browse -> select freetextbox.dll file -> ok ---> click ok
then it will added in your toolbox -> then drag and drop in your page....
That's alll , I think you can understand..
use Freetextbox.text , while u save to database ....
Regards,
M.Venkatesan
My Blog : http://venkat-dotnetsamples.blogspot.com
Please remember to click “Mark as Answer” on the post that helps you,and to click “Unmark as Answer” if a marked post does not actually answer your question.
![]() |
0 |
![]() |
sancti:
i have downloaded all the files of free text box. But i am finding difficult to inserting this into my project . Can u explain clearly how can i insert this into my project since i am new to this asp.net.How To: Use FreeTextBox in ASPNET
http://www.a2zdotnet.com/View.aspx?id=28
Regards,Vinz
"Code, Beer and Music" that's my way of being a programmer!
How to get your Forum Question Answered | Blog | CodeASP.NET
![]() |
0 |
![]() |
Hello sancti,
Sorry for the late reply...!
Can you let me know what exactly you are getting problem when adding the freetextbox? So that it will be easy to resolve that.... else you can go with the FCK Editor if you find that as easy.. Here is the sample project which uses the FCK Editor
http://www.codeproject.com/KB/aspnet/HTMLEditor.aspx
Let me know if you still face any problem
Hope this helps...!
ukr
Mark this as Answer if it helps you, As some other might get the solution quickly...!
![]() |
0 |
![]() |
hi ukr,
Thank u for ur reply, I will tel u where i am getting error. I have used the below mentioned link to insert the free text box into my project. http://www.a2zdotnet.com/View.aspx?id=28
In think link, i am getting error on step 4. The error is : Could not load file or assembly 'FreeTextBox' or one of its dependencies. The system cannot find the file specified
So How can i solve this. Can u please help me regarding thisthanks
![]() |
0 |
![]() |
Check whether you placed the Freetextbox.dll file in you Project -> Bin Folder
and also make sure would you placed the supported folder in you project./..
Regards,
M.Venkatesan
My Blog : http://venkat-dotnetsamples.blogspot.com
Please remember to click “Mark as Answer” on the post that helps you,and to click “Unmark as Answer” if a marked post does not actually answer your question.
![]() |
0 |
![]() |
hi venkatu,
Yes i have copied freetextbox.dll file to bin folder and also FCK editor my project folder.But its name is FredCK.FCKeditorV2.dll. Is change of name may be a problem?
thanks
![]() |
0 |
![]() |
Hai Both Fckeditor and Freetextbox are Independent control
of both of them has same functionality just use Freetexbox.dll and place it in Bin Folder
once you download the Freetexbox control , wat are the folder name you get List the folder...
and also paster you HTML Source code... , Mention the Error...
Regards,
M.Venkatesan
My Blog : http://venkat-dotnetsamples.blogspot.com
Please remember to click “Mark as Answer” on the post that helps you,and to click “Unmark as Answer” if a marked post does not actually answer your question.
![]() |
0 |
![]() |
The name of the dll is "freetextbox.dll" and add reference for the same.
Are you having the support files of css and images pointing to the controls?
Also did you change the web.config file of the application?
ukr
Mark this as Answer if it helps you, As some other might get the solution quickly...!
![]() |
0 |
![]() |
hi,
Now the freetextbox is displaying.But it is not correctly displaying. Inside that freetextbox it is giving warning message. It is not installed correctly. I think the problem is with the support folder. I have extrated saved freetextbox directly to my project folder. And I gave full path in support folder. But still it is not displaying correctly. I have added all reference and changed web config. I cannot able to find where exactly the problem is. can u please help me.
thanks
![]() |
0 |
![]() |
Hi use supportfolder="foldername" in the html tag of the
<cc1:freetextbox supportfolder="foldername"
Let you paste your HTML code and if possible the screenshot of the Solution explorer..
so we give the exact solution for the error...?
Regards,
M.Venkatesan
My Blog : http://venkat-dotnetsamples.blogspot.com
Please remember to click “Mark as Answer” on the post that helps you,and to click “Unmark as Answer” if a marked post does not actually answer your question.
![]() |
0 |
![]() |
hi,
I solved the error and the FreeTextBox is displaying correctly. But now the problem is i cannot put \n and space between the text.i.e i am writing FreeTextBox1 = "hello world\n"; But here it is not taking \n. What can i do for \n and space. Actually i am forming a complete table and left side part of the table initially inside the FreeTextBox. The right side of the table will come from database during runtime. Is it possible to make table and left side text of the table fixex initially. Can u please help me regarding this.
Thanks
![]() |
0 |
![]() |
Hai there is no need to write html tags for line or break
in the freetexbox you can draw table , anchor links, paste the images ,..
for line just enter text on next line it will automatically insert the html tage in the database
to save the text in the Freetextbox control. is
Ex: String s = freetextbox.Text;
Regards,
M.Venkatesan
My Blog : http://venkat-dotnetsamples.blogspot.com
Please remember to click “Mark as Answer” on the post that helps you,and to click “Unmark as Answer” if a marked post does not actually answer your question.
![]() |
0 |
![]() |
hi,
I am not inserting text directly into the freetext box. For inserting a text inside the freetext box i have written code inside the button_click event of .aspx.cs file. When i click the button it should insert the text. But the problem is it is inserting all the text but not considering any \n or space. So how can i put \n and space to it. Otherwise the table should be ready inside the free text box before clicking the button.When i click the button it should produce the right side text from the database. I should not insert any text into the free text box during run time. Can u please help me regarding this.
Thanks
![]() |
0 |
![]() |
I am not getting for wat purpose are you using this...
shall i view your code , code behind......
Freetextbox is used like a word, user can change font size style , color etc...
Regards,
M.Venkatesan
My Blog : http://venkat-dotnetsamples.blogspot.com
Please remember to click “Mark as Answer” on the post that helps you,and to click “Unmark as Answer” if a marked post does not actually answer your question.
![]() |
0 |
![]() |
hi venkatu,
Actually i am generating a small student report. To generate the report i have written the code inside the button click. When the user click the button , it will generate the report. Previously i used text box for this. Text box can be able to produce the report but it cannot be able to change the font. Also i tried to take the print out of the contents of text box. But i didnt get that. I got the full web page print out. So i thought of using free text box. Now i can be able to take print out of the report , but the text is not inserting properly(it is not considering \n and space for ex : FreeTextBox1.Text = hello world\n; FreeTextBox1.Text = "hai\n"; This two lines should be printed in two different lines of the free text box). Just i want to know how can i insert \n and space inside the free text box. If this is not possible can u please tel me how to print only content of text box.
![]() |
0 |
![]() |
Are you assigning the text directly to freetextbox in Code
dont do like that... just type in the freetextbox at runtime and click one ADD button
then bind to datalist then print the report from the Datalist... I think you got my point..
Regards,
M.Venkatesan
My Blog : http://venkat-dotnetsamples.blogspot.com
Please remember to click “Mark as Answer” on the post that helps you,and to click “Unmark as Answer” if a marked post does not actually answer your question.
![]() |
0 |
![]() |
hi venkatu,
Since i am producing the report, i cannot able to put the text into the free text box during the runtime. Bcoz if the user want to see the report of the student means, he should press only the button, and he should not insert any text. when he press the button the free text box should produce the report and he should be able to take the print out of it. This is what i need. Can u give me suggestion to do this.
thanks
![]() |
0 |
![]() |
Hello sancti,
Have you used the validateRequest='false' in the Page directive of the page where the HTML Editor is placed?
Make sure that this is in the form Page directive tag... !
ukr
Mark this as Answer if it helps you, As some other might get the solution quickly...!
![]() |
0 |
![]() |
hi ukr,
I have already written that statement validateRequest = false. Now i cannot be able to load some text into freetext box since it is not considering space and \n. Can u please help me to solve this.
thanks
![]() |
0 |
![]() |