Skip to content

To return a type in uneditable textbox

aashajanani

Asked Mar 22, 2006, 11:59 PM EST1 answer
Share
LinkedInX

Hi ,

I'm having two text boxes

tb1 - editable -here we are going to give data
tb2 - non editable - here we are going to display

In that in tb1 i'm going to give some data and i need to get the type of the data i entered in tb2

for eg : if i'm entering -9 in tb1 ,
then tb2 shud have system.single in an uneditable text box
if i'm entering 16.00 in tb3 [ text box 3 ]
then tb2 shud have system.decimal or double in an uneditable text box

so this tb2 shud act as a place where we can see data types of the data that we are entering in all the boxes in that page / form ..

help me 2 write a neat implementation for this ....

Regards,
priya j

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    That is kinda tricky. Read everything out of it as String. String is IConvertable by design I think. So you should be able to change its type on the fly in a case statment. I would search for IConvertable to get more examples.
    0