Friday, July 13, 2012

[Sample of Jul 9th] ASP.NET event bubbling sample

[Sample of Jul 9th] ASP.NET event bubbling sample:

Homepage image
image RSS Feed
Sample Download : http://code.msdn.microsoft.com/CSASPNETuserControlEventExp-7cbad03f 
The project illustrates how to bubble an event from Web User Control to the web page that may display something on Web Page according to which event is fired in this User control. To achieve that, we declare a delagate and an event in the user control code behind, add one button to this User Control.  Add the following lines of code in the click event of button of User Control.
if (MyEvent != null)
{
    this.MyEvent(sender, e);
}
Response.Write("User Control��s Button Click <BR/>");
In the Default.aspx.cs file,Load the usercontrol, and subscribe the event of the user control in the page load event.  Define a suitable event handler to display the dropdownlist selected value.

imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.

Create RSS feed in ASP.NET

[Sample of Jul 10th] Create RSS feed in ASP.NET:

Homepage image
image RSS Feed
Sample Download : http://code.msdn.microsoft.com/CSASPNETRssFeeds-7f3a69e0 

This example shows how to create a rss feed using ASP.NET. The AddArticle page in the sample is used to update the database. We can add, edit, update and delete a record, an article it is in this sample, and then turn to Rss page to find the change. Using classes within XML namespace, Rss page create a rss feed that can be subscribed by users so that users can be noticed as soon as there is any change happened in the website. 

 


imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.

Could not find a part of the path ... bin\roslyn\csc.exe

I am trying to run an ASP.NET MVC (model-view-controller) project retrieved from TFS (Team Foundation Server) source control. I have added a...