Geeks With Blogs

News
David Madden Mastering the craft one mountain at a time.
I have a ListView that is holding session dates for sessions someone may attend. I like to use a MonthCalendar control to allow the user to select several dates, allowing the control's DateSelected event to add an entry to the ListView control as a formatted date string for readability. Sorting is not nice though using the plain sort orders.So I implemented ......

If you have to display a two numbers and a percentage from older T-SQL you can do the following.cast((((cast((que... as decimal) / cast((query1) as decimal)) * 100)) as decimal(5,1)) as 'Percentage'This will yield you a nice percentage like 67.9. All the casting is to preserve the numbers as decimals and not be boxed to integers. Note: Each query should ......

I do not deal many Crystal Reports but recently have had to dive into a few. One of the things that drive me nuts is dealing with numbers such as in the running totals. To get a number to display correctly you need to use the ToText function. A good site I found is this. To get the variable myNumber = 2.3798554 to display as 2.4 you would do the following: ......

It is a good practice to leave comments in your code. Knowing what the hell you were thinking or later intending can be salvation for yourself or the poor soul coming behind you. Comments can leave clues to why you chose one approach over the other. Perhaps staged re-engineering dictated that coding practices vary.One thing that should not be left in ......

LastPass.com.  Get it, use it, save your sanity.  This is a great program to be able to remember one hard password and be able to generate several other hard passwords for each site, application, or sign in you have to use.  Highly Recommended.

If you have to support some older Winforms you might like to remember this. When opening a MessageBox to display that the user entered incorrect information, if you are doing so from a dialog, catch the DialogResult of the MessageBox and then set this.DialogResult = DialogResult.None; to prevent the dialog from closing if you want the user to try again. ......

Sometimes it the old habits and not the LINQ query. Look to the final object assignment if data is not what you though it should be and the query tested well in LINQPad. I had failed to look into the fact the foreach loop had a coding error that was causing the data to not be part of the custom class, which output the XML from the web service. This is akin to first checking the availability of power and then the power cord if you computer has stop working.

I find myself on an assignment where I could not use System.Web.Security.Roles. That meant that I could not use Visual Studio's Website | ASP.NET Configuration. I had to go about things another way. The clues were in these two websites:http://www.csharpa... ......

23
May 12
I would highly suggest subscribing to PluralSight if you are wanting to learn different technologies and frameworks. I am a Visual Learner and find that it is very easy to throw on the headphones and run the app from the phone. The videos are well designed and the screens are also well designed to be comfortable viewing on smaller screens such as the ......

I found many websites that showed either misinformation, incorrect code, or denial of the ability to use a class as a datasource for an asp.net listview control. It is actually very simple.First you need to define your class. I created private fields and public property to get and set values for those fields. I then created a static function (since ......

Copyright © DavidMadden | Powered by: GeeksWithBlogs.net | Join free