Thursday, December 11, 2008
To begin with, install the free Microsoft Chart Controls and the "Tools for VS 2008 for Chart Controls" from here and here
Note that if you don’t install the Tools for VS 2008 for Chart controls, the Chart Server Control doesnt show up in the Toolbox
Once you are done with the installation, restart Visual Studio if you are already running the same (of course, save your work)
1. Start Visual Studio 2008 and create a File – New – ASP.NET Website or a Web Application
2. From the ToolBox, under Data tab, pick up the “Chart” control (the icon would be a series of colored bar graphs) and drag and drop it into the page.
3. Click on the smart tag for configuring the Chart control and Choose DataSource
4. Select “Database” and provide the connection string to your database server (in my case I chose Northwind)
5. Choose to save the connection string etc., and select the Database table (in my case I chose “Category Sales for 1997”)
6. Click “Finish” to complete the process.
7. Now if you run the page you will NOT get the Chart Control.
8. You need to select the Properties of the Chart Control from design view.
9. Make sure under “Data” DataSource is set to “SqlDataSource1” unless you gave a different name and DataMember is set to “DefaultView”
10. Under “Series” in Properties, click on the tab to open up the “Series Collection Editor”.
11. Scroll down the Series1 Properties to DataSource section.
12. Specify “CategoryName” as the XValueMember and “CategorySales” for YValueMembers and click Ok.
13. Build the page and hit F5 to run the page.
14. You will be able to see the Chart in your webpage.
15. Right Click on the chart and you would be able to see that it is an image generated dynamically that can be saved as a “.png” file.
You can download a comprehensive list of samples from here and verify the different implementations and source code for the same. For more details, visit the forums here
Monday, December 8, 2008
Microsoft made the Oxite source code available for download on December 5. Oxite is available under the Microsoft Public License (MS-Pl), one of its OSI-certified open-source licenses.
From Microsoft’s description of Oxite:
“Oxite provides you with a strong foundation you can build upon - pingbacks, trackbacks, anonymous or authenticated commenting (with optional moderation), gravatar support, RSS feeds at any page level, support for MetaWebLog API (think Windows Live Writer integration made easy), web admin panel, support for Open Search format allowing users to search your site using their browser’s search box, and more - so, you can spend time on designing a great experience.”
Microsoft is positioning Oxite as more than just a blogging engine, claiming it can support even large Web sites. The company also is positioning the platform as customizable, allowing users to swap out Microsoft technologies, like database and search providers — specifically, SQL Server and Live Search — for non-Microsoft ones.
The Oxite content-management platform is “built to take full advantage of ASP.NET MVC but broken into assemblies so that even ASP.NET WebForm developers can use the data backend and utility code, supports use of Visual Studio Team Suite (DB Pro, Test, etc.), and Background Services Architecture (sending trackbacks, emails, etc. all done as a background process to prevent delays on the web site itself),” according to the Softies.
In searching for information on Oxite, I noticed a few folks wondering aloud why Microsoft felt a need to develop another content-management system, given that SharePoint Server provides content-management functionality. One obvious difference is the open-/closed-source aspect of the projects.
Any interest out there in an open-source CMS from Microsoft?
Saturday, December 6, 2008
fonts.Add("Times New Roman");
FontsCombo.DataContext = fonts;
When CLR objects are used to populate a combo box, UIElements are automatically generated for them using the data template (in this case the default data template is a TextBlock). Two different UIElements are created so CLR objects can be shown in both the selection box and drop-down at the same time.
Hopefully this clears up any confusion. Also this info is now in the online docs.
Saturday, November 22, 2008
The Promote feature will allow you to move results up to the top of the list of your results, for future searches. This little addition to the search engine will help users by adding their favourite web sites to the top of each individual search result, that brings back that page. So for instance, if a user wished to promote www.neowin.net to the top of the page, and query a search for a keyword on the front page, it would place Neowin.net on the top of your search results. This is a benefit for people who promote their favourite sites like Neowin to return the first result.
Beside the Promote button, comes the Remove button. This button will delete that result from your future searches, to prevent it from coming back up again. This could be helpful in blocking those web sites that provide no helpful information to you. This is a great way to stop going back to the same bad result time and time again.
Finally, the Comment button, where users can leave a comment about any result, making it useful for coming back to later. Users can add helpful comments for other users, or for themselves when visiting the site next time.
Google has become one step closer to being your next bookmark organizer. Now you can view, save and edit your favourite sites all within Google. The bad thing about these features is, the fact most people don't search the same thing all the time, making it hard to take advantage of some of these features.