Solved

Can ASP.Net 2.0 textbox handle superscript and subscript?

Posted on 2008-10-20
6
1,116 Views
Last Modified: 2012-06-27
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
Comment
Question by:vstack
  • 3
  • 2
6 Comments
 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
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
 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
And of course in this view they don't show as the actual characters! ¹ ³ ²
0
 

Author Comment

by:vstack
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
Comment Utility
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
 

Author Comment

by:vstack
Comment Utility
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
 

Expert Comment

by:sobreiro01
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

8 Experts available now in Live!

Get 1:1 Help Now