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’)
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’
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 »
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 »
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 »
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