• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1184
  • Last Modified:

Can ASP.Net 2.0 textbox handle superscript and subscript?

Hello,

I am wondering if there is a way for multiline textboxes to accept superscipt as in x2 + y2 = . where the 2's display as exponents. If not, is there a third party component maybe that could do this?

Thank you
0
vstack
Asked:
vstack
  • 3
  • 2
1 Solution
 
TimCotteeCommented:
Hello vstack,

You have a couple of options I guess. The simple answer is no however. The more complicated answer is that you can specify a specific font which allows the use of the extended characters that such as ?, ?, ? (Ascii Chr(251),(252) & (253)). Or implement an html textarea using something like freetextbox, fckeditor, obout editor, tinyMCE etc that can handle superscript etc.

Regards,

TimCottee
0
 
TimCotteeCommented:
And of course in this view they don't show as the actual characters! ¹ ³ ²
0
 
vstackAuthor Commented:
Thanks TimCotee,

I don't think the text editors like freetext will work for me but how did you do the trick with the 'show as the actual characters! ¹ ³ ²'?

How did you specify a specific font  to handle the superscript? Which font?

Thank you




0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
TimCotteeCommented:
vstack,

That was using the RTF entry option rather than plain text here.

Here is an example of this, though it seems that I don't need to pick a particular font (sometimes you do, it just depends on what characters are available in what font).

x² + y² = z²

TimCottee
0
 
vstackAuthor Commented:
Thanks for the help.  I am not sure if what I am trying to accomplish is practically doable.  I wanted the user, me, to simply paste the Course Objectives section into a multiline text box, then I would save the textbox as a text file and read the newly created file line by line, pushing each line into the db as an objective.  This works fine and saves a gazillion lines of data entry.  Once our current batch of course info sheets, about 1200 is saved to db then all new info sheets would be developed inside this software.  No need to read any more files.  The only caveat is this special character thing.

Any suggestions?  

I'll award you the points anyway as I learned something new today which is always a good thing.

Thanks
0
 
sobreiro01Commented:
Hi,

The asp.net text box, is redered as a "<input type="text>" tag in HTML.
Try to always thing in what is really the .NET components, once they are used on the web, so thay a in the reality HTML controls with some functionality added to make it work server side.

However, you can do anything with it, just thing in what you should do in HTML, and then, do it.
You can add attributes to the textbox by using AddAttributes method of the instance of the control you are working.

Hope this helps.
André Luiz Sobreiro
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now