Solved

Need to change field validation in control

Posted on 2009-07-15
2
273 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
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

679 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