Solved

Need to change field validation in control

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

Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

626 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