Solved

Need to change field validation in control

Posted on 2009-07-15
2
274 Views
Last Modified: 2013-12-17
Hi Experts,

I'm stuck with trying to help a client who a prior developer for us wrote an application.  It has been years since I did web dev, so forgive what might seem obvious.

There is data validation being performed at the field level.  I know it is the field level since when you exit the field, a negative number changes to a positive, and any formating ($,.) are removed.  The client now needs to allow negative numbers, and I just can't figure out where to make the change.

I'm using VS2005, and the app is in C#.  The control being used is, I believe, Infragistics' Datagrid.  I've been through any property page I can find and looked at the code behind it, but I just can't find where any validation is being performed.  Am I looking in the wrong place?  The closest I could come to something looking like validation is: DataBinder.Eval(Container.DataItem,"amount", "{0:#,0}").

Even after making the change, I may need some help pushing this out, as my prior experiences just required saving Notepad!!
0
Comment
Question by:TWBit
[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
2 Comments
 
LVL 2

Accepted Solution

by:
MPDeveloper earned 500 total points
ID: 24863757
DataBinder.Eval(Container.DataItem,"amount", "{0:#,0}") Is a server side directive which simple formats the number, so it's not that.

When you open the source of the rendered page do you see a "onblur" or "onchange" event tag on the textbox markup? If so, is it calling a JavaScript function that is doing the formatting?

Sounds like a JS issue over a C# issue right now.
0
 
LVL 11

Author Comment

by:TWBit
ID: 24869506
Ah, yes, it was javascript.  Found the function which had math.abs in it.  Thanks for the accurate diagnosis.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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