<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Redaware Limited - Computer Services &#38; Business IT Solutions in Tenbury Wells, Worcestershire &#187; ASP.NET</title>
	<atom:link href="http://www.redaware.net/category/asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redaware.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 10:49:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VB.NET Code Snippets: Updating a data source using an event</title>
		<link>http://www.redaware.net/2009/09/vb-net-code-snippets-updating-a-data-source-using-an-event/</link>
		<comments>http://www.redaware.net/2009/09/vb-net-code-snippets-updating-a-data-source-using-an-event/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 13:14:18 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=103</guid>
		<description><![CDATA[You may wish to update a data source using an event. And, this is the code for Update:]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>You may wish to update a data source using an event.</p>
<pre class="brush: vb; title: ; notranslate">
'You need to use FindControl to access control on a  FormView:
Dim FirstName As TextBox = FormView1.FindControl(&quot;FirstNameTextBox&quot;)
Dim LastName As TextBox = FormView1.FindControl(&quot;LastNameTextBox&quot;)
Dim Phone As TextBox = FormView1.FindControl(&quot;PhoneTextBox&quot;)
Dim Email As TextBox = FormView1.FindControl(&quot;EmailTextBox&quot;)
SqlDataSource1.InsertParameters(&quot;FirstName&quot;).DefaultValue = FirstName
SqlDataSource1.InsertParameters(&quot;LastName&quot;).DefaultValue = LastName
SqlDataSource1.InsertParameters(&quot;Phone&quot;).DefaultValue = Phone
SqlDataSource1.InsertParameters(&quot;Email&quot;).DefaultValue = Email
SqlDataSource1.Insert()
</pre>
<p>And, this is the code for Update:</p>
<pre class="brush: vb; title: ; notranslate">
SqlDataSource1.UpdateParameters(&quot;FirstName&quot;).DefaultValue = FirstName
SqlDataSource1.UpdateParameters(&quot;LastName&quot;).DefaultValue = LastName
SqlDataSource1.UpdateParameters(&quot;Phone&quot;).DefaultValue = Phone
SqlDataSource1.UpdateParameters(&quot;Email&quot;).DefaultValue = Email
SqlDataSource1. Update()
</pre>
<div class="shr-publisher-103"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2009/09/vb-net-code-snippets-updating-a-data-source-using-an-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB.NET: Retrieving Active Directory account properties</title>
		<link>http://www.redaware.net/2009/08/vb-net-retrieving-active-directory-account-properties/</link>
		<comments>http://www.redaware.net/2009/08/vb-net-retrieving-active-directory-account-properties/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:22:24 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Windows 2003 Server]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=61</guid>
		<description><![CDATA[The .NET Framework includes an API called System.DirectoryServices. The sample VB.NET code below shows how to retrieve user account properties from the Active Directory. In order to use System.DirectoryServices classes, you will need to first add a reference to System.DirectoryServices. Imports System.DirectoryServices is required at the very top of your VB.NET code. Replace dc=domain, dc=co, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The .NET Framework includes an API called System.DirectoryServices. The sample VB.NET code below shows how to retrieve user account properties from the Active Directory.</p>
<p>In order to use System.DirectoryServices classes, you will need to first add a reference to <strong>System.DirectoryServices</strong>. </p>
<p><strong>Imports System.DirectoryServices</strong> is required at the very top of your VB.NET code.</p>
<pre class="brush: vb; title: ; notranslate">
Function GetUserProperties(ByVal GetUser, ByVal Result)
        Dim objSearch As New DirectorySearcher
        objSearch.SearchRoot = New DirectoryEntry(&quot;LDAP://dc=domain,dc=co,dc=uk&quot;)
        objSearch.Filter = GetUser
        'cn = Full Name, givenName = First name, initials = Middle names, sn = Surname, mail = email address
        objSearch.PropertiesToLoad.AddRange(New String() {&quot;cn&quot;, &quot;giveName&quot;, &quot;initials&quot;, &quot;sn&quot;, &quot;department&quot;, &quot;mail&quot;, &quot;Manager&quot;})
        Dim objResult As SearchResult
        objResult = objSearch.FindOne()
        GetUserProperties = (objResult.Properties(Result)(0))
End Function
</pre>
<p>Replace <strong>dc=domain, dc=co, dc=uk</strong> with your AD settings.</p>
<div class="shr-publisher-61"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2009/08/vb-net-retrieving-active-directory-account-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free SharePoint Developement Training from Microsoft</title>
		<link>http://www.redaware.net/2009/08/free-sharepoint-developement-training-from-microsoft/</link>
		<comments>http://www.redaware.net/2009/08/free-sharepoint-developement-training-from-microsoft/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 16:01:10 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[.Net Deployment]]></category>
		<category><![CDATA[Data Lists]]></category>
		<category><![CDATA[Share Developement]]></category>
		<category><![CDATA[SharePoint Branding]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Workflow]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=45</guid>
		<description><![CDATA[Module 1: SharePoint Development for .Net Developers Module 2: Web Parts Module 3: Page Navigation Module 4: Page Branding Module 5: Data List Module 6: Web Services Module 7: Event Handlers Module 8: Content Types and Site Columns Module 9: Workflow Module 10: User Management Module 11: Silverlight Module 12: Deployment]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.microsoft.com/winme/0901/34867/mod1/index.html">Module 1: SharePoint Development for .Net Developers</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod2/index.html">Module 2: Web Parts</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod3/index.html">Module 3: Page Navigation</a></p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod4/index.html">Module 4: Page Branding</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod5/index.html">Module 5: Data List</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod6/index.html">Module 6: Web Services</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod7/index.html">Module 7: Event Handlers</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod8/index.html">Module 8: Content Types and Site Columns</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod9/index.html">Module 9: Workflow</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod10/index.html">Module 10: User Management</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod11/index.html">Module 11: Silverlight</a> </p>
<p><a href="http://www.microsoft.com/winme/0901/34867/mod12/msh.htm">Module 12: Deployment</a></p>
<div class="shr-publisher-45"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2009/08/free-sharepoint-developement-training-from-microsoft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET: Deploying an AJAX enabled application to SharePoint</title>
		<link>http://www.redaware.net/2009/08/asp-net-deploying-an-ajax-enabled-application-to-sharepoint/</link>
		<comments>http://www.redaware.net/2009/08/asp-net-deploying-an-ajax-enabled-application-to-sharepoint/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 13:52:41 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[AJAX Control Toolkit]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=32</guid>
		<description><![CDATA[You may develop a web application that uses the ASP.NET AJAX Control Toolkit (http://www.asp.net/ajax/AjaxControlToolkit/Samples), if you plan to deploy this application to a SharePoint Server, you will need to complete the following steps:Copy the AjaxControlToolkit.dll to the BIN folder of the SharePoint server. Copy the AjaxControlToolkit.dll to the BIN folder of the SharePoint server. Edit [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p style="text-align: left">You may develop a web application that uses the ASP.NET AJAX Control Toolkit (<a href="http://www.asp.net/ajax/AjaxControlToolkit/Samples/">http://www.asp.net/ajax/AjaxControlToolkit/Samples</a>), if you plan to deploy this application to a SharePoint Server, you will need to complete the following steps:Copy the AjaxControlToolkit.dll to the BIN folder of the SharePoint server.</p>
<ol>
<li>Copy the AjaxControlToolkit.dll to the BIN folder of the SharePoint server.</li>
<li>Edit the web.config file as below:</li>
</ol>
<pre class="brush: xml; title: ; notranslate">
&lt;SafeControls&gt;
      &lt;SafeControl Assembly=&quot;System.Web.Extensions, Version=3.5.0.0,     Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;     Namespace=&quot;System.Web.UI&quot; TypeName=&quot;*&quot; Safe=&quot;True&quot; /&gt;
&lt;/SafeControls&gt;

&lt;configSections&gt;
    &lt;sectionGroup name=&quot;system.web.extensions&quot; type=&quot;System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;&gt;
      &lt;sectionGroup name=&quot;scripting&quot; type=&quot;System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;&gt;
          &lt;section name=&quot;scriptResourceHandler&quot; type=&quot;System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;/&gt;
        &lt;sectionGroup name=&quot;webServices&quot; type=&quot;System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;&gt;
          &lt;section name=&quot;jsonSerialization&quot; type=&quot;System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;Everywhere&quot; /&gt;
          &lt;section name=&quot;profileService&quot; type=&quot;System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot; /&gt;
          &lt;section name=&quot;authenticationService&quot; type=&quot;System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot; /&gt;
        &lt;/sectionGroup&gt;
      &lt;/sectionGroup&gt;
    &lt;/sectionGroup&gt;
&lt;/configSections&gt; 

&lt;pages&gt;
  &lt;controls&gt;
    &lt;add tagPrefix=&quot;asp&quot; namespace=&quot;System.Web.UI&quot; assembly=&quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;
  &lt;/controls&gt;
&lt;/pages&gt;

&lt;assemblies&gt;
       &lt;add assembly=&quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;
&lt;/assemblies&gt;

&lt;httpHandlers&gt;
      &lt;add verb=&quot;*&quot; path=&quot;*.asmx&quot; validate=&quot;false&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;
      &lt;add verb=&quot;*&quot; path=&quot;*_AppService.axd&quot; validate=&quot;false&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;
      &lt;add verb=&quot;GET,HEAD&quot; path=&quot;ScriptResource.axd&quot; type=&quot;System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; validate=&quot;false&quot;/&gt;
&lt;/httpHandlers&gt;

&lt;httpModules&gt;
      &lt;add name=&quot;ScriptModule&quot; type=&quot;System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;
&lt;/httpModules&gt;
</pre>
<div class="shr-publisher-32"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2009/08/asp-net-deploying-an-ajax-enabled-application-to-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

