All Things DotNet - Page 29 of 32 - All Things DotNet Discussed - Winforms/ASP.Net/SharePoint/WPFAll Things DotNet
  • Subscribe to this RSS feed
  • Receive updates as soon as they are posted.
August 24 , 2010 | | In: WPF

WPF Combobox – Difference in Databinding Terminology

In ASP.Net, for DropDownLists, we had the DataSource or DataSourceID, the DataTextField, for the text that is acthally seen in the DropDownlist, and the DataValueField, for the unseen value of each item.

For a ComboBox, the terminolgy changes a little. We have the ItemSource, the DisplayMemberPath, and the SelectedValuePath (which, IMHO, seems very odd use of the word ‘Selected’)

August 24 , 2010 | | In: WPF

No BorderWidth in WPF

For those of us who came from the ASP.Net world, and used the ‘BorderWidth’ property on many controls, alas, there is no such property in WPF.

However, there is a property in it’s place – – just make sure you use the correct terminology – ‘BorderThickness’

August 23 , 2010 | | In: SharePoint 2010 Tips

Problems Running SharePoint Manager 2010

If you’re having problems running SharePoint Manager 2010 (specifically if you keep getting an invalid 32 bit application error), try running it as ‘Administrator’. That should help the problems.

Not familiar with SPM2010? Check it out (it’s free): http://spm.codeplex.com/

We’ve all seen how websites can look really terrible through the eyes of IE8. But there is hope for the short term, if your ASP.Net website suffers from this malady.  You can make an entry in your web.config, so that even if a customer is using IE8 to view your site, it will be forced to view it through ‘Compatibility View’, which actually uses IE7 to view the site. Read the rest of this entry »

In order to iterate through all the textboxes on a form, and remove the text from all of them, you can use the following In order to iterate through all the textboxes on a form, and remove the text from all of them, you can use the following code: Read the rest of this entry »

The scenario for this tutorial/code sample is simple. You have 2 listboxes. You want to copy items from one item to the other, and since they are in the second listbox, you want to remove them from the first one. Sounds simple, right? Read the rest of this entry »

August 20 , 2010 | | In: WinForms, WinForms Tips

ComboBox Multiple Selection Modes

If you’ve worked with comboboxes before, you’ll notice that the SelectionMode property has 2 different types of multiple selections. One is MultiSimple and the other is MultiExtended. The difference is as follows. Read the rest of this entry »

August 19 , 2010 | | In: ASP.Net, ASP.Net Tips

Dynamic Copyright Year

In the footer of all your pages, do you have a copyright statement, with the year?
Are you tired of having to update it every year? Read the rest of this entry »

August 19 , 2010 | | In: ASP.Net, ASP.Net Tips

Asp.Net Root Shortcut

In your code, in order to refer to the root, all you need to do is put “~/” in the front of your path. I’ve seen many people actually use http:// in order to get to the exact page, but it’s not only not necessary, but overkill.

Let’s say your file is called myFile.aspx and it’s in a folder called ‘myData’, which is in the root. The path to it would be “~/myData/myFile.aspx”

If you are running SharePoint, (even if you’re administrator on the box), and you get an ‘Access Denied’ message when you run the ‘STSADM’ console application, try changing the Command Prompt so that it runs as Administrator.


 



All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF


If you find this site helpful,
please donate to help keep it online and free





Code 'n' Sprox   DreamTemplate - Web Templates

Follow us on Twitter

Follow AllThingsDotNet on Twitter


Test - The Name: 6936