| | |||||||
|
Welcome to the YD Scuba forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
| Technology: Discuss ASP.NET Control Question in the Non-Diving Related Forums forums: OK, have wracked my brain (what little there is to wrack!) and I'm flummaxed, although it seems to be something ... |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| not used asp.net but asp you could access control.text but the fact that you are facing this data-translation problem suggests you've missed a trick OO-wise. the only reason to have value and text different and using the text for lookup is if you are using the value for another lookup or calculation. This is a "hack" and should be avoided because what do you do when you need to apply a third piece of logic and neither your text nor value are suitable? You need to model the relationship between your menu choices and table keys in either an object or an intermediate table. Another problem with your current solution is that it breaks down if the text in your table is not suitable for presentation in an html control oh, and searching tables using text is yuk HTH |
| ||||
| Quote:
Thanks for the above. I was actually just trying to add some additional (useful) info to a screen, but it appears that it's not going to be possible, and as you say, will not really fit in with anything else. Thanks anyway Regards Martin |
| Thread Tools | |
| Display Modes | |
| |
| | ||