Solved

How to add superscript and subscript in Textfield

Posted on 2010-09-14
6
798 Views
Last Modified: 2012-05-10
Hi. I wanted to add subscript and superscript Word Like H20, H2So4.
but it is not possilbe with normal texfield. how it can be done in another way.
0
Comment
Question by:swarajya
6 Comments
 
LVL 10

Expert Comment

by:himanshut
ID: 33679357
Water H<sub>2</sub>O will result in H2O

similarly Carbondioxide CO<sub>2</sub> = CO2
0
 
LVL 1

Expert Comment

by:Toraif
ID: 33679387
If you are dealing with textfield, regularely it will take only plain text which does not support subscripts and superscripts.
If you deal with HTML Codes, you can use himanshut tag mentioned above.
 
0
 

Author Comment

by:swarajya
ID: 33679401
i m using it in admin panel means user can enter all this thing but it not supported. what else we can use for this
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Accepted Solution

by:
rajapandian_81 earned 500 total points
ID: 33679928
Use HTML editor. In below samples "X2" button is used for subscript and superscript.

Ajax:
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/HTMLEditor/HTMLEditor.aspx

FreeTextBox:
http://freetextbox.com/demos/

TinyMCE:
http://tinymce.moxiecode.com/examples/full.php

CK Editor:
http://ckeditor.com/demo
0
 

Author Closing Comment

by:swarajya
ID: 33723739
Freetext box worked for me.

Thanks
0
 
LVL 12

Expert Comment

by:rajapandian_81
ID: 33731749
Welcome :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now