NumberTextBox is a control built on top of TextBox that only allows numbers to be entered. It has the following features:
Defaults to the Number keypad
Can set maximum number of whole numbers and decimal places
Is culture-aware for decimal point character
Blocks both typed and pasted numbers
Can display a message or fire and event if invalid text is entered
Handles: Not a number, multiple decimal points, number too long, has too many decimal places, or has too many whole numbers.
Few days back, LG Electronics hosted its Tech Show 2014 in New Delhi, India and demonstrated more than 230 revolutionary products. Tech Show 2014 is the LG’s annual technology tech show and this year was the 2nd edition of the event. We had the opportunity to explore various LG products at the Tech Show 2014...
I recently had the need to investigate a way to do some complicated projections with Criteria queries and I was faced with what seems a common problem: being able to fully select the properties of the root entity of the criteria. An issue has been raised on NHibernate JIRA and there are some questions on StackOverflow about it. Criteria projections are powerful, but not much documented. I decided to try to understand the problem and find a solution for it. Eventually, I ended um implementing not only a RootEntityProjection but also a generic
EntityProjection. RootEntityProjection selects all the properties of the criteria’s root entity and EntityProjection selects all the properties of any joined entity, selected by its alias. An example for the RootEntityProjection could be:
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here. NHibernate does not support outer (left, right, full) joins in most of its querying APIs, namely, Criteria, Query Over, LINQ and HQL. Of course, LINQ is translated into HQL, so as long as HQL does not support it, nothing really can be done about it. Do note that this problem also happens in Hibernate for Java, it has to do with the way NHibernate/Hibernate is implemented, both can only join entities that are related through some navigation property. It
is, though, possible to perform left joins with SQL. One example is:
I few weeks ago I posted about my new Nokia Lumia 1520 “phablet”: Lumia 1520- First thoughts Tomorrow my new Lumia 1020 will replace the 1520. Why? Because the 1520 is just too big. Otherwise I really like it in a lot of ways – high def screen, easy to read content, very fast, slot for MicroSD card. But it doesn’t fit nicely into my pockets, and it is very awkward to hold up to my ear when talking (yes, I often use BlueTooth, but not always). Mostly though, even with my big hands (I’m 2m tall after all) I can’t use it
Microsoft is offering business users some useful Windows 8.1 tips, tricks and how-to content via a new blog-post series.
- Microsoft's new tack for cheap tablets: Windows 8.1 with Bing
- Visual Studio 2013 Tips & Tricks – Regular Expression in Find and Replace Dialog
- Temporary Post Used For Theme Detection (5a22b1e4-494b-404c-a627-e9b69ace0a79 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)
- Building a 2013 No Code webpart for XKCD.com/now