Solved

Need to change field validation in control

Posted on 2009-07-15
2
270 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
Comment Utility
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
Comment Utility
Ah, yes, it was javascript.  Found the function which had math.abs in it.  Thanks for the accurate diagnosis.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 5 99
crm development 2 34
Need to Modify a Script I found 5 75
Hovering effect 9 28
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now