I am having performance issues on an ASP.NET page. It has a lot of data - and is using autopostbacks for some fields. I need to create a faster way to do this. Any suggestions?
This is what needs to happen:
The page needs to be able to display and correctly save numeric values that may need to be converted to metric values. The data is ALWAYS STORED IN US values (with 4 decimal place accuracy). For example, if the value is 12 feet, the value stored in the database is 12. If the user that is viewing the page has a login type of Canadian, then this page will need to convert the 12 Feet to the appropriate number of Meters and display that. When the user saves the page, the value in this field will need to be converted to FEET and saved.
The way that I am currently doing this is to have a hidden label field on the form and load the database value into this form on page load. I have an onchange event for this textbox that causes any entered value to be stored in the hidden field (and converted to US value (feet) if this is a Canadian user) I have an autopostback on this field.
My solution works great - except that there is a huge performance problem.