Wrox Programmer Forums
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 19th, 2011, 05:19 AM
Authorized User
 
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validation

I want to validate a mathematical expression like (a+b)-c in my project. How to do that?
Please can you help me?
__________________
Happy coding...

Arnab Roy Chowdhury.
 
Old May 19th, 2011, 05:41 AM
Authorized User
 
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Default

Use the custom validator \[(]|\[w]|\[+]|.... But how length is your formula?
__________________
Thanks in advance.

Regards,

Senthil Kumar M.
 
Old May 19th, 2011, 05:50 AM
Authorized User
 
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Length is not fixed. Is there is any predetermined reqular expression in .NET?
__________________
Happy coding...

Arnab Roy Chowdhury.
 
Old May 19th, 2011, 06:05 AM
Authorized User
 
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

\[(]|\[w]|\[+]|.... this expression is not working....
__________________
Happy coding...

Arnab Roy Chowdhury.
 
Old May 19th, 2011, 06:20 AM
Authorized User
 
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Default

There is no specific regular expression but you can modify the regular expression already available to make it as custom validator... Else you can use the javascript or vbscript to validate the formula.
__________________
Thanks in advance.

Regards,

Senthil Kumar M.
 
Old May 19th, 2011, 06:23 AM
Authorized User
 
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know that but I want to know what will be my regular expression. Can you provide the regular expression?
__________________
Happy coding...

Arnab Roy Chowdhury.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone validation + web form validation morbo Struts 0 August 19th, 2008 04:02 AM
Validation in C++ code_lover C++ Programming 3 July 23rd, 2008 01:26 AM
Validation using Validation Framework kalyangvd Struts 1 January 2nd, 2008 06:53 AM
validation dhaval229 ASP.NET 1.0 and 1.1 Professional 2 February 14th, 2006 02:10 PM
validation dsmportal Pro VB.NET 2002/2003 4 February 10th, 2005 12:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.