Solved

VB.Net Webform -- restrict data entry to numeric

Posted on 2013-02-07
15
356 Views
Last Modified: 2013-09-17
Hi,

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

I'm using VS 2008/ VB.Net


Thanks!
0
Comment
Question by:mbizup
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
15 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 38864259
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 400 total points
ID: 38864318
0
 
LVL 61

Author Comment

by:mbizup
ID: 38864506
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38864576
I used it maybe 5 years ago. It can be used like any other control. Check the samples.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 100 total points
ID: 38864694
0
 
LVL 61

Author Comment

by:mbizup
ID: 38864699
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?
0
 
LVL 61

Author Comment

by:mbizup
ID: 38864719
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.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38864738
you need to add a reference. check http://eworldui.net/Articles/installation.aspx
0
 
LVL 61

Author Comment

by:mbizup
ID: 38865213
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).
0
 
LVL 61

Author Closing Comment

by:mbizup
ID: 38865229
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
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38865304
>>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.
0
 
LVL 61

Author Comment

by:mbizup
ID: 38865326
>> 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.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38865346
more precisely please? have you copied the DLL to your other web sites?
0
 
LVL 61

Author Comment

by:mbizup
ID: 38865388
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).
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38866166
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
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MediaWiki - Move a site 4 56
Copying from a network share 3 37
VB6 calling COM DLL written in Visual Studio 2003 6 57
How to set focus on a dynamic control 18 52
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

734 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