<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>visual-studio-2008 &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/visual-studio-2008/</link>
	<description>Feed of posts on WordPress.com tagged "visual-studio-2008"</description>
	<pubDate>Thu, 26 Nov 2009 11:24:36 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Providing multiple Web.configs in VS2008]]></title>
<link>http://hagbarddenstore.wordpress.com/2009/11/26/providing-multiple-web-configs-in-vs2008/</link>
<pubDate>Thu, 26 Nov 2009 02:54:54 +0000</pubDate>
<dc:creator>hagbarddenstore</dc:creator>
<guid>http://hagbarddenstore.wordpress.com/2009/11/26/providing-multiple-web-configs-in-vs2008/</guid>
<description><![CDATA[I was playing around with the MSBuild system this weekend and realized I could do something useful w]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I was playing around with the MSBuild system this weekend and realized I could do something useful with it. So today I got a question from someone in the ##asp.net IRC-channel on Freenode about having a value that changes when in Debug, Release or other profile for running the application. I came up with this little nifty thing in my .csproj file:</p>
<pre>&#60;Copy
  SourceFiles="$(MSBuildProjectDirectory)\Web.$(Configuration).config"
  DestinationFiles="$(MSBuildProjectDirectory)\Web.config" /&#62;
</pre>
<p>To put that into your .csproj file you need to unload the project and then edit the .csproj file.</p>
<ol>
<li>Right click on the chosen project and click &#8220;Unload project&#8221;</li>
<li>Right click again on the chosen project and click &#8220;Edit .csproj&#8221;</li>
<li>Find the following tag: &#60;Target Name=&#8221;BeforeBuild&#8221;&#62; and uncomment that tag.</li>
<li>Put the code into the tag and save the file.</li>
<li>Right click the chosen project and click &#8220;Reload Project&#8221;.</li>
</ol>
<p>Now create one file called Web.Debug.config and one called Web.Release.config. Put the settings and what not you want to have in there, a good start is to copy the default Web.config file into both files. Delete the default. Web.config file and try to run the project. It will complain about enabling debugging in the Web.config file, ignore that and chose run without debugging and press ok.</p>
<p>That&#8217;s it, now you got two different Web.configs that are chosen depending on your current configuration.</p>
<p>I would love any input on this.</p>
<p>&#160;</p>
<p><strong>EDIT:</strong> To get rid of the dialog telling you that you don&#8217;t have a Web.config, do the following:</p>
<ol>
<li>Click the Project menu and click &#8220;Show all files&#8221;</li>
<li>Find the Web.config and include it.</li>
<li>Click the Project menu and click &#8220;Show all files&#8221; again.</li>
</ol>
<p>Don&#8217;t do any edits to the Web.config as that file will be replaced on each build. By doing this you keep VS happy and you happy.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Animação dinâmica em Silverlight ]]></title>
<link>http://flamoreira.wordpress.com/2009/11/25/animacao-dinamica-em-silverlight/</link>
<pubDate>Wed, 25 Nov 2009 15:20:11 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/25/animacao-dinamica-em-silverlight/</guid>
<description><![CDATA[Nesta vídeo aula de Dowhile.com.br você irá aprender a criar uma animação estática e dinâmica em Sil]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Nesta <strong>vídeo aula de Dowhile.com.br </strong>você irá aprender a criar uma<strong> animação estática e dinâmica em Silverlight 4</strong>, utilizando o Microsoft <strong>Blend 4</strong> e <strong>Visual Studio 2010</strong> Beta 2, porém você poderá aplicar os mesmos conceitos utilizando o Silverlight 3 com o Blend 3 e Visual Studio 2008.</p>
<p>Segue o Link</p>
<p><a href="http://www.dowhile.com.br/videos/silverlight/113-animacao-dinamica-em-silverlight.html">Animação dinâmica</a></p>
<p>&#160;</p>
<p>Abraços e bom divertimento,</p>
<p>Flávia Moreira</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Disable Javascript Debugging in IE8 / Visual Studio 2008 Windows 7 64bit]]></title>
<link>http://dotlab.wordpress.com/2009/11/25/disable-javascript-debugging-in-ie8-visual-studio-2008-windows-7-64bit/</link>
<pubDate>Wed, 25 Nov 2009 14:02:26 +0000</pubDate>
<dc:creator>dotlab</dc:creator>
<guid>http://dotlab.wordpress.com/2009/11/25/disable-javascript-debugging-in-ie8-visual-studio-2008-windows-7-64bit/</guid>
<description><![CDATA[Nach der Installation von Windows 7 64bit mit IE8 gibt es offensichtlich keine Möglichkeit, in IE8 d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Nach der Installation von Windows 7 64bit mit IE8 gibt es offensichtlich keine Möglichkeit, in IE8 das Javascript Debugging abzustellen. Eine entsprechende Checkbox in den Internetoptionen hat keinen Einfluss auf das Verhalten, bei der Verwendung des Development Servers dauert die Ausführung von Webprojekten gefühlte 5-10x länger. Nach einer längeren Google Suche bin ich auf folgende Lösung gestossen:</p>
<p>Den 32bit Commandprompt als Administrator öffnen (c:\windows\syswow64\cmd.exe) und folgenden Registry Hack ausführen:</p>
<p>reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f</p>
<p>Spätestens beim nächsten VS2008 Start ist das Script Debugging disabled! Um das Debugging wieder zu aktivieren, folgenden Hack ausführen:</p>
<p>reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {170EC3FC-4E80-40AB-A85A-55900C7C70DE} /f</p>
<p>Die Credits für diese Lösung gehören www.dotnetpete.com! Thanks alot!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to generate XML Schema from XML file?]]></title>
<link>http://weseetips.com/2009/11/22/how-to-generate-xml-schema-from-xml-file/</link>
<pubDate>Sun, 22 Nov 2009 16:55:44 +0000</pubDate>
<dc:creator>Jijo.Raj</dc:creator>
<guid>http://weseetips.com/2009/11/22/how-to-generate-xml-schema-from-xml-file/</guid>
<description><![CDATA[Ever wondered how to generate XML schema from XML file? Indeed, a lot of 3ed party tools can do it f]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.wordpress.com/files/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
Ever wondered how to generate XML schema from XML file?<br />
Indeed, a lot of 3ed party tools can do it for you. But as usual, any easy way?</p>
<p><a href="http://weseetips.wordpress.com/files/2009/11/xsdfromxml.jpg"><img class="alignnone size-full wp-image-1244" title="XsdFromXml" src="http://weseetips.wordpress.com/files/2009/11/xsdfromxml.jpg" alt="" width="500" height="346" /></a></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.wordpress.com/files/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
You can use Visual Studio IDE itself to generate XSD from XML file. Follow the steps.</p>
<p>1) Open the XML file in Visual Studio IDE.<br />
2) Take View &#62; Other Windows &#62; Command Window.<br />
3) Now type and execute command &#8211; <strong>XML.CreateSchema<br />
</strong>4) See, the schema is generated.</p>
<p><a href="http://weseetips.wordpress.com/files/2009/11/xsdfromxml1.jpg"><img class="alignnone size-full wp-image-1245" title="XsdFromXml1" src="http://weseetips.wordpress.com/files/2009/11/xsdfromxml1.jpg" alt="" width="510" height="382" /></a></p>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.wordpress.com/files/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
A hidden pearl in VS IDE. Isn&#8217;t it?</p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.wordpress.com/files/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Artigos e Vídeos em Silverlight]]></title>
<link>http://flamoreira.wordpress.com/2009/11/21/artigos-e-videos-em-silverlight/</link>
<pubDate>Sat, 21 Nov 2009 23:35:10 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/21/artigos-e-videos-em-silverlight/</guid>
<description><![CDATA[Olá pessoal. Como eu estou mudando o meu blog para um site, então atualizei as informações. Segue al]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Olá pessoal.</p>
<p>Como eu estou mudando o meu blog para um site, então atualizei as informações.</p>
<p>Segue alguns artigos e vídeos sobre Silverlight.</p>
<p><strong>Usando Javascript e Silverlight</strong></p>
<p><a href="http://www.dowhile.com.br/artigos/silverlight/63-usando-funcao-javascript-em-silverlight-.html">http://www.dowhile.com.br/artigos/silverlight/63-usando-funcao-javascript-em-silverlight-.html</a></p>
<p>Usando e-mail e Webservice</p>
<p><a href="http://www.dowhile.com.br/artigos/silverlight/60-enviando-e-mail-com-silverlight-parte-ii-.html">http://www.dowhile.com.br/artigos/silverlight/60-enviando-e-mail-com-silverlight-parte-ii-.html</a></p>
<p><a href="http://www.dowhile.com.br/artigos/silverlight/59-enviando-e-mail-com-silverlight-parte-i-.html">http://www.dowhile.com.br/artigos/silverlight/59-enviando-e-mail-com-silverlight-parte-i-.html</a></p>
<p>Usando linq to sql</p>
<p><a href="http://www.dowhile.com.br/artigos/silverlight/58-populando-datagrid-usando-linq-to-sql-em-silverlight-parte-ii.html">http://www.dowhile.com.br/artigos/silverlight/58-populando-datagrid-usando-linq-to-sql-em-silverlight-parte-ii.html</a></p>
<p><a href="http://www.dowhile.com.br/artigos/silverlight/57-populando-datagrid-usando-linq-to-sql-em-silverlight-parte-i.html">http://www.dowhile.com.br/artigos/silverlight/57-populando-datagrid-usando-linq-to-sql-em-silverlight-parte-i.html</a></p>
<p><strong>vídeo</strong></p>
<p><strong>Usando Javascript e Silverlight</strong></p>
<p><a href="http://www.dowhile.com.br/videos/silverlight/64-acessando-metodo-csharp-pelo-javascript.html">http://www.dowhile.com.br/videos/silverlight/64-acessando-metodo-csharp-pelo-javascript.html</a></p>
<p>Abraços</p>
<p>Flávia Moreira</p>
<p><a href="http://www.dowhile.com.br">http://www.dowhile.com.br</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Visual Studio 2008 web test recorder not working on 64-bit]]></title>
<link>http://chrisbarba.wordpress.com/2009/11/21/visual-studio-2008-web-test-recorder-not-working-on-64-bit/</link>
<pubDate>Sat, 21 Nov 2009 21:05:33 +0000</pubDate>
<dc:creator>chrisbarba</dc:creator>
<guid>http://chrisbarba.wordpress.com/2009/11/21/visual-studio-2008-web-test-recorder-not-working-on-64-bit/</guid>
<description><![CDATA[The load test in Visual Studio are a great help to stress/performance test you applications.&#160; W]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The load test in Visual Studio are a great help to stress/performance test you applications.&#160; With the web test you “should” be able to record actions as you use your application.&#160; When you add a web test IE starts and there should be recorder bar on the left.</p>
<p><a href="http://chrisbarba.files.wordpress.com/2009/11/image5.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://chrisbarba.files.wordpress.com/2009/11/image_thumb5.png?w=430&#038;h=377" width="430" height="377" /></a> </p>
<p>When ever I created a web test I never saw the web test recorder bar show up.&#160; I didn’t even know I was missing it.&#160; So, I was never able to get to do anything besides record that you launched a page which helps you test page load time, but doesn’t help you when your trying to determine the response time when clicking a button on your page.</p>
<p>After a little research (little as in there are few articles explaining this problem), I found a blog post explaining why the web test recorder not working.&#160; It turns out to be a 64-bit issue.&#160; There are some registry keys that need to be deleted, so IE will rebuild what explorer bars are available.</p>
<p>Here is the link to the article.</p>
<p><a title="http://weblogs.asp.net/jdanforth/archive/2009/09/05/visual-studio-2008-web-test-not-recording-on-64-bit-windows-7.aspx" href="http://weblogs.asp.net/jdanforth/archive/2009/09/05/visual-studio-2008-web-test-not-recording-on-64-bit-windows-7.aspx">http://weblogs.asp.net/jdanforth/archive/2009/09/05/visual-studio-2008-web-test-not-recording-on-64-bit-windows-7.aspx</a></p>
<p>The short version is close all IE’s, run regedit, then delete the following keys</p>
<p>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\   <br />Discardable\PostSetup\Component Categories\{00021493-0000-0000-C000-000000000046}     <br />HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\    <br />Discardable\PostSetup\Component Categories\{00021494-0000-0000-C000-000000000046}</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Tools &amp; Code: Build A Windows Service With Visual Studio 2008]]></title>
<link>http://tech-notes.info/2009/11/21/tools-code-build-a-windows-service-with-visual-studio-2008/</link>
<pubDate>Sat, 21 Nov 2009 17:17:52 +0000</pubDate>
<dc:creator>Black Falcon</dc:creator>
<guid>http://tech-notes.info/2009/11/21/tools-code-build-a-windows-service-with-visual-studio-2008/</guid>
<description><![CDATA[Being new to building Windows Services can be a confusing task considering the amount of information]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Being new to building Windows Services</strong> can be a confusing task considering the amount of information available; most of which appears to assist in the issues that crop up with their development.  Those articles that demonstrate how to build Windows Services correctly for the most part appear to address earlier versions of Visual Studio.  One wouldn&#8217;t think that there would not be much difference but in the writer&#8217;s recent experience there appears to be.</p>
<p>Not surprisingly, the best document that is available for a developer new to this type of development comes directly from Microsoft&#8217;s MSDN site.  The emphasis is placed on the construction of a proper service framework as well as its correct installation in to the Services cache.  This latter process appears to cause a lot of problems with developers whereby there is much confusion between what the Visual Studio will do for you in terms of a service&#8217;s installation and what may have to be done with the command-line utility, &#8220;InstallUtil&#8221;, that is provided with the .NET Framework(s).</p>
<p>The MSDN document, which follows, will demonstrate the following for you&#8230;</p>
<p>1)  Creating a service project<br />
2)  Creating an installation\setup project<br />
3)  Creating the proper framework for a service that will install into the Services cache properly</p>
<p>With the built-in overriden functions such as &#8220;onStart&#8221; and &#8220;onStop&#8221;, much of the task oriented code required by any given service can be easily implemented.  This document and another, which describes implementing a timer with a service are also available in PDF format for downloading along with the links for the article sources&#8230;</p>
<p><em>Black Falcon</em></p>
<p><!--more--></p>
<p><span style="font-size:9pt;"><br />
<em>Note: Only the C# code has been included in the following document.  Samples for VB.NET and J# can be found on MSDN at the article source.<br />
</em><br />
</span></p>
<p>Article Source:  <a href="http://msdn.microsoft.com/en-us/library/zt39148a%28VS.80%29.aspx">http://msdn.microsoft.com/en-us/library/zt39148a%28VS.80%29.aspx</a><em> </em></p>
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><span style="font-size:14pt;"><br />
<strong>Walkthrough:   Creating a Windows Service Application in the Component Designer</strong><br />
</span><strong> </strong></td>
<td><a title="Home" href="http://msdn.microsoft.com/en-us/default.aspx"></a></td>
</tr>
<tr>
<td>This   page is specific to:.NET Framework Version:2.0 <a href="http://msdn.microsoft.com/en-us/library/zt39148a%28VS.90%29.aspx">3.5</a> <a href="http://msdn.microsoft.com/en-us/library/zt39148a%28VS.100%29.aspx">4.0</a></td>
<td></td>
</tr>
</tbody>
</table>
<p>Visual Studio Programmer&#8217;s Guide for the .NET Framework</p>
<p>Walkthrough: Creating a Windows Service Application in the Component Designer</p>
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>Note </strong></td>
</tr>
<tr>
<td>The <strong>Windows   Service</strong> template and associated functionality is not available in the   Standard Edition of Visual Studio. For more information, see <a href="http://msdn.microsoft.com/en-us/library/zcbsd3cz%28VS.80%29.aspx">Visual   Studio Editions</a>.</td>
</tr>
</tbody>
</table>
<p><a href="http://msdn.microsoft.com/en-us/library/zt39148a%28VS.80%29.aspx">http://msdn.microsoft.com/en-us/library/zt39148a%28VS.80%29.aspx</a></p>
<p>The procedures in this topic walk you through the process of creating a simple Windows Service application that writes messages to an event log. The basic steps that you perform to create and use your service include:</p>
<ul>
<li>Create a project using the <strong>Windows Service</strong> application template. This template creates a class for you that inherits from <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase%28VS.80%29.aspx">ServiceBase</a> and writes much of the basic service code, such as the code to start the service.</li>
<li>Write the code for the <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.onstart%28VS.80%29.aspx">OnStart</a> and <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.onstop%28VS.80%29.aspx">OnStop</a> procedures, and override any other methods that you want to redefine.</li>
<li>Add the necessary installers for your service application. By default, a class containing two or more installers is added to your application when you click the <strong>Add Installer</strong> link: one to install the process, and one for each of the associated services your project contains.</li>
<li>Build your project.</li>
<li>Create a setup project to install your service, and then install it.</li>
<li>Access the Windows 2000 Services Control Manager and start your service.</li>
</ul>
<p>To begin, you create the project and set values that are necessary for the service to function correctly.</p>
<p>Creating a Service</p>
<hr size="2" />
<h3>To create and configure your service</h3>
<ol>
<li>On the <strong>File</strong> menu, click <strong>New Project</strong>.</li>
</ol>
<p>The <strong>New Project</strong> dialog box opens.</p>
<ol>
<li>Select the <strong>Windows Service</strong> project from the list of Visual Basic, Visual C#, Visual C++, or Visual J# project templates, and name it <strong>MyNewService</strong>. Click <strong>OK</strong>.</li>
</ol>
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>Note </strong></td>
</tr>
<tr>
<td>The   project template automatically adds a component class called <tt>Service1</tt> that inherits   from <strong>System.ServiceProcess.ServiceBase</strong>.</td>
</tr>
</tbody>
</table>
<ol>
<li>Click the designer to select <tt>Service1</tt>. Then, in the <strong>Properties</strong> window, set the <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.servicename%28VS.80%29.aspx">ServiceName</a> and the <strong>(Name)</strong> property for <tt>Service1</tt> to <strong>MyNewService</strong>.</li>
<li>Set the <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.autolog%28VS.80%29.aspx">AutoLog</a> property to <strong>true</strong>.</li>
<li>On the <strong>View</strong> menu, click <strong>Code</strong> to open the <strong>Code Editor</strong>. Edit the <tt>Main</tt> method to create an instance of <strong>MyNewService</strong>. When you renamed the service in step 3, the class name was not modified in the <tt>Main</tt> method. In Visual C# and Visual J# applications, the <tt>Main</tt> method is located in the Program.cs and Program.js files, respectively.</li>
</ol>
<pre>static void Main()
{
    System.ServiceProcess.ServiceBase[] ServicesToRun;
    // Change the following line to match.
    ServicesToRun = new System.ServiceProcess.ServiceBase[]
      { new MyNewService() };
    System.ServiceProcess.ServiceBase.Run(ServicesToRun);
       }</pre>
<p>Adding Features to the Service</p>
<hr size="2" />In the next section, you add a custom event log to your Windows service. Event logs are not associated in any way with Windows services. Here the <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog%28VS.80%29.aspx">EventLog</a> component is used as an example of the type of component you could add to a Windows service. For more information on custom event logs, see <a href="http://msdn.microsoft.com/en-us/library/49dwckkz%28VS.80%29.aspx">How to: Create and Remove Custom Event Logs</a>.</p>
<p>&#160;</p>
<h3>To add custom event log functionality to your service</h3>
<ol>
<li>In <strong>Solution Explorer</strong>, right-click <strong>Service1.vb</strong>, <strong>Service1.cs</strong>, or <strong>Service1.jsl</strong> and select <strong>View Designer</strong>.</li>
<li>From the <strong>Components</strong> tab of the <strong>Toolbox</strong>, drag an <strong>EventLog</strong> component to the designer.</li>
<li>In <strong>Solution Explorer</strong>, right-click <strong>Service1.vb</strong>, <strong>Service1.cs</strong>, or <strong>Service1.jsl</strong> and select <strong>View Code</strong>.</li>
<li>Edit the constructor to define a custom event log.</li>
</ol>
<pre>public MyNewService()
{
    InitializeComponent();
    if (!System.Diagnostics.EventLog.SourceExists("MySource"))
    {
            System.Diagnostics.EventLog.CreateEventSource(
                "MySource","MyNewLog");
    }
    eventLog1.Source = "MySource";
    eventLog1.Log = "MyNewLog";
}</pre>
<h3>To define what happens when the service starts</h3>
<ul>
<li>In the Code Editor, locate the <strong>OnStart</strong> method that was automatically overridden when you created the project, and write code to determine what occurs when the service begins running:</li>
</ul>
<pre>protected override void OnStart(string[] args)
{
    eventLog1.WriteEntry("In OnStart");
}</pre>
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>Note </strong></td>
</tr>
<tr>
<td>A service   application is designed to be long running. As such, it usually polls or monitors   something in the system. The monitoring is set up in the <strong>OnStart</strong> method. However, <strong>OnStart</strong> does not actually do the monitoring. The <strong>OnStart</strong> method must return to the operating system once the service&#8217;s operation has   begun. It must not loop forever or block. To set up a simple polling   mechanism, you can use the <a href="http://msdn.microsoft.com/en-us/library/system.timers.timer%28VS.80%29.aspx">System.Timers.Timer</a> component. In the   <strong>OnStart</strong> method, you would set parameters on the component, and then   you would set the <a href="http://msdn.microsoft.com/en-us/library/system.timers.timer.enabled%28VS.80%29.aspx">Enabled</a> property to <strong>true</strong>.   The timer would then raise events in your code periodically, at which time   your service could do its monitoring.</td>
</tr>
</tbody>
</table>
<h3>To define what happens when the service is stopped</h3>
<ul>
<li>In the <strong>Code Editor</strong>, select the <strong>OnStop</strong> procedure from the <strong>Method Name</strong> drop-down list, which was automatically overridden when you created the project. Write code to determine what occurs when the service is stopped:</li>
</ul>
<pre>protected override void OnStop()
{
    eventLog1.WriteEntry("In onStop.");
}</pre>
<p>You can also override the <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.onpause%28VS.80%29.aspx">OnPause</a>, <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.oncontinue%28VS.80%29.aspx">OnContinue</a>, and <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.onshutdown%28VS.80%29.aspx">OnShutdown</a> methods to define further processing for your component.</p>
<h3>To define other actions for the service</h3>
<ul>
<li>For the method you want to handle, override the appropriate method and define what you want to occur.</li>
</ul>
<p>The following code shows what it looks like if you override the <strong>OnContinue</strong> method:</p>
<pre>protected override void OnContinue()
{
    eventLog1.WriteEntry("In OnContinue.");
}</pre>
<p>Some custom actions need to occur when installing a Windows service, which can be done by the <a href="http://msdn.microsoft.com/en-us/library/system.configuration.install.installer%28VS.80%29.aspx">Installer</a> class. Visual Studio can create these installers specifically for a Windows service and add them to your project.</p>
<h3>To create the installers for your service</h3>
<ol>
<li>In <strong>Solution Explorer</strong>, right-click <strong>Service1.vb</strong>, <strong>Service1.cs</strong>, or <strong>Service1.jsl</strong> and select <strong>View Designer</strong>.</li>
<li>Click the background of the designer to select the service itself, rather than any of its contents.</li>
<li>With the designer in focus, right-click, and then click <strong>Add Installer</strong>.</li>
</ol>
<p>By default, a component class containing two installers is added to your project. The component is named <strong>ProjectInstaller</strong>, and the installers it contains are the installer for your service and the installer for the service&#8217;s associated process.</p>
<ol>
<li>In <strong>Design</strong> view for <strong>ProjectInstaller</strong>, click <strong>ServiceInstaller1</strong> or <strong>serviceInstaller1</strong>.</li>
<li>In the <strong>Properties</strong> window, set the <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceinstaller.servicename%28VS.80%29.aspx">ServiceName</a> property to <strong>MyNewService</strong>.</li>
<li>Set the <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceinstaller.starttype%28VS.80%29.aspx">StartType</a> property to <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicestartmode.automatic%28VS.80%29.aspx">Automatic</a>.</li>
<li>In the designer, click <strong>ServiceProcessInstaller1</strong> (for a Visual Basic project), or <strong>serviceProcessInstaller1</strong> (for a Visual C# or Visual J# project). Set the <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceprocessinstaller.account%28VS.80%29.aspx">Account</a> property to <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceaccount.localservice%28VS.80%29.aspx">LocalService</a>. This will cause the service to be installed and to run on a local service account.</li>
</ol>
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>Security Note </strong></td>
</tr>
<tr>
<td>The <strong>LocalService</strong> account acts as a non-privileged user on the local computer, and presents anonymous   credentials to any remote server. Use the other accounts with caution, as   they run with higher privileges and increase your risk of attacks from   malicious code.</td>
</tr>
</tbody>
</table>
<h3>To build your service project</h3>
<ol>
<li>In <strong>Solution Explorer</strong>, right-click to select your project and select <strong>Properties</strong> from the shortcut menu. The project&#8217;s <strong>Property Designer</strong> appears.</li>
<li>on the Application page, from the <strong>Startup object</strong> list, choose <strong>MyNewService</strong>.</li>
<li>Press CTRL+SHIFT+B to build the project.</li>
</ol>
<p>Now that the project is built, it can be deployed. A setup project will install the compiled project files and run the installers needed to run the Windows service. To create a complete setup project you will need to add the project output, <strong>MyNewService.exe</strong>, to the setup project and then add a custom action to have <strong>MyNewService.exe</strong> installed. For more information on setup projects, see <a href="http://msdn.microsoft.com/en-us/library/996a3fxs%28VS.80%29.aspx">Setup Projects</a>. For more information on custom actions, see <a href="http://msdn.microsoft.com/en-us/library/d9k65z2d%28VS.80%29.aspx">Walkthrough: Creating a Custom Action</a>.</p>
<h3>To create a setup project for your service</h3>
<ol>
<li>In <strong>Solution Explorer</strong>, right-click to select your solution, point to <strong>Add</strong>, and then click <strong>New Project</strong>.</li>
<li>In the <strong>Project Types</strong> pane, select the <strong>Setup and Deployment Projects</strong> folder.</li>
<li>In the <strong>Templates</strong> pane, select <strong>Setup Project</strong>. Name the project <strong>MyServiceSetup</strong>. Click <strong>OK</strong>.</li>
</ol>
<p>A setup project is added to the solution.</p>
<p>Next you will add the output from the Windows service project, <strong>MyNewService.exe</strong>, to the setup.</p>
<h3>To add MyNewService.exe to the setup project</h3>
<ol>
<li>In <strong>Solution Explorer</strong>, right-click <strong>MyServiceSetup</strong>, point to <strong>Add</strong>, then choose <strong>Project Output</strong>.</li>
</ol>
<p>The <strong>Add Project Output Group</strong> dialog box appears.</p>
<ol>
<li><strong>MyNewService</strong> is selected in the <strong>Project</strong> box.</li>
<li>From the list box, select <strong>Primary Output</strong>, and click <strong>OK</strong>.</li>
</ol>
<p>A project item for the primary output of <strong>MyNewService</strong> is added to the setup project.</p>
<p>Now add a custom action to install the MyNewService.exe file.</p>
<h3>To add a custom action to the setup project</h3>
<ol>
<li>In <strong>Solution Explorer</strong>, right-click the setup project, point to <strong>View</strong>, and then click <strong>Custom Actions</strong>.</li>
</ol>
<p>The <strong>Custom Actions</strong> editor appears.</p>
<ol>
<li>In the <strong>Custom Actions</strong> editor, right-click the <strong>Custom Actions</strong> node and choose <strong>Add Custom Action</strong>.</li>
</ol>
<p>The <strong>Select Item in Project</strong> dialog box appears.</p>
<ol>
<li>Double-click the <strong>Application Folder</strong> in the list box to open it, select <strong>Primary Output from MyNewService (Active)</strong>, and click <strong>OK</strong>.</li>
</ol>
<p>The primary output is added to all four nodes of the custom actions — <strong>Install</strong>, <strong>Commit</strong>, <strong>Rollback</strong>, and <strong>Uninstall</strong>.</p>
<ol>
<li>In <strong>Solution Explorer</strong>, right-click the <strong>MyServiceSetup</strong> project and click <strong>Build</strong>.</li>
<li>To install <strong>MyNewService.exe</strong>, right-click the setup project in <strong>Solution Explorer</strong> and select <strong>Install</strong>.</li>
<li>Follow the steps in the <strong>Setup Wizard</strong>. Build and save your solution.</li>
<li>Open the Services Control Manager by doing one of the following:</li>
</ol>
<h3>To install the Windows Service</h3>
<h3>To start and stop your service</h3>
<ul>
<li>In Windows XP and 2000 Professional, right-click <strong>My Computer</strong> on the desktop, then click <strong>Manage</strong>. In the <strong>Computer Management</strong> console, expand the <strong>Services and Applications</strong> node.</li>
</ul>
<p>- or -</p>
<ul>
<li>In Windows Server 2003 and Windows 2000 Server, click <strong>Start</strong>, point to <strong>Programs</strong>, click <strong>Administrative Tools</strong>, and then click <strong>Services</strong>.</li>
</ul>
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>Note </strong></td>
</tr>
<tr>
<td>In   Windows NT version 4.0, you can open this dialog box from Control Panel.</td>
</tr>
</tbody>
</table>
<ol>
<li>You should now see <strong>MyNewService</strong> listed in the <strong>Services</strong> section of the window.</li>
<li>Select your service in the list, right-click it, and then click <strong>Start</strong>.</li>
<li>Right-click the service, and then click <strong>Stop</strong>.</li>
<li>Open <strong>Server Explorer</strong> and access the <strong>Event Logs</strong> node. For more information, see <a href="http://msdn.microsoft.com/en-us/library/f82akt63%28VS.80%29.aspx">How to: Work with Event Logs in Server Explorer</a>.</li>
</ol>
<h3>To verify the event log output of your service</h3>
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>Note </strong></td>
</tr>
<tr>
<td>The <strong>Windows   Service</strong> template and associated functionality is not available in the Standard   Edition of Visual Studio. For more information, see <a href="http://msdn.microsoft.com/en-us/library/zcbsd3cz%28VS.80%29.aspx">Visual   Studio Editions</a>.</td>
</tr>
</tbody>
</table>
<ol>
<li>Locate the listing for <strong>MyNewLog</strong> and expand it. You should see entries for the actions your service has performed.</li>
<li>On the <strong>Start</strong> menu, open <strong>Control Panel</strong> and click <strong>Add/Remove Programs</strong>, and then locate your service and click <strong>Uninstall</strong>.</li>
<li>You can also uninstall the program by right-clicking the program icon for the .msi file and selecting <strong>Uninstall</strong>.</li>
</ol>
<h3>To uninstall your service</h3>
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>Note </strong></td>
</tr>
<tr>
<td>If you   installed the service on Windows 2000, you will need to reboot the system   before you can reinstall the service. In Windows 2000, services are not   completely deleted until the system is rebooted.</td>
</tr>
</tbody>
</table>
<p>Next Steps</p>
<hr size="2" />You might explore the use of a <a href="http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller%28VS.80%29.aspx">ServiceController</a> component to allow you to send commands to the service you have installed. For more information on using the <strong>ServiceController</strong> component, see <a href="http://msdn.microsoft.com/en-us/library/t12x806t%28VS.80%29.aspx">Monitoring Windows Services</a>.</p>
<p>&#160;</p>
<p>You can use an installer to create an event log when the application is installed, rather than creating the event log when the application runs. Additionally, the event log will be deleted by the installer when the application is uninstalled. For more information, see <a href="http://msdn.microsoft.com/en-us/library/f5dcf6h3%28VS.80%29.aspx">Walkthrough: Installing an Event Log Component</a>.</p>
<p><span><br />
PDF Downloads&#8230;</p>
<table border="1">
<tr>
<td>
<a href="http://www.mediafire.com/file/mwxymyiakwk/Creating a Windows Service Application in the Component Designer.pdf" target="_blank">Creating a Windows Service Application in the Component Designer</a>
</td>
</tr>
<tr>
<td>
<a href="http://www.mediafire.com/file/eamxdgdmuiz/Timer Objects in Windows Services with C#.pdf" target="_blank">Timer Objects in Windows Services with C#</a>
</td>
</tr>
</table>
<p></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Visual Studio 2008 and .NET Framework 3.5 Training Kit]]></title>
<link>http://esersahin.wordpress.com/2009/11/21/visual-studio-2008-and-net-framework-3-5-training-kit/</link>
<pubDate>Sat, 21 Nov 2009 07:40:55 +0000</pubDate>
<dc:creator>esersahin</dc:creator>
<guid>http://esersahin.wordpress.com/2009/11/21/visual-studio-2008-and-net-framework-3-5-training-kit/</guid>
<description><![CDATA[http://www.microsoft.com/downloads/details.aspx?FamilyID=8BDAA836-0BBA-4393-94DB-6C3C4A0C98A1&amp;di]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>http://www.microsoft.com/downloads/details.aspx?FamilyID=8BDAA836-0BBA-4393-94DB-6C3C4A0C98A1&#38;displaylang=en</p>
<p>The Visual Studio 2008 and .NET Framework 3.5 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: LINQ, C# 3.0, Visual Basic 9, WCF, WF, WPF, ASP.NET AJAX, VSTO, CardSpace, SilverLight, Mobile and Application Lifecycle Management.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[TFS 2008 get latest version automatically]]></title>
<link>http://chrisbarba.wordpress.com/2009/11/21/tfs-2008-get-latest-version-automatically/</link>
<pubDate>Sat, 21 Nov 2009 05:37:06 +0000</pubDate>
<dc:creator>chrisbarba</dc:creator>
<guid>http://chrisbarba.wordpress.com/2009/11/21/tfs-2008-get-latest-version-automatically/</guid>
<description><![CDATA[When using&#160; the Visual Studio integration for TFS 2008, you will notice that the latest version]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>When using&#160; the Visual Studio integration for TFS 2008, you will notice that the latest version will not be retrieved when you start making changes to a file.</p>
<p>There is an option that you need to have an option.&#160; To get to this option perform the following steps:</p>
<p>Launch Visual Studio 2008</p>
<p>Click Tools-&#62;Options</p>
<p>Expand the Source Control section</p>
<p>Click on Visual Studio Team Foundation Server</p>
<p>Ensure that the Get Latest version of item on check out is checked.</p>
<p>Now when you check out a file if you don’t have the latest version, it will prompt that you don’t and fetch it for you.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[DevExpress Refactor &ndash; pierwsze wrażenia]]></title>
<link>http://lbrodziak.wordpress.com/2009/11/19/devexpress-refactor-pierwsze-wrazenia/</link>
<pubDate>Thu, 19 Nov 2009 15:21:11 +0000</pubDate>
<dc:creator>lbrodziak</dc:creator>
<guid>http://lbrodziak.wordpress.com/2009/11/19/devexpress-refactor-pierwsze-wrazenia/</guid>
<description><![CDATA[Dzisiaj otrzymałem licencję na Refactor Pro. Jest to dodatek do Visual Studio 2008 usprawniający pis]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Dzisiaj otrzymałem licencję na Refactor Pro. Jest to dodatek do Visual Studio 2008 usprawniający pisanie aplikacji. Pierwsze wrażenia są bardzo pozytywne, po zainstalowaniu dodatku i otwarciu jednego z projektów automatycznie zostały dodane opcje Refactora. </p>
<p>Ciekawą funkcjonalnością Refactora jest zgłaszanie ostrzeżeń pomijanych przez Visual Studio takie jak na przykład brak zadeklarowanego domyślnego konstruktora klasy, który można utworzyć automatycznie przy użyciu podręcznego menu i tak samo łatwo usunąć zbędny konstruktor lub inny kawałek kodu.</p>
<p>Dodatkowo Refactor umieszcza obok elementów strukturalnych kodu ikony określające typ elementu (klasy, metody) po kliknięciu ukazuje się lista możliwych do wykonania akcji (np.: zmiany modyfikatora dostępu).</p>
<p>Niedługo będę przygotowywał spory projekt będę więc mógł napisać coś konkretnego o Refactorze w praktyce wraz ze zrzutami ekranu pokazujacymi niektóre z dostępnych opcji.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ Generali places its Java applications under monitoring ]]></title>
<link>http://scriptforall.wordpress.com/2009/11/19/generali-places-its-java-applications-under-monitoring/</link>
<pubDate>Thu, 19 Nov 2009 13:06:16 +0000</pubDate>
<dc:creator>kostland</dc:creator>
<guid>http://scriptforall.wordpress.com/2009/11/19/generali-places-its-java-applications-under-monitoring/</guid>
<description><![CDATA[tude of case &#8211; to ensure the supervision and the qualit of service D `a systme D `information ]]></description>
<content:encoded><![CDATA[tude of case &#8211; to ensure the supervision and the qualit of service D `a systme D `information ]]></content:encoded>
</item>
<item>
<title><![CDATA[S&eacute;rie de billets &agrave; propos de tests fonctionnels pilot&eacute;s par des donn&eacute;es]]></title>
<link>http://jaepetto.wordpress.com/2009/11/18/srie-de-billets-propos-de-tests-fonctionnels-pilots-par-des-donnes/</link>
<pubDate>Wed, 18 Nov 2009 21:33:16 +0000</pubDate>
<dc:creator>jaepetto</dc:creator>
<guid>http://jaepetto.wordpress.com/2009/11/18/srie-de-billets-propos-de-tests-fonctionnels-pilots-par-des-donnes/</guid>
<description><![CDATA[Aujourd’hui, je voudrais commencer une série de billet concernant les tests fonctionnels d’un site w]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p align="justify">Aujourd’hui, je voudrais commencer une série de billet concernant les tests fonctionnels d’un site web pilotés par des données (Data Driven Functional Testing).</p>
<p align="justify">L’origine de billet vient d’une migration de base de données utilisée par notre site web. En gros la question était:</p>
<p align="center"><em>Maintenant que la migration de la base est finie (en test), peux-tu contrôler que tout fonctionne correctement?</em></p>
<p align="justify">En soit, c’est un peu une question à 100 balles. En gros, je n’avais que 3 options:</p>
<ul>
<li>
<div align="justify">Tester tous les éléments de la base (tables, liens et autre) histoire de voir si tout répondait. Effectivement, si le CRUD passait sur tous les éléments, pas de raison que le reste ne fonctionne plus.</div>
</li>
<li>
<div align="justify">Me taper tout le code source du site histoire de savoir quelles sont les requêtes utilisées et par conséquent les objets en base. C’est bien beau, mais quelque millier de pages dans un language que ne maitrise pas, ça repousse un peu.</div>
</li>
<li>
<div align="justify">Prendre un échantillon représentatif des reqêtes sur le site de prod pour voir si ça se passe toujours bien en test. C’est pas parfait, mais ça devrait tout de même être représentatif.</div>
</li>
</ul>
<ul>
<p align="justify">Dès demain, je décrirai le processus que j’ai suivi. Sachez simplement qu’il n’implique que des outils gratuits (sauf Visual Studio): Logparser, NUnit, Selenium, Firefox et Visual Studio 2008.</p>
</ul>
<p align="justify">Si vous avez déjà une idée de la marche à suivre, vous êtes les bienvenus pour m’envoyer un petit commentaire.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[IT Academic Day 2009]]></title>
<link>http://lbrodziak.wordpress.com/2009/11/17/it-academic-day-2009/</link>
<pubDate>Tue, 17 Nov 2009 22:33:25 +0000</pubDate>
<dc:creator>lbrodziak</dc:creator>
<guid>http://lbrodziak.wordpress.com/2009/11/17/it-academic-day-2009/</guid>
<description><![CDATA[Dzisiaj na naszej uczelni odbył się IT academic day. Jest to cykl konferencji poświęconych technolog]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Dzisiaj na naszej uczelni odbył się <a href="http://www.itad.pl">IT academic day</a>. Jest to cykl konferencji poświęconych technologiom Microsoftu odbywający się na różnych uczelniach w cały kraju. Agenda ITAD na Uniwersytecie Śląskim:</p>
<ol>
<li>Microsoft Visual Studio 2010.</li>
<li>Imagine Cup.</li>
<li>XNA Game Studio i gry RPG</li>
<li>Czego jeszcze nie wiecie o Windows 7.</li>
</ol>
<p>Pierwsza prelekcja dotyczyła nowości w Visual Studio 2010. Przyznam szczerze, że wprowadzenie w postaci historii produktów VS mnie nieco znudziło i nie uczestniczyłem w dalszej części prelekcji.</p>
<p>Prelekcja dotycząca Imagine Cup była poprowadzona w formie poradnika “Jak wygrać Imagine Cup”.</p>
<p>Druga połowa ITAD była zdecydowanie ciekawsza (przynajmniej z mojego punktu widzenia). W ramach prezentacji XNA Game Studio poprowadzonej przez Rafała Czupryńskiego został stworzony kod prezentujący prostotę tworzenia gier RPG za pomocą tego narzędzia. Samo XNA Game Studio jest rozszerzeniem Visual Studio i umożliwia pisanie gier m.in. w języku C#. Więcej informacji na temat projektu XNA <a href="http://msdn.microsoft.com/en-us/aa937791.aspx">tutaj</a>.</p>
<p>Ostatnia prezentacja dotyczyła ciekawych i przydatnych nowości w Windows 7 takich jak federated search, wyszukiwanie wielowątkowe, applocker czy windows API umożliwiające tworzenie aplikacji wykorzystujących możliwości nowych elementów interfejsu windows 7.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Visual Studio &amp; ReSharper Shortcuts Tour]]></title>
<link>http://spolnik.wordpress.com/2009/11/14/visual-studio-resharper-shortcuts-tour/</link>
<pubDate>Sat, 14 Nov 2009 07:53:57 +0000</pubDate>
<dc:creator>Jacek Spólnik</dc:creator>
<guid>http://spolnik.wordpress.com/2009/11/14/visual-studio-resharper-shortcuts-tour/</guid>
<description><![CDATA[Shortcuts Part 1 Shortcuts Part 2 Shortcuts Part 3 Shortcuts Part 4 Shortcuts Part 5 Shortcuts Part ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><ol>
<li><a class="wp-caption" href="http://spolnik.wordpress.com/2009/06/21/visual-studio-2008-resharper-shortcuts-part-1/" target="_blank">Shortcuts Part 1</a></li>
<li><a class="wp-caption" href="http://spolnik.wordpress.com/2009/06/21/visual-studio-2008-resharper-shortcuts-part-2/" target="_blank">Shortcuts Part 2</a></li>
<li><a class="wp-caption" href="http://spolnik.wordpress.com/2009/06/21/visual-studio-2008-resharper-shortcuts-part-3/" target="_blank">Shortcuts Part 3</a></li>
<li><a class="wp-caption" href="http://spolnik.wordpress.com/2009/07/01/visual-studio-2008-resharper-shortcuts-part-4/" target="_blank">Shortcuts Part 4</a></li>
<li><a class="wp-caption" href="http://spolnik.wordpress.com/2009/07/11/visual-studio-2008-resharper-shortcuts-part-5/" target="_blank">Shortcuts Part 5</a></li>
<li><a class="wp-caption" href="http://spolnik.wordpress.com/2009/07/26/visual-studio-2008-shortcuts-part-6/" target="_blank">Shortcuts Part 6</a></li>
</ol>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Enable Network DTC Access on Vista for BizTalk]]></title>
<link>http://drewoconnor.wordpress.com/2009/11/12/enable-network-dtc-access-on-vista-for-biztalk/</link>
<pubDate>Thu, 12 Nov 2009 16:29:02 +0000</pubDate>
<dc:creator>scubadrew</dc:creator>
<guid>http://drewoconnor.wordpress.com/2009/11/12/enable-network-dtc-access-on-vista-for-biztalk/</guid>
<description><![CDATA[A caller has attempted to import a transaction from a remote system, but MSDTC is currently configur]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="aligncenter size-full wp-image-887" title="NERD_POST" src="http://drewoconnor.wordpress.com/files/2009/11/nerd_post.gif" alt="NERD_POST" width="480" height="255" /></p>
<p><!--more--></p>
<blockquote><p>A caller has attempted to import a transaction from a remote system, but MSDTC is currently configured to disallow inbound transaction manager communication on machine. Please review the MS DTC configuration settings.</p></blockquote>
<p>To enable network DTC access and configure Windows Firewall on Windows Vista:</p>
<ol>
<li>Click <strong>Start</strong>, click <strong>Run</strong>, type <strong>dcomcnfg</strong> and then click <strong>OK</strong> to open <strong>Component Services</strong>.</li>
<li>In the console tree, click to expand <strong>Component Services</strong>, click to expand <strong>Computers</strong>, click to expand <strong>My Computer</strong>, click to expand <strong>Distributed Transaction Coordinator</strong> and then click <strong>Local DTC</strong>.</li>
<li>Right click <strong>Local DTC</strong> and click <strong>Properties</strong> to display the <strong>Local DTC Properties</strong> dialog box.</li>
<li>Click the <strong>Security</strong> tab.</li>
</ol>
<p>Set the following options on the <strong>Security</strong> tab of the <strong>Local DTC Properties</strong> dialog box and click <strong>OK</strong>.</p>
<p><img class="aligncenter size-full wp-image-884" title="Local DTC Properties 11122009 94824 AM" src="http://drewoconnor.wordpress.com/files/2009/11/local-dtc-properties-11122009-94824-am.jpg" alt="Local DTC Properties 11122009 94824 AM" width="462" height="503" /></p>
<ol>
<li>Open the <strong>Control Panel</strong>, open <strong>Windows Firewall</strong>, and click <strong>Change settings</strong> to display <strong>Windows Firewall Settings</strong>.</li>
<li>Click the <strong>Exceptions</strong> tab.</li>
<li></li>
</ol>
<p>Check the box for <strong>Distributed Transaction Coordinator</strong> and click <strong>OK</strong>.</p>
<p><img class="aligncenter size-full wp-image-885" title="Windows Firewall Settings 11122009 95024 AM" src="http://drewoconnor.wordpress.com/files/2009/11/windows-firewall-settings-11122009-95024-am.jpg" alt="Windows Firewall Settings 11122009 95024 AM" width="444" height="519" /></p>
<p>Make sure you select <strong>Mutual Authentication </strong>on your Biztalk server DTC settings also.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Usando função JavaScript em Silverlight 3]]></title>
<link>http://flamoreira.wordpress.com/2009/11/11/usando-funcao-javascript-em-silverlight-3/</link>
<pubDate>Wed, 11 Nov 2009 23:39:32 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/11/usando-funcao-javascript-em-silverlight-3/</guid>
<description><![CDATA[Usando função JavaScript em Silverlight 3 Olá amigos mais um artigo! Estou trabalhando duro atualiza]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Usando função JavaScript em Silverlight 3</strong></p>
<p>Olá amigos mais um artigo!</p>
<p>Estou trabalhando duro <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  atualizando os artigos para Silverlight 3 e claro experimentando noVisual Studio 2010 Beta 2.  Já funciona, não é lindo ?.</p>
<p>Então o endereço do link é:</p>
<p><a href="http://www.dowhile.com.br/artigos/silverlight/63-usando-funcao-javascript-em-silverlight-.html">Usando função JavaScript em Silverlight</a></p>
<p>abraços,</p>
<p>Flavia Moreira</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Visual Studio 2008 XAML Editor Poor Performance Under Windows 7]]></title>
<link>http://pudchuck.wordpress.com/2009/11/11/visual-studio-2008-xaml-editor-poor-performance-under-windows-7/</link>
<pubDate>Wed, 11 Nov 2009 15:57:14 +0000</pubDate>
<dc:creator>pudchuck</dc:creator>
<guid>http://pudchuck.wordpress.com/2009/11/11/visual-studio-2008-xaml-editor-poor-performance-under-windows-7/</guid>
<description><![CDATA[The XAML editor in Visual Studio 2008 has gotten a bad rap, and for good reason; it&#8217;s garbage.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The XAML editor in Visual Studio 2008 has gotten a bad rap, and for good reason; it&#8217;s garbage. After upgrading to Windows 7, the XAML editor would occasionally hang VS 2008 for several minutes, sometimes indefinitely. I tried several of the recommended fixes on the Internet, but nothing seemed to help. Just by chance I ran VS2008 as an Administrator and everything started working again.</p>
<p>I am not certain this is specific to Windows 7, but I started noticing the problem when I upgraded.</p>
<p>I hope this helps you. This bug was driving me insane!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Como enviar email usando o Silverlight]]></title>
<link>http://flamoreira.wordpress.com/2009/11/11/como-enviar-email-usando-o-silverlight/</link>
<pubDate>Wed, 11 Nov 2009 13:25:38 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/11/como-enviar-email-usando-o-silverlight/</guid>
<description><![CDATA[Olá coloquei mais dois artigos, como enviar e-mail usando o silverlight !! veja os dois artigos em: ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Olá coloquei mais dois artigos, como enviar e-mail usando o silverlight !!</p>
<p>veja os dois artigos em:</p>
<p><a href="http://www.dowhile.com.br">dowhile</a></p>
<p>&#160;</p>
<p>Abraços,</p>
<p>Flávia Moreira</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Alguns artigos sobre silverlight]]></title>
<link>http://flamoreira.wordpress.com/2009/11/06/alguns-artigos-sobre-silverlight/</link>
<pubDate>Fri, 06 Nov 2009 21:46:49 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/06/alguns-artigos-sobre-silverlight/</guid>
<description><![CDATA[Olá amigos Adicionei mais artigos no dowhile usando o Silverlight 3 com visual Studio 2010 Beta 2. 1]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Olá amigos</p>
<p><strong>Adicionei mais artigos no dowhile usando o Silverlight 3 com visual Studio 2010 Beta 2.</strong></p>
<p><span style="color:#ff0000;">1     Populando Datagrid usando LINQ TO SQL em Silverlight Parte II </span><br />
2     Populando Datagrid usando LINQ TO SQL em Silverlight Parte I<br />
<span style="color:#ff0000;">3     Vídeo Player em Silverlight Visual Studio 2010 &#8211; Parte II </span><br />
4     Primeira Aplicação em Silverlight<br />
<span style="color:#ff0000;">5     Vídeo Player em Silverlight &#8211; Visual Studio 2010 Parte I </span><br />
6     Introdução ao Microsoft Blend 3</p>
<p>Para acesso a todos estes conteúdos acessem:</p>
<p><a href="http://www.dowhile.com.br" target="_blank">dowhile</a></p>
<p>abraços,</p>
<p>Flávia Moreira</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Silverlight 3 e Visual Studio 2010]]></title>
<link>http://flamoreira.wordpress.com/2009/11/05/silverlight-3-e-visual-studio-2010/</link>
<pubDate>Thu, 05 Nov 2009 18:58:52 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/05/silverlight-3-e-visual-studio-2010/</guid>
<description><![CDATA[&nbsp; Neste tutorial será mostrado como criar um simples vídeo em Silverlight usando o Visual Studi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>&#160;</p>
<p>Neste tutorial será mostrado como criar um simples vídeo em <strong>Silverlight</strong> usando o <strong>Visual Studio 2010 Beta 2 </strong><strong>ou Visual Studio 2008</strong>. As ferramentas de desenvolvimento podem ser baixadas no site da Microsoft.</p>
<p>Para ter acesso ao conteúdo acesse:</p>
<p><a href="http://www.dowhile.com.br">http://www.dowhile.com.br</a></p>
<p>&#160;</p>
<p>abraços,</p>
<p>Flávia Moreira</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Dowhile de cara nova]]></title>
<link>http://flamoreira.wordpress.com/2009/11/04/novo-site/</link>
<pubDate>Wed, 04 Nov 2009 23:50:21 +0000</pubDate>
<dc:creator>Flavia Moreira</dc:creator>
<guid>http://flamoreira.wordpress.com/2009/11/04/novo-site/</guid>
<description><![CDATA[Olá Dowhile está no ar de cara nova Você não viu ? Então veja. Não perca tempo, tem Artigos e Vídeos]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Olá</p>
<p><strong>Dowhile está no ar de cara nova</strong></p>
<p>Você não viu ? Então veja.</p>
<p>Não perca tempo, tem Artigos e Vídeos.</p>
<p>Coloquei artigos sobre Silverlight. Veja o video Silverlight interagindo com PHP!!!!! Não é demais ?!?!?!?</p>
<p><a href="http://www.dowhile.com.br" target="_blank">http://www.dowhile.com.br</a></p>
<p>abraços,</p>
<p>Flávia Moreira</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Desinstalar Visual Studio 2008 ]]></title>
<link>http://huamanpunlay.wordpress.com/2009/10/31/desinstalar-visual-studio-2008/</link>
<pubDate>Sat, 31 Oct 2009 04:08:23 +0000</pubDate>
<dc:creator>huamanpunlay</dc:creator>
<guid>http://huamanpunlay.wordpress.com/2009/10/31/desinstalar-visual-studio-2008/</guid>
<description><![CDATA[Hola muchachos, cuando tuve un problema con la PC en la empresa donde hago unos trabajitos tuve fina]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Hola muchachos, cuando tuve un problema con la PC en la empresa donde hago unos trabajitos tuve finalmente que intentar desinstalar el Visual Studio 2008, y si alguna vez lo has intentado comprenderás que no es nada fácil, resultar una tarea algo aterradora por decirlo así, ya que  nunca quedarás libre del todo al sacar los componentes siempre quedará alguno que no saques y esta además ese miedo si!! de ese mismo te hablo, el que suena en tu cabeza y te pregunta cada que quieres darle desinstalar  a algo y preguntas&#8230; ¿Será del Visual o de otra cosa? mmmm, ¿Será compartido? ayyyy xD&#8230; ante esto buscando en Internet encontré una pequeña herramienta un programita que da la misma página de soporte de Microsoft y te permite desinstalar el Visual Studio 2008 completamente y de una manera limpia y ordenada (si porque para desinstalarlo de una manera correcta tiene que ser en un determinado orden), esto me solucionó el problema finalmente y también me ahorró algo de tiempo ahora se las quiero compartir, puedes descargarla de mi skydrive, espero que les sirva <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://cid-4641fd8541d57c42.skydrive.live.com/browse.aspx/.Public/Desinstalar%20Visual%20Studio/Visual%20Studio%202008" target="_blank"><strong>Herramienta desinstalar Visual Studio 2008</strong></a></p>
<p><a href="http://cid-4641fd8541d57c42.skydrive.live.com/browse.aspx/.Public/Desinstalar%20Visual%20Studio/Visual%20Studio%202005" target="_blank"><strong>Herramienta desinstalar Visual Studio 2005 (Beta)</strong></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Detecting Design-time in C#]]></title>
<link>http://devmanic.wordpress.com/2009/10/29/detecting-design-time-in-c/</link>
<pubDate>Thu, 29 Oct 2009 16:05:01 +0000</pubDate>
<dc:creator>Drew</dc:creator>
<guid>http://devmanic.wordpress.com/2009/10/29/detecting-design-time-in-c/</guid>
<description><![CDATA[Excellent, now I can detect Visual Studio design time anywhere in my code. (Make sure to read the co]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Excellent, now I can detect Visual Studio design time anywhere in my code. (Make sure to read the comments, they provide a valuable correction.)</p>
<blockquote><p>I came across interesting issue with one of our controls. I needed a different behavior during design-time and run-time. I was sure that .NET Framework has a nice solution for me, but I found out this is not the case.There is a DesignMode property but according to several sources it doesn&#8217;t always work as expected. There seems to be more that one way to solve the issue. I decided to useSystem.Diagnostics.Process.GetCurrentProcess.ProcessNameand check if it equals string &#8220;devenv&#8221;. If it does, the instance is running inside Visual Studio, which means it&#8217;s design-time for our control. For my problem this simple solution worked as a charm.</p></blockquote>
<p>via <a href="http://vidmar.net/weblog/archive/2005/04/11/1246.aspx">Detecting Design-time in C#</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Create an Asp.Net web user control with C#]]></title>
<link>http://dotnetstories.wordpress.com/2009/10/28/create-an-asp-net-web-user-control-with-c/</link>
<pubDate>Wed, 28 Oct 2009 11:05:19 +0000</pubDate>
<dc:creator>fofo</dc:creator>
<guid>http://dotnetstories.wordpress.com/2009/10/28/create-an-asp-net-web-user-control-with-c/</guid>
<description><![CDATA[User controls are reusable controls that can be defined once and used whenever we need them, in any ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>User controls are reusable controls that can be defined once and used whenever we need them, in any of the .aspx pages of our application. We do have skins,themes and css to give a standard look to our website. User controls help to achieve that as well because since we define them once and use many times, thus making sure we do not have same controls on pages looking differently. When we make changes to a user control all these changes will be reflected to all instances of the control.</p>
<p>I will try to highlight the following in this post</p>
<ol>
<li>What is a user control and why we need it</li>
<li>How to add Content to a User Control</li>
<li>How to add a User Control to a Web Page</li>
<li>How to define properties in a User Control</li>
<li>How to handle events in a User Control</li>
<li>How to raise events in a User Control</li>
<li>How to access the contents of a User Control</li>
</ol>
<p>We will have to create a simple user control step by step.Imagine you have many pages in your asp.net website. Let&#8217;s say that you are developing a fully functional e-commerce site. You will find that you need to collect user data, e.g address information (shipping address info,billing address info,registration customer address info). In this example we will use a user control to collect customer address data.</p>
<p>We just need Visual Studio 2005/2008 or VS 2010.</p>
<p>1) Launch Visual Studio and create a new asp.net website</p>
<p>2)  Save this website in you local file system and give it a name. Choose C# as your development language for this website</p>
<p>3)  Add new folder to your website and name it <strong>UserControl</strong></p>
<p>4) Right-click on this folder and add a new item. From all the items available select a <strong>Web User</strong> control. Also choose C# as the devlopment language and tick the option <strong>Place code in a seperate file</strong>.Name the control <strong>Address.ascx</strong></p>
<p>5) Switch to the Source view of the <strong>Address.ascx</strong> control.Have a look at the first line.</p>
<p><strong>&#60;%@ Control Language=&#8221;C#&#8221; AutoEventWireup=&#8221;true&#8221; CodeFile=&#8221;Address.ascx.cs&#8221; Inherits=&#8221;UserControls_Items_Address&#8221; %&#62;</strong></p>
<p>Notice that even though this directive looks a lot like a page directive it starts with  <strong>@ Control</strong></p>
<p>6)  Open the <strong>Address.ascx.cs</strong> file.Your newly create class does not inherit from theSystem.Web.UI.Page but from</p>
<p>public partial class UserControl_Address : System.Web.UI.UserControl</p>
<p>The classes System.Web.UI.Page and System.Web.UI.UserControl have lots in common since they both inherit from another class,TemplateControl class</p>
<p>For more information click <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.templatecontrol.aspx" target="_blank">here</a></p>
<p>7)  Let&#8217;s work on our new user control. Insert a table in your <strong>&#8220;Address.ascx&#8221; </strong>page. This table should have 4 rows and 2 columns.</p>
<p>8)  Add 4 label web server controls on the first 4 rows of the first column. Set their<strong> ID</strong>property as you like(<strong>AddressLabel1,AddressLabel2,AddressLabel3,PostCodeLabel</strong>). Set their text property like  this</p>
<ul>
<li><strong>Address1</strong></li>
<li><strong>Address2</strong></li>
<li><strong>Address3</strong></li>
<li><strong>PostCode</strong></li>
</ul>
<p>9) Add 4 textbox web server controls on the 4 rows of the second column.Set their <strong>ID</strong>property like this</p>
<p><strong>txtaddr1,txtaddr2,txtaddr3,txtpostcode</strong></p>
<p>10)  In order to add this newly created web user control to the <strong>Default.aspx</strong> page just drag and drop it from the <strong>Solution Explorer</strong> onto the .aspx page</p>
<p>11) Look in the source view of the <strong>Default.aspx</strong> page and notice this line</p>
<p><strong>&#60;%@ Register src=&#8221;UserControl/Address.ascx&#8221; tagname=&#8221;Address&#8221; tagprefix=&#8221;uc1&#8243; %&#62;</strong></p>
<p>This is how the user control is registered with the .aspx page. You will also see this</p>
<p><strong>&#60;uc1:Address ID=&#8221;Address1&#8243; runat=&#8221;server&#8221; /&#62;</strong></p>
<p>Change the<strong> ID</strong> property to <strong>Shipping_Address</strong></p>
<p>12) We can add new server controls to our user control. If we wanted to have a label control as a header we must select the <strong>Address.ascx </strong>and just above the table to insert a new label.Name this label <strong>headingLabel</strong>.</p>
<p>One can set the <strong>Text</strong> property of this new header label control and make it apparent to the end use that we talk about <strong>Shipping Address</strong>. But as I mentioned before we need to use this user control in many places in our website. So we do not want to have a fixed <strong>Text</strong>property but one we can set its value accordingly.</p>
<p>Select the <strong>Default.aspx</strong> page and in the</p>
<p><strong> &#60;uc1:Address ID=&#8221;Shipping_Address</strong><strong>&#8220;  runat=&#8221;server&#8221;/&#62;</strong> section you will see that<strong>headingLabel</strong> is not exposed as a property. It cannot be accessed from our page.</p>
<p>So we must add a new public property on this <strong>UserControl_Address</strong> class.This is the same with every other normal class.</p>
<p>So in the<strong> Address.ascx.cs</strong> file type</p>
<p><em><strong> public string Header<br />
{<br />
set { headingLabel.Text = value; }<br />
}</strong></em></p>
<p>13) Now you can go back to the <strong>Default.aspx</strong> page (Source View) and add the<strong>Header=Shipping Address</strong> <strong>&#60;uc1:Address ID=&#8221;</strong><strong>Shipping_Address</strong><strong>&#8220;  runat=&#8221;server&#8221; Header=&#8221;Shipping Address&#8221;&#62;</strong></p>
<p>14) It is very easy to handle events in a user control.Add a button to the user control. This means that you go to the <strong>Address.ascx</strong> file and drop a button under the table. Set the <strong>ID</strong>property to be <strong>txtNext</strong> and the <strong>Text</strong> property to be <strong>Next</strong>. Add another .aspx page to your website and call it <strong>Checkout.aspx</strong>. Double click on the button and you have the empty event handling routine.</p>
<p>Type the following</p>
<p><strong> protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
Response.Redirect(&#8220;~/Checkout.aspx&#8221;);<br />
}</strong></p>
<p>You see how easy it is to handle events in a user control.</p>
<p>14 ) Let&#8217;s see now, how we can create an event in the user control. First we need to define an event.</p>
<p>When we define an event we must define the signature of the event handler method. We do that by choosing a delegate type.We also must give a name to our event. We will call it<strong>Confirmed </strong>event.</p>
<p>Select the <strong>Address.ascx.cs</strong> and type</p>
<p><strong>public event EndEventHandler Confirmed</strong></p>
<p>So we know now that our user control class will raise an event and we must write some code to actually cause this event to be raised.</p>
<p>So in our <strong>Button_Click</strong> event handler, we type</p>
<p><strong>if (Confirmed!=null) Confirmed(this, new EventArgs());</strong></p>
<p>When the user clicks the button, the <strong>Confirmed</strong> event will be raised.</p>
<p>Select the<strong> Default.aspx</strong> page and in the Source View locate the</p>
<p><strong>&#60;uc1:Address ID=&#8221;</strong><strong>Shipping_Address</strong><strong>&#8220;  runat=&#8221;server&#8221; Header=&#8221;Shipping Address&#8221;/&#62;</strong></p>
<p>and change it to</p>
<p><strong>&#60;uc1:Address ID=&#8221;</strong><strong>Shipping_Address</strong><strong>&#8221; onConfirmed=&#8221;ShippingAdress_Confirmed&#8221;  runat=&#8221;server&#8221; Header=&#8221;Shipping Address&#8221;/&#62;</strong></p>
<p>We just added the event handler in the user control.We do that by entering the name of the event and the name of the event handling routine we will add shortly.</p>
<p>In order to add the <strong>ShippingAdress_Confirmed </strong>event handling routine we go back to the<strong>Default.aspx.cs</strong> file and type</p>
<p><strong>protected void ShippingAdress_Confirmed(object sender, EventArgs e)<br />
{</strong></p>
<p><strong>}</strong></p>
<p>Inside this routine add this line of code:</p>
<p><strong>Response.Write(&#8220;The event has been handled&#8221;); </strong></p>
<p>Run the application and you will see the event raised and handled (the text &#8220;<strong>The event has been handled</strong>&#8221; will be printed in the <strong>Default.aspx</strong> page)</p>
<p>For more information on events have a look <a href="http://msdn.microsoft.com/en-us/library/17sde2xt.aspx" target="_blank">here</a> .</p>
<p>15) Let&#8217;s assume that we need 2 instances of our user contol in the <strong>Default.aspx</strong> page (e.g one for shipping address and one for billing address).Select the <strong>Default.aspx</strong> and add a new user control. Go to the <strong>Source View</strong> and add a <strong>Header</strong> property e.g <strong>Billing Address</strong>. Also set the <strong>ID</strong> property to &#8220;<strong>Billing_Address</strong>&#8220;. You should have something like this</p>
<p><strong>&#60;uc1:Address ID=&#8221;</strong><strong>Billing_Address</strong><strong>&#8221; runat=&#8221;server&#8221; Header=&#8221;Billing Address&#8221; /&#62;.</strong></p>
<p>Run the application and see the 2 user controls.</p>
<p>We need to copy all the fields entered in our Shipping address to the Billing address fields.</p>
<p>So we must access the text properties of the <strong>Shipping_Address</strong> user control and copy them to the <strong>Billing_Address</strong> user control.</p>
<p>You will see that it is impossible to access these textbox values directly  from<strong>ShippingAdress_Confirmed</strong> event handler in the <strong>Default.aspx.cs</strong> class, because these text properties are protected and thus invisible to the event handling routine.</p>
<p>So we need to create some public properties in our user control class.</p>
<p>Select the <strong>Address.asx.cs</strong> file and type</p>
<p><strong> public string Address1<br />
{<br />
get {return txtaddr1.Text; }<br />
set {txtaddr1.Text=value;}<br />
}<br />
public string Address2<br />
{<br />
get { return txtaddr2.Text; }<br />
set { txtaddr2.Text = value; }<br />
}<br />
public string Address3<br />
{<br />
get { return txtaddr3.Text; }<br />
set { txtaddr3.Text = value; }<br />
}<br />
public string PostCode<br />
{<br />
get { return txtpostcode.Text; }<br />
set { txtpostcode.Text = value; }<br />
}</strong></p>
<p>16) Select the <strong>Default.aspx.cs</strong> file and inside the <strong>ShippingAddress_Confirmed</strong> event handling routine, comment out the ( <em>Response.Write(&#8220;The event has been handled&#8221;);</em>) and type<br />
<strong> Billing_Address.Address1 = Shipping_Address.Address1;<br />
Billing_Address.Address2 = Shipping_Address.Address2;<br />
Billing_Address.Address3 = Shipping_Address.Address3;<br />
Billing_Address.PostCode = Shipping_Address.PostCode;</strong></p>
<p>Run your application. Type some address data into the first user control and then click the button.You will see the entered data copied in the second user control.</p>
<p>Hope it helps. If you need the source code just email me.</p>
<p class="getsocial" style="text-align:left;"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=http://dotnetstories.wordpress.com/2009/10/28/create-an-asp-net-web-user-control-with-c" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4011.png" alt="Add to Facebook" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c&#38;h=Create%20an%20Asp.Net%20web%20user%20control%20with%20C%23" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4021.png" alt="Add to Newsvine" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&#38;url=http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c&#38;title=Create%20an%20Asp.Net%20web%20user%20control%20with%20C%23" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4031.png" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c&#38;title=Create%20an%20Asp.Net%20web%20user%20control%20with%20C%23" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4041.png" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c&#38;title=Create%20an%20Asp.Net%20web%20user%20control%20with%20C%23" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4051.png" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c&#38;title=Create%20an%20Asp.Net%20web%20user%20control%20with%20C%23" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4061.png" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&#38;Description=&#38;Url=http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c&#38;Title=Create%20an%20Asp.Net%20web%20user%20control%20with%20C%23" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4071.png" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Create%20an%20Asp.Net%20web%20user%20control%20with%20C%23+%40+http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4081.png" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4091.png" alt="Add to Technorati" /></a><a title="Add to Furl" href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fdotnetstories.wordpress.com%2F2009%2F10%2F28%2Fcreate-an-asp-net-web-user-control-with-c&#38;t=Create%20an%20Asp.Net%20web%20user%20control%20with%20C%23" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.files.wordpress.com/2009/02/gs4101.png" alt="Add to Furl" /></a></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
