Link to home
Start Free TrialLog in
Avatar of mbizup
mbizupFlag for Kazakhstan

asked on

VB.Net Webform -- restrict data entry to numeric

Hi,

How do I limit textbox entries in my web page to numeric data (floating point)?

I'm using VS 2008/ VB.Net


Thanks!
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mbizup

ASKER

emoreau,

Do you have personal experience using those controls?

They look ideal, but I'm completely lost on how to use/integrate them in Visual Studio.
I used it maybe 5 years ago. It can be used like any other control. Check the samples.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mbizup

ASKER

I've looked at the demo online, and the markup code they use is:

<ew:NumericBox runat="server" id="nbDemo2" PositiveNumber="True" />  

That causes an error message "Parser Error Message: Unknown server tag 'ew:NumericBox'."

I downloaded the file and ran the installation, but seem to have missed a step.

After downloading and installing, what do I need to do to get Visual Studio to recognize this as a valid control?
Avatar of mbizup

ASKER

CodeCruiser,

I'm digging into those as well...

Ideally I'd like to NOT have to install anything on my company's computers, and I would really like to understand how this works.
Avatar of mbizup

ASKER

sedgwick,

That link/download requires me to register for another site.

 emoreau,

That works...

CodeCruiser,

I've gone through those links and also spent a significant amount of time googling for solutions before posting this question.  While I haven't tried every solution at those links, I've just reached the point of frustration with  trying posts that either allow only integers or don't truly restrict input to floating point because they allow multiple decimal points.  I'm certain that a good solution is *somewhere* in those threads or here on EE, but I haven't found it (that's why I posted this question).
Avatar of mbizup

ASKER

The controls work well, but I can't install/use them in all of my work environments.

Would have preferred guidance (not necessarily a complete solution) right here in this thread to get me going in the right direction, versus links to other sites
>>The controls work well, but I can't install/use them in all of my work environments.

Are you talking about my comment? You need to copy the DLL with your web site. It should be in your bin folder.
Avatar of mbizup

ASKER

>> Are you talking about my comment?

Yes, and sorry for not explaining that clearly.  I was able to get the control working great here... but because of security policies, I can't work with that solution at all locations.
more precisely please? have you copied the DLL to your other web sites?
Avatar of mbizup

ASKER

My understanding is that to use this as a developers' tool on any computer, I have to run the installation package, or directly copy the files that the installer has placed on this computer - to get the needed files in the Program Files directory wherever I need to develop with this, right?  

I can do that at the location I am at presently, but not at other locations with stricter system/network security policies (insufficient permissions).
no. you are using a web application.

you need to install it on your development PC.

you then need to copy the .dll to the web server in the bin folder. nothing has to be installed on users' PC