Solved

How to add superscript and subscript in Textfield

Posted on 2010-09-14
6
797 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

24 Experts available now in Live!

Get 1:1 Help Now