﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>HeadTreez.com - AquestHosting</title>
      <description>ASP.Net hosting and SQL 2005 hosting by a Microsoft Certified Professional web host.</description>
      <link>http://AquestHosting.headtreez.com/</link>
      <lastBuildDate>Thu, 09 Sep 2010 14:55:09 GMT</lastBuildDate>
      <pubDate>Thu, 09 Sep 2010 14:55:09 GMT</pubDate>
      <generator>HeadTreez.com v1.0 FeedGenerator</generator>
      <item>
         <title><![CDATA[FAQ's]]></title>
         <description><![CDATA[<faqq>
    <p> </p>
  </faqq>]]></description>
         <category />
         <link>http://AquestHosting.headtreez.com/6917ba53-6765-4325-a647-1a5fd428aeb6</link>
         <guid>http://AquestHosting.headtreez.com/6917ba53-6765-4325-a647-1a5fd428aeb6</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Access Databases]]></title>
         <description><![CDATA[<div class="faqq">Q.) How do I create a dsn-less connection to my Access database using vbscript?</div>
		<p>
				<span class="Normal" id="dnn_ctr365_FAQs_lstFAQs__ctl0_A">
						<span class="Normal" id="_ctl0__ctl2__ctl0_lstFAQs__ctl0_A">A.) Here is a sample that assumes you have the databas in the "DATA" folder and named it "database1.mdb". Change this script as needed.<br /><br />Set objCXN = Server.CreateObject("ADODB.Connection") <br />strPath = Server.MapPath("/DATA/database1.mdb") <br />strCXN = "Microsoft.Jet.OLEDB.4.0;Data Source=" &amp; strPath &amp; ";User ID=;Password=;" <br />objCXN.Open strCXN  <br />. <br />. <br />objCXN.Close <br />Set objCXN = Nothing<br /></span>
				</span>
		</p>
		<div class="faqq">Q.) Is there any charge for using an Access database?</div>
		<p>A.) No charge. The nice thing about Access is that it is free, and also that it is file based so that you can simply copy the file to the webserver with you website.</p>
		<p>The downside of Access is that it really is not designed to be used by many users at one time, and we have seen many issues with websites getting locked up due to the use of Access. SQL Server databases are much better suited for websites than Access.</p>
		<div class="faqq">Q.) My web site uses an Access database and has started hanging up. What's going on? </div>
		<p>
				<span class="Normal" id="dnn_ctr365_FAQs_lstFAQs__ctl2_A">
						<span class="Normal" id="_ctl0__ctl2__ctl0_lstFAQs__ctl2_A">A.) You should download the ".mdb" file via FTP back to your computer, and run the Access "Compact and Repair" function on your database. <br />Then upload the ".mdb" file back to your site.<br /><br />It is recommended that you keep a backup of the database file before running the Compact and Repair function.<br /><br />This is not the only possible cause, but we have seen the database become corrupt, and this should be attempted to rule out a damaged database.</span> </span>
		</p>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/8ffc0a20-8f76-47b2-9efb-8bb80ae3210c</link>
         <guid>http://AquestHosting.headtreez.com/8ffc0a20-8f76-47b2-9efb-8bb80ae3210c</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Aquest Account Setup]]></title>
         <description><![CDATA[<div class="faqq">Q.) What are Aquest Hosting's name servers?</div>
		<ul>
				<li>DNS1.AquestHosting.com </li>
				<li>DNS2.AquestHosting.com </li>
		</ul>
		<div class="faqq">Q.) Can you help me transfer my account from another web hosting company? </div>
		<p>A.) We are happy to answer specific questions about how to move a site, but are unable to provide you a detailed list of things to do, as this varies so much in each individual case. If you need help transferring your domain name please contact us using a Trouble Ticket. </p>
		<div class="faqq">Q.) I have multiple domain names I want to point to the same site (ie: mySite.com, mySite.net, anotherSite.com). How do I do this? </div>
		<p>In the Control Panel, you are able to add Domain Pointers. After establishing one of the names as a Domain on our servers, you can add additional domain names that point to the same site. See our price menu for current prices of adding domain pointers. Note that you can accomplish this using either "Domains" or "Domain Pointers". The main differences are that "Domain Pointers" cost less, but do not include the hosting of email for the domain name.</p>
		<div class="faqq">Q.) How long after creating my account do I have to wait before I get FTP access to my account?</div>
		<p>It only takes a few minutes from the time you create your account until you are able to FTP your files to your new account. The account setup is instant, but it may take a few minutes for your user permissions to take effect. </p>
		<div class="faqq">Q.) How do I get my domain from my old web host to point to Aquest Hosting's servers?</div>
		<p>When you sign up, you will receive an email with our name server information. You can usually login to a control panel with your registrar to enter our name server information very easily. If you need any further assistance, just send us your registrar account information through the Trouble Ticket system and we will be happy to assist you. If you prefer to control your own dns records, and you have the access to do so, you will need to issue a trouble ticket to get the IP addresses that you should use for you DNS records. </p>
		<div class="faqq">Q.) How do I add a new domain to my account? </div>
		<p>
		</p>
		<ol>
				<li>Own the domain (you may purchase the name through us or any other source). </li>
				<li>If the domain is purchased through another registrar, you will need to have them change the name server records to:<br />DNS1.AquestHosting.com<br />DNS2.AquestHosting.com </li>
				<li>* If this is not the original domain for your account, you will use the "Domains" page in the control panel to create a new domain folder and setup the domain on our web server. </li>
		</ol>
		<p>Note: Step 2 gets the domain's taffic to our datacenter. Step 3 gets the server setup on our servers so that the traffic is correctly routed to your account.</p>
		<div class="faqq">Q.) I uploaded my site, but I still see the "Aquest Hosting" temporary web page instead of my web page. </div>
		<p>A.) You can connect to your site via FTP, and delete or rename the "default.htm" file that we placed there. Make sure that your default page's name matches one of the names listed as default documents. To see the pages that are recognized as default pages, open "Default Documents", in your control panel. You can edit the list as needed.</p>
		<div class="faqq">Q.) I see "Directory Listing Denied" when I go to my site. How do I fix "Directory Listing Denied"? </div>
		<p>Our server doesn't know which page you want to have displayed when a page is not specified in your url. To fix this, make sure that your default page's name matches one of the names listed as default documents. To see the pages that are recognized as default pages, open "Default Documents", in your control panel. You can edit the list as needed. </p>
		<div class="faqq">Q.) How do I upload my web site?</div>
		<p>A.) </p>
		<ul>
				<li>You can use FTP <ol><li>Open Internet Explorer. </li><li>Enter the FTP address from your Welcome Letter in the address bar. </li><li>Login with your username and password </li><li>If you see a domain folder, double click the folder, otherwise you are probably already in the domain folder </li><li>Copy the files from your computer, and paste them into the Internet Explorer window. </li><li>See our tutorial <a href="http://www.aquesthosting.com/HowTo/General/HowToFTP.aspx">http://www.aquesthosting.com/HowTo/General/HowToFTP.aspx</a>. </li></ol></li>
				<li>Or you can use FrontPage Extensions. See the FAQ's for FrontPage Extensions </li>
		</ul>
		<div class="faqq">Q.) I purchased a domain name through Aquest Hosting. How do I manage my own DNS servers (name servers)?</div>
		<p>Go to <a href="http://aquesthosting.myorderbox.com/">http://aquesthosting.myorderbox.com</a>. Your user name is the email address you used to sign up, and your password is your Aquest password you had at the time the domain was ordered. If you don't remember your password, you can use the password recovery tool on that page.</p>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/3dc81f70-4557-4f53-957e-e3c0e2af89c1</link>
         <guid>http://AquestHosting.headtreez.com/3dc81f70-4557-4f53-957e-e3c0e2af89c1</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Billing]]></title>
         <description><![CDATA[<div class="faqq">Q.) When do you charge my credit card? </div>
<p>A.) We bill monthly at the beginning of each month. Each billing covers the upcoming month. In other words, at the beginning of each month, you will be paying for that entire month in advance. </p>
<p>If you have ordered domains or extra services during we will typically bill those immediately or within a few days of your adding the items, especially in the case of a new accounts, or accounts that are spending more than usual in add on features. </p>
<div class="faqq">Q.) How can I close my account? </div>
<p>A.) You can close your account at any time by creating a Trouble Ticket with the subject of 'Close Account'. For your protection, we require that it be cancelled using the Trouble Ticket system so that we can verify you are the owner of the account. You do not have to give us a reason for closing your account. We do appreciate any feedback that you offer. </p>
<p>Do not issue a request to close an account until you are ready for the account to be closed. We will close the account immediately when we process your Trouble Ticket.</p>
<p>We've had some people request that we close an account in '2 weeks' or some future date. We can NOT do that. Please issue the ticket the day you are ready to close the account.</p>
<div class="faqq">Q.) I am not in the United States, can I buy your hosting services?</div>
<p>A.) Yes, we accept MasterCard, Visa, and American Express. All charges are in U.S. dollars. We do not perform any currency conversions. </p>
<div class="faqq">Q.) Can I pay quarterly or yearly and get a better price? </div>
<p>A.) At times we offer specials that allow you to pay for a year in advance and receive a discount. After the 1st year is over, you will be billed monthly. We do not offer quarterly billing.</p>
<div class="faqq">Q.) How can I tell what I should be billed each month? </div>
<p>A.) The "Recurring Charges" screen in the Control Panel under "Account Info" lists all the charges that you pay each month. This will include your regular hosting fee, as well as, any additional items you have added to your account such as SQL 2000 Databases. </p>
<div class="faqq">Q.) Can I see my bill from last month? </div>
<p>A.) Yes, you can see your entire history of invoices from the Control Panel. Go to "Account Info | Invoices" and select the invoice you wish to review. It will show you all the details about the invoice. </p>
<div class="faqq">Q.) Can I pay by check? Can you send me invoices? </div>
<p>A.) No. Sorry, but to keep our prices as affordable as possible all of our billing is done by credit card. There are no exceptions to this. </p>
<p>We do not mail out invoices. You can login to your control panel and view your invoices at any time. </p>
<div class="faqq">Q.) Can I change the credit card that is being used to pay for my account? </div>
<p>A.) Yes, in the Control Panel, go to the "Account Info | Credit Card" screen and update the card. You will have to suppy all the information about the card. The change will take affect immediately. </p>
<div class="faqq">Q.) Do I have to sign up for additional web space?</div>
<p>A.) No, when we run our billing, we charge for any overages you have used, but you do not need to sign up for anything. You can upgrade to a larger package that include more space if you wish. </p>
<div class="faqq">Q.) I am a reseller. Can you bill my customers for me? </div>
<p>A.) We will only bill the owner of each account, which is you. If you want us to handle the billing to your customers, then your customer will need to create an account with us. </p>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/a86e4de1-c9ad-4256-ac1d-0adebd64f57d</link>
         <guid>http://AquestHosting.headtreez.com/a86e4de1-c9ad-4256-ac1d-0adebd64f57d</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[CommunityServer FAQ's]]></title>
         <description><![CDATA[<div class="faqq">Q.) I setup Community Server using the Auto Installer in the Aquest Hosting control panel, but forgot my user name and password. </div>
		<p>A.) The initial user name and password will be "admin/Password1" (that's the number one at the end of the password). You should immediately login your site and change the admin's password to something only you know.</p>
		<div class="faqq">Q.) My Community Server "admin" user name and password is not working, and now I can't login with my admin account.</div>
		<p>You can manually reset the password for the admin account because by going into your SQL 2000 or SQL 2005 database, and change the password in the "aspnet_Membership" table to "Password1" or whatever password it should be.</p>
		<p>Make sure you are setting the password for the right user by comparing the userID with the userID in the aspnet_Users table.</p>
		<p>I also suggest that you copy and paste the existing password somewhere and save it until you have tested that you can login. </p>
		<p>Also, see <a href="http://aquesthosting.headtreez.com/doc/0c193063-fe3b-46fa-b604-0917b450549d">http://aquesthosting.headtreez.com/doc/0c193063-fe3b-46fa-b604-0917b450549d</a> to see how to prevent this from happening again.</p>
		<div class="faqq">Q.) I can't edit the 'Welcome' or the 'Featured Items' on the home page.</div>
		<p>This is a common probem that is occuring in Community Server 2.1. It is caused because when the area was last edited and saved, an extra set of &lt;div&gt; tags got added to your text. The fix that I'm reading on the Community Server forums has been to delete the rows in the cs_content table for the affected data. You can find more details here: <a href="http://communityserver.org/forums/permalink/542732/548751/ShowThread.aspx#548751" target="_blank">http://communityserver.org/forums/permalink/542732/548751/ShowThread.aspx#548751</a>.</p>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/3455d00f-4b83-42b9-af57-dfaf66b5cd71</link>
         <guid>http://AquestHosting.headtreez.com/3455d00f-4b83-42b9-af57-dfaf66b5cd71</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Preventing  accidental password changes in CommunityServer]]></title>
         <description><![CDATA[<div>Almost every day we have a customer that can't login to their CommunityServer site and this is page will tell you how to correct the issue, and prevent it from happening again.</div>
		<div> </div>
		<div>
				<strong>Scenario:</strong> </div>
		<div>
				<strong>  </strong>A new CommunityServer installation has taken place and the site is functioning as it should. The user uses the "I forgot my password" link. After this, the user can no longer login. I doubt it even occurs to most folks that using the "I forgot my password" link has anything to do with the problem.</div>
		<div> </div>
		<div>
				<strong>Why this happens:</strong> </div>
		<div> When CommunityServer is setup with the default setup, the option to send email is not configure, however the default behavior of the "I forgot my password" link is to change the password and email you the new password. The password does get changed, however the email never gets sent.</div>
		<div> </div>
		<div>
				<strong>
						<u>Solution - Option 1:</u>
				</strong>
		</div>
		<div>   Setup your mail server information right away to prevent emails not being able to go out. Please see <a href="http://aquesthosting.headtreez.com/doc/5f67fb22-62d6-4650-b213-79de62e97785">http://aquesthosting.headtreez.com/doc/5f67fb22-62d6-4650-b213-79de62e97785</a> for instructions on setting the email settings.</div>
		<div> </div>
		<div>
				<strong>
						<u>Solution - Option 2:</u>
				</strong>
		</div>
		<div>  Set CommunityServer to send you and email with a link, which you must then follow to have the password changed. I like this option because, it prevents the password from getting changed unless you really want that to happen. <span style="COLOR: red">Even if you do this option, it is still advisable to setup your email settings as suggested above.</span></div>
		<div> </div>
		<div>   <strong>To get CS to send a link to you before changing the password:</strong></div>
		<ol>
				<li>Login to your CS Adminstration pages. </li>
				<li>Go to Membership &gt; New Registration Settings, then set Password Recovery to "Link" instead of "Reset". </li>
		</ol>
		<div>
				<img width="770" height="433" src="/htimages/b2a3d878-e90d-44f4-88c0-8b5a43091e07/cspwlink.bmp" border="0" />
		</div>
		<div> </div>
		<div>
				<strong>What about fixing my password that was already changed?</strong>
		</div>
		<div>   You need access your database to make these changes. If you don't know how to access your database using SQL Enterprise Manager or SQL Studio, and you are an Aquest Hosting customer, you can submit a Trouble Ticket explaining what you need and we'll do it for you.</div>
		<div>
				<div>   The 'admin' user name is stored as plain text in the database so you can change it manually. If it is another user, it may not be stored in plain text, in which case this won't work so you'll need to fix the email settings (as described above, and have the system send you the new password again).</div>
				<div> </div>
		</div>
		<div>   Resetting password manually:</div>
		<ol>
				<li>Connect to your database. </li>
				<li>Open the 'aspnet_Users' table, find the user and note the userID. </li>
				<li>Open the 'aspnet_Membership' table find the line with the matching userID, and type in the password in the password field. </li>
		</ol>
		<div> </div>]]></description>
         <category>CommunityServer FAQ's</category>
         <link>http://AquestHosting.headtreez.com/0c193063-fe3b-46fa-b604-0917b450549d</link>
         <guid>http://AquestHosting.headtreez.com/0c193063-fe3b-46fa-b604-0917b450549d</guid>
         <pubDate>Tue, 09 Jan 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Custom User Fields - CommunityServer v2.1]]></title>
         <description><![CDATA[<h3>How to add custom user fields in CommunityServer 2.1</h3>
		<p>
				<b style="mso-bidi-font-weight: normal">
						<u>
						</u>
				</b> </p>
		<p>
				<b style="mso-bidi-font-weight: normal">
						<u>Scenario:<p></p></u>
				</b>
		</p>
		<p>I'm working on a CommunityServer site (v2.1 .Net 2), and need to add custom user fields. This site is for a professional organization where the members have a 'License #', so they want the 'Sign-Up' form to require the user to enter:<p></p></p>
		<ul type="disc">
				<li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1; tab-stops: list .5in">License # <span style="mso-spacerun: yes">    </span>(store in cs_Users)<p></p> </li>
				<li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1; tab-stops: list .5in">First Name <span style="mso-spacerun: yes">  </span>(store in aspnet_Profile as commonname)<p></p> </li>
				<li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1; tab-stops: list .5in">Last Name<span style="mso-spacerun: yes">   </span>(store in aspnet_Profile as commonname)<p></p></li>
		</ul>
		<p>in addition to the default fields required by CommunityServer at sign up. This will allow them to verify the user's credentials before activating their user account.</p>
		<p>CS stores a ‘commonname’ value in the aspnet_Profile table, so I will take advantage of that to store my first and last name values. With the license# field, I have to get a little creative, and I will store that in the cs_Users table. In both cases, there is no need to alter the database as these tables store properties in arrays in a single field, so we can just add to the items in those arrays.</p>
		<p>
				<strong>
						<u>Process:<p></p></u>
				</strong>
		</p>
		<p>
				<strong>
						<u>Part I: Changing the Sign up form.</u>
				</strong>
				<p>
				</p>
		</p>
		<p>In the web application:<p></p></p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2; tab-stops: list .5in">
				<span style="mso-bidi-font-size: 10.0pt">
						<span style="mso-list: Ignore">1)<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>Change 'communityserver.config' <span style="mso-spacerun: yes"> </span>by adding this under "&lt;CommunityServer&gt;": <span style="FONT-SIZE: 10pt; COLOR: blue"><p></p></span></p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">
				<br />
				<span style="FONT-SIZE: 10pt; COLOR: blue">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon">ExtendedUserData</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue">&gt; <br />   &lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon">add</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue"> </span>
				<span style="FONT-SIZE: 10pt; COLOR: red">name</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue"> = </span>
				<span style="FONT-SIZE: 10pt">"<span style="COLOR: blue">LicenseNo</span>"<span style="COLOR: blue"> /&gt; <br />&lt;/</span><span style="COLOR: maroon">ExtendedUserData</span><span style="COLOR: blue">&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">*You could add more items if you want to store more custom properties in the ‘cs_Users’ table.</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2; tab-stops: list .5in">
				<span style="mso-list: Ignore">2)<span style="FONT: 7pt 'Times New Roman'">      </span></span>In the CommunityServerControls20 project, open User\CreateUser.cs</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 81pt; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level2 lfo2; tab-stops: list 81.0pt">
				<span style="mso-list: Ignore">a.<span style="FONT: 7pt 'Times New Roman'">       </span></span>In the class variables, add:</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">TextBox</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> LicenseNo;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">        </span>
						<span style="mso-tab-count: 1">    </span>
						<span style="COLOR: teal">TextBox</span> FirstName;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">TextBox</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> LastName;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 81pt; TEXT-INDENT: -0.25in; mso-list: l0 level2 lfo2; tab-stops: list 81.0pt; mso-layout-grid-align: none">
				<span style="mso-no-proof: yes">
						<span style="mso-list: Ignore">b.<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="mso-no-proof: yes">In AttachChildControls() add:<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 63pt; mso-layout-grid-align: none">
				<span style="mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">LicenseNo = (<span style="COLOR: teal">TextBox</span>)FindControl(<span style="COLOR: maroon">"LicenseNo"</span>);<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">            </span>firstname = (<span style="COLOR: teal">TextBox</span>)FindControl(<span style="COLOR: maroon">"FirstName"</span>);<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 63pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">  </span>lastname = (<span style="COLOR: teal">TextBox</span>)FindControl(<span style="COLOR: maroon">"LastName"</span>);<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 63pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 81pt; TEXT-INDENT: -0.25in; mso-list: l0 level2 lfo2; tab-stops: list 81.0pt; mso-layout-grid-align: none">
				<span style="mso-no-proof: yes">
						<span style="mso-list: Ignore">c.<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="mso-no-proof: yes">In SaveAdditionalProfileData(<span style="COLOR: teal">User</span> user), add the first and last names to the user.Profile.CommonName before the user is saved (see red mods).<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 63pt; mso-layout-grid-align: none">
				<span style="mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">protected</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <span style="COLOR: blue">virtual</span> <span style="COLOR: blue">void</span> SaveAdditionalProfileData(<span style="COLOR: teal">User</span> user)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>{<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">if</span> (timezone != <span style="COLOR: blue">null</span>)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>user.Profile.Timezone = <span style="COLOR: blue">double</span>.Parse(timezone.SelectedItem.Value);<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">            </span>
						<span style="COLOR: red">string commonname = "";<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">            </span>if (firstname != null)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">                </span>commonname = firstname.Text.Trim() + " ";<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">            </span>if (lastname != null)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">                </span>commonname += lastname.Text.Trim();<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes">            </span>user.Profile.CommonName = commonname.Trim();<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">if</span> (csContext.SiteSettings.ShowContactCheckboxes)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>{<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>
						<span style="COLOR: blue">if</span> (allowSiteToContact != <span style="COLOR: blue">null</span>)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 5">                              </span>user.AllowSiteToContact = allowSiteToContact.SelectedValue;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>
						<span style="COLOR: blue">if</span> (allowSitePartnersToContact != <span style="COLOR: blue">null</span>)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 5">                              </span>user.AllowSitePartnersToContact = allowSitePartnersToContact.SelectedValue;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>}<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>SetExtendedUserData(user);<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: teal">Users</span>.UpdateUser(user);<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>}<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 63pt; mso-layout-grid-align: none">
				<span style="mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 63pt; mso-layout-grid-align: none">
				<span style="mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
				</span>
				<span style="FONT-SIZE: 10pt; COLOR: teal; mso-no-proof: yes">*</span>
				<span style="FONT-SIZE: 10pt; mso-no-proof: yes">If </span>
				<span style="mso-no-proof: yes">you are wondering why I’m not adding something for ‘LicenseNo’, the reason is that the ‘SetExtendedUserData(user)’ call will handle that without making any further mods to the code.<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2; tab-stops: list .5in">
				<span style="mso-list: Ignore">3)<span style="FONT: 7pt 'Times New Roman'">      </span></span>In Themes\default\Skins\ Skin-CreateUser.ascx, I add the following html:</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">tr</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&gt;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">align</span><span style="COLOR: blue">="right"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">CS</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">ResourceControl</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">ResourceName</span><span style="COLOR: blue">="CreateNewAccount_LicenseNo"</span> <span style="COLOR: red">ID</span><span style="COLOR: blue">="Resourcecontrol12"/&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">align</span><span style="COLOR: blue">="left"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">div</span> <span style="COLOR: red">class</span><span style="COLOR: blue">="CommonFormField"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">asp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">textbox</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="LicenseNo"</span> <span style="COLOR: red">MaxLength</span><span style="COLOR: blue">="64"</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">columns</span><span style="COLOR: blue">="40"</span> <span style="COLOR: blue">&gt;&lt;/</span><span style="COLOR: maroon">asp</span><span style="COLOR: blue">:</span><span style="COLOR: maroon">textbox</span><span style="COLOR: blue">&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">asp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">RequiredFieldValidator</span> <span style="COLOR: red">EnableClientScript</span><span style="COLOR: blue">="false"</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="RequiredFieldValidator1"</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">ControlToValidate</span><span style="COLOR: blue">="LicenseNo"</span> <span style="COLOR: red">Cssclass</span><span style="COLOR: blue">="validationWarning"&gt;</span>*<span style="COLOR: blue">&lt;/</span><span style="COLOR: maroon">asp</span><span style="COLOR: blue">:</span><span style="COLOR: maroon">RequiredFieldValidator</span><span style="COLOR: blue">&gt;</span>(from your membership card)<span style="mso-tab-count: 1">    </span><span style="mso-tab-count: 3">                  </span><p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">div</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">tr</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">tr</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">align</span><span style="COLOR: blue">="right"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">CS</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">ResourceControl</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">ResourceName</span><span style="COLOR: blue">="CreateNewAccount_FirstName"</span> <span style="COLOR: red">ID</span><span style="COLOR: blue">="Resourcecontrol13"/&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">align</span><span style="COLOR: blue">="left"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">div</span> <span style="COLOR: red">class</span><span style="COLOR: blue">="CommonFormField"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">asp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">textbox</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="FirstName"</span> <span style="COLOR: red">MaxLength</span><span style="COLOR: blue">="64"</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">columns</span><span style="COLOR: blue">="40"</span> <span style="COLOR: blue">&gt;&lt;/</span><span style="COLOR: maroon">asp</span><span style="COLOR: blue">:</span><span style="COLOR: maroon">textbox</span><span style="COLOR: blue">&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">asp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">RequiredFieldValidator</span> <span style="COLOR: red">EnableClientScript</span><span style="COLOR: blue">="false"</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="RequiredFieldValidator2"</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">ControlToValidate</span><span style="COLOR: blue">="FirstName"</span> <span style="COLOR: red">Cssclass</span><span style="COLOR: blue">="validationWarning"&gt;</span>*<span style="COLOR: blue">&lt;/</span><span style="COLOR: maroon">asp</span><span style="COLOR: blue">:</span><span style="COLOR: maroon">RequiredFieldValidator</span><span style="COLOR: blue">&gt;</span><span style="mso-tab-count: 4">                   </span><p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">div</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">tr</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">tr</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">align</span><span style="COLOR: blue">="right"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">CS</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">ResourceControl</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">ResourceName</span><span style="COLOR: blue">="CreateNewAccount_LastName"</span> <span style="COLOR: red">ID</span><span style="COLOR: blue">="Resourcecontrol14"/&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">align</span><span style="COLOR: blue">="left"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">div</span> <span style="COLOR: red">class</span><span style="COLOR: blue">="CommonFormField"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">asp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">textbox</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="LastName"</span> <span style="COLOR: red">MaxLength</span><span style="COLOR: blue">="64"</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">columns</span><span style="COLOR: blue">="40"</span> <span style="COLOR: blue">&gt;&lt;/</span><span style="COLOR: maroon">asp</span><span style="COLOR: blue">:</span><span style="COLOR: maroon">textbox</span><span style="COLOR: blue">&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 4">                        </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">asp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">RequiredFieldValidator</span> <span style="COLOR: red">EnableClientScript</span><span style="COLOR: blue">="false"</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="RequiredFieldValidator3"</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">ControlToValidate</span><span style="COLOR: blue">="LastName"</span> <span style="COLOR: red">Cssclass</span><span style="COLOR: blue">="validationWarning"&gt;</span>*<span style="COLOR: blue">&lt;/</span><span style="COLOR: maroon">asp</span><span style="COLOR: blue">:</span><span style="COLOR: maroon">RequiredFieldValidator</span><span style="COLOR: blue">&gt;</span><span style="mso-tab-count: 1"> </span><span style="mso-tab-count: 2">            </span><p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 3">                  </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">div</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">tr</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">
				<b style="mso-bidi-font-weight: normal">A note about the above html:</b> The ‘id’ value of each of the textboxes much match the names I put in the config files exactly. These <b style="mso-bidi-font-weight: normal"><u>ARE</u></b> case-sensitive. For the ‘LicenseNo’ textbox the name must match exactly what I put in ‘communityserver.config’.<span style="mso-spacerun: yes">  </span>For the ‘FirstName’ and ‘LastName’ textboxes, it must match exactly what was used in the previous step when altering <span style="mso-spacerun: yes"> </span>‘CreateUser.cs’ file.</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">Also note that I put in RequiredFieldValidators on all 3 of these rows to make sure the user puts in the information requested.</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2; tab-stops: list .5in">
				<span style="mso-list: Ignore">4)<span style="FONT: 7pt 'Times New Roman'">      </span></span>Now to set our labels, we need to edit Languages/en-US/Resources.xml in the web application.</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">Add the following resources in the appropriate sections:</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes"> </span>(*Add these to the section where they begin with ‘CreateNewAccount_’)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">resource</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span>
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">name</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> = </span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">"<span style="COLOR: blue">CreateNewAccount_LicenseNo</span>"<span style="COLOR: blue">&gt;</span>ADHA Member #<span style="COLOR: blue">&lt;/</span><span style="COLOR: maroon">resource</span><span style="COLOR: blue">&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">resource</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span>
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">name</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> = </span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">"<span style="COLOR: blue">CreateNewAccount_FirstName</span>"<span style="COLOR: blue">&gt;</span>First Name:<span style="COLOR: blue">&lt;/</span><span style="COLOR: maroon">resource</span><span style="COLOR: blue">&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">resource</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span>
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">name</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> = </span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">"<span style="COLOR: blue">CreateNewAccount_LastName</span>"<span style="COLOR: blue">&gt;</span>Last Name:<span style="COLOR: blue">&lt;/</span><span style="COLOR: maroon">resource</span><span style="COLOR: blue">&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<p> </p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-spacerun: yes"> </span>(*Add this to the section where they begin with ‘EditProfile_’)<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">resource</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span>
				<span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">name</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> = </span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">"<span style="COLOR: blue">EditProfile_LicenseNo</span>"<span style="COLOR: blue">&gt;</span>ADHA Member #<span style="COLOR: blue">&lt;/</span><span style="COLOR: maroon">resource</span><span style="COLOR: blue">&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="mso-tab-count: 2">            </span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">
				<p> </p>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">Compile CommunityServerControls20, and put the updated dll CommunityServer.Controls.dll) in your website bin.</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">Now you are done changing the Sign up form.</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">Now we want to change the Administrators EditUser page so our new properties show up there and can be edited there by the administrator. This is dependent on some of the changes made in the earlier section.</p>
		<p>
				<strong>
						<u>Part II: Changing the Administrators EditUser page.<p></p></u>
				</strong>
		</p>
		<p>
				<strong>
						<span style="FONT-WEIGHT: normal; mso-bidi-font-weight: bold">*Some of this is dependent on things we’ve done in Part I.<p></p></span>
				</strong>
		</p>
		<p>
				<strong>
						<span style="FONT-WEIGHT: normal; mso-bidi-font-weight: bold">This will be much easier than Part I. What we need to do is change </span>web\Controlpanel\Membership\UserEdit.aspx</strong>
				<strong>
						<span style="FONT-WEIGHT: normal; mso-bidi-font-weight: bold">. <p></p></span>
				</strong>
		</p>
		<p>
				<strong>
						<span style="FONT-WEIGHT: normal; mso-bidi-font-weight: bold">
								<span style="mso-spacerun: yes"> </span>1) In the html view, I find a location where I want to show my items and insert these 2 rows:<p></p></span>
				</strong>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">tr</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&gt;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">td</span>
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <span style="COLOR: red">class</span><span style="COLOR: blue">="CommonFormFieldName"</span> <span style="COLOR: red">width</span><span style="COLOR: blue">="45%"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">cp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">resourcecontrol</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">resourcename</span><span style="COLOR: blue">="EditProfile_CommonName"</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="ResourceControl5"</span> <span style="COLOR: red">name</span><span style="COLOR: blue">="ResourceControl5"</span> <span style="COLOR: blue">/&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">class</span><span style="COLOR: blue">="CommonFormField"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">asp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">textbox</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="CommonName"</span> <span style="COLOR: red">size</span><span style="COLOR: blue">="30"</span> <span style="COLOR: red">maxlength</span><span style="COLOR: blue">="50"</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: blue">/&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;/</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">tr</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&gt;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;</span>
				<span style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">tr</span>
				<span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&gt;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">class</span><span style="COLOR: blue">="CommonFormFieldName"</span> <span style="COLOR: red">width</span><span style="COLOR: blue">="45%"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 2">            </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">cp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">resourcecontrol</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: red">resourcename</span><span style="COLOR: blue">="EditProfile_LicenseNo"</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="ResourceControl2"</span> <span style="COLOR: red">name</span><span style="COLOR: blue">="ResourceControl2"</span> <span style="COLOR: blue">/&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;/</span>
						<span style="COLOR: maroon">td</span>
						<span style="COLOR: blue">&gt;<p></p></span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">td</span> <span style="COLOR: red">class</span><span style="COLOR: blue">="CommonFormField"&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
						<span style="mso-tab-count: 1">      </span>
						<span style="mso-tab-count: 1">      </span>
						<span style="COLOR: blue">&lt;</span>
						<span style="COLOR: maroon">asp</span>
						<span style="COLOR: blue">:</span>
						<span style="COLOR: maroon">textbox</span> <span style="COLOR: red">id</span><span style="COLOR: blue">="LicenseNo"</span> <span style="COLOR: red">size</span><span style="COLOR: blue">="30"</span> <span style="COLOR: red">maxlength</span><span style="COLOR: blue">="50"</span> <span style="COLOR: red">runat</span><span style="COLOR: blue">="server"</span> <span style="COLOR: blue">/&gt;<p></p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: none">
				<span style="mso-no-proof: yes">&lt;/<span style="COLOR: maroon">td</span>&gt;<p></p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">
				<span style="mso-no-proof: yes">&lt;/<span style="COLOR: maroon">tr</span>&gt;</span>
				<strong>
						<span style="FONT-WEIGHT: normal; mso-bidi-font-weight: bold">
								<p>
								</p>
						</span>
				</strong>
		</p>
		<p>*The textbox id’s are again case sensitive.</p>
		<p>We don’t need to make any changes to the code behind. Its not magic, but I’ll leave it you to read the code behind if you really want to see why this works without adding more code to the code behind page.</p>
		<p>
				<p> </p>
		</p>
		<p>Here’s what the changed pages look like:</p>
		<p>
				<img width="731" height="601" alt="CSsignupAlt.gif" src="/htimages/b2a3d878-e90d-44f4-88c0-8b5a43091e07/CSsignupAlt.gif" border="1" />
		</p>
		<p> </p>
		<p>
				<img width="698" height="564" alt="CSEditUser.gif" src="/htimages/b2a3d878-e90d-44f4-88c0-8b5a43091e07/CSEditUser.gif" border="1" />
		</p>
		<p>
				<p> </p>
		</p>
		<p>   </p>]]></description>
         <category>CommunityServer FAQ's</category>
         <link>http://AquestHosting.headtreez.com/7f68c017-6b7b-4291-9f18-43029f2852a1</link>
         <guid>http://AquestHosting.headtreez.com/7f68c017-6b7b-4291-9f18-43029f2852a1</guid>
         <pubDate>Sat, 23 Dec 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Email for Community Server]]></title>
         <description><![CDATA[You have installed Community Server 2.1 and now you need to configure it to send email. <br /><p>First of all, we only allow you to send authenticated email through our SMTP mail server so you must first setup your email domain so you will have a valid email account for validation.</p><ol><li>Setup your email at Aquest Hosting if this hasn't been done. <ul><li>Login the Aquest control panel. </li><li>Go to the 'Email' page. </li><li>Create your email domain. </li></ul></li><li>Setup Email Settings in Community Server. <ul><li>Use SMTP Authentication: true </li><li>SMTP Server: hostmail.aquesthosting.com </li><li>Port: 25 </li><li>Authentication Required: true </li><li>User Name: [your full email address used to login to SmarterMail] </li><li>Password: [your password used to login SmarterMail] </li></ul><ul></ul><p><strong>Note:</strong> The SMTP server above (hostmail.aquesthosting.com) is only accessible by code running on our servers, so if you are running code on a computer not on our network, you need to use your own SMTP server address.<img width="471" height="553" alt="CS_mail_setup.jpg" src="/htimages/b2a3d878-e90d-44f4-88c0-8b5a43091e07/CS_mail_setup.jpg" border="0" /></p></li></ol>]]></description>
         <category>CommunityServer FAQ's</category>
         <link>http://AquestHosting.headtreez.com/5f67fb22-62d6-4650-b213-79de62e97785</link>
         <guid>http://AquestHosting.headtreez.com/5f67fb22-62d6-4650-b213-79de62e97785</guid>
         <pubDate>Thu, 08 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[WWW removal override in site URL's]]></title>
         <description><![CDATA[<p>By default Community Server removes the WWW from all URL's once site is contacted. Some individuals prefer this be overridden so search engines will hit the full URL.<br /><br />To override this default setting you need to go to the root of your website and edit the file named "communityserver.config". Scroll down till you find the section:<br /><br />&lt;Core <br />  defaultLanguage="en-US" <br />  disableEmail="false"<br />  disableIndexing="false" <br />  disableThreading="false"<br />  cacheFactor="5"<br />  smtpServerConnectionLimit="-1"<br />  enableLatestVersionCheck="true"<br />  systemType = "Self"<br />  backwardsCompatiblePasswords = "false"<br />  ssl = "Ignore"<br />  defaultRoles = "Everyone;Registered Users" <br />  <font color="#ff0000"><strong>wwwStatus = "Remove"</strong></font><br />  enableVirtualization = "false"<br />  enableProductListing = "true"<br />  enableUsersOnline = "true"<br />  announcementRssUrl="<a href="http://dev.communityserver.com/blogs/announcements/rss.aspx">http://dev.communityserver.com/blogs/announcements/rss.aspx</a>"<br />  proxyHost=""<br />  proxyPort=""<br />  proxyUsername=""<br />  proxyPassword=""<br />  proxyBypassOnLocal="true"<br /> &gt;</p>
		<p>You need to edit the line stated as:</p>
		<p>wwwStatus = "<font color="#ff0000"><strong>Remove</strong></font>"</p>
		<p>so that it reads:</p>
		<p>wwwStatus = "<strong><font color="#ff0000">Require</font></strong>"</p>
		<p>Now save your file. Open and save your web.condfig file (make no changes to it) to force your site to reload.<br /><br />Now all site visitors, whether using www in the URL or not, will be hitting the site with the www in the URL.</p>]]></description>
         <category>CommunityServer FAQ's</category>
         <link>http://AquestHosting.headtreez.com/0aa868df-2128-4d73-b2c1-68fd3fd1a456</link>
         <guid>http://AquestHosting.headtreez.com/0aa868df-2128-4d73-b2c1-68fd3fd1a456</guid>
         <pubDate>Tue, 01 Jul 2008 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Components & DLLs]]></title>
         <description><![CDATA[<div class=faqq>Q.) Can upload Dlls to my website? </div>
<P>A.) If you are referring to .Net dlls, then yes. You simply upload the Dlls to your 'bin' folder, and your website can then use them.</P>
<P>If you are referring to COM dlls, then they would have to be registered by our staff on your web server. There is a charge for us to install COM dlls. Please refer to <A href="http://www.aquesthosting.com/addons.aspx" target=_blank>http://www.aquesthosting.com/addons.aspx</A> for current pricing.</P>
<div class=faqq>Q.) Do you support Java Servlets?</div>
<P>A.) No</P>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/5d3d9e5c-48ee-45b2-9555-7c5d6f847e08</link>
         <guid>http://AquestHosting.headtreez.com/5d3d9e5c-48ee-45b2-9555-7c5d6f847e08</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Development/Programming]]></title>
         <description><![CDATA[<div class="faqq">Q.) How do I use code to find the correct file path for my images (or other) folder using C#? </div>
		<div>C# sample:</div>
		<p>A.) Use the "Server.MapPath" function: </p>
		<p>
				<strong>C# sample</strong> <br />string path = Server.MapPath(@"~/Images/"); </p>
		<p>That will return the path of the "Images" folder under the root of your website. </p>
		<div class="faqq">Q.) How do I get a file path using vbscript?</div>
		<p>&lt;%string path = server.MapPath(".")%&gt;<br /><br />This returns the name fo the folder that the page is in.</p>
		<div class="faqq">Q.) ASP.Net validators are posting back to the server without doing the client-side validation. It works properly on my computer, but not when I move it to Aquest Hosting's server. </div>
		<p>
				<span class="Normal" id="dnn_ctr369_FAQs_lstFAQs__ctl2_A">
						<span class="Normal" id="_ctl0__ctl9__ctl0_lstFAQs__ctl2_A">Your code is looking to the root of your website for a folder called "/aspnet_client/system_web/1_1_4322/WebUIValidation.js". Since it isnt there, it goes on and does the post back.<br /><br />Please copy and upload the folder "c:/inetpub/wwwroot/aspnet_client" from your computer to the root folder of your website on our server.<br /></span>
				</span>
		</p>
		<div class="faqq">Q.) IE Web Controls aren't working. The work fine on my computer, but not when I upload to the Aquest server. </div>
		<p>Your code is looking to the root of your website for a folder called "/webctrl_client/...". It works fine on your computer because the root of your site on your computer is C:\inetpub\wwwroot\, and the folder exists. On our server, the root of your site is your domain folder.</p>
		<p>Please copy and upload the folder "c:/inetpub/wwwroot/webctrl_client" from your computer to the root folder of your website on our server. </p>
		<div class="faqq">Q.) I'm using vbscript and getting an error when trying to do Server.mappath("../myfolder/myfile.htm"). </div>
		<p>The error you are getting is becuase we have Parent Paths disabled, so you cannot use the "../" to move backwards (up) your folders. Please try this: Server.MapPath("/myFolder/myfile.htm") </p>
		<p>The above line begins at the root of your domain, and moves down to your folder. This method has the added benefit that you can move your script page to another folder, and it will still work, as long as you don't move "/myfolder/myfile.htm" because it will always start at the root instead of being dependent on the location of the script file.</p>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/e811bb23-eb1a-47e2-93eb-05658c2c1ef3</link>
         <guid>http://AquestHosting.headtreez.com/e811bb23-eb1a-47e2-93eb-05658c2c1ef3</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[DotNetNuke]]></title>
         <description><![CDATA[Please use the pages under this section to get answers to common questions about setting up DotNetNuke.]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/4a0ea54f-56ad-4277-9910-24aca4464d24</link>
         <guid>http://AquestHosting.headtreez.com/4a0ea54f-56ad-4277-9910-24aca4464d24</guid>
         <pubDate>Thu, 08 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Email from DNN]]></title>
         <description><![CDATA[<p>So you've installed DNN on your website and you are ready to set it up to send emails. To do this, DNN needs to know which email server (smtp server) to use, and how to login to that server to send emails. </p>
		<p>A.) First of all, we only allow you to send authenticated email through our SMTP mail server so you must first setup your email domain so you will have a valid email account for validation.</p>
		<ol>
				<li>Setup your email at Aquest Hosting if this hasn't been done. <ul><li>Login the Aquest control panel. </li><li>Go to the 'Email' page. </li><li>Create your email domain. </li></ul></li>
				<li>Setup Email Settings in DotNetNuke by logging in with the 'host' account and going to the 'Settings' page (image below). <ul><li>SMTP Server: hostmail.aquesthosting.com </li><li>SMTP Authentication: Basic </li><li>User Name: [your full email address used to login to SmarterMail] </li><li>Password: [your password used to login SmarterMail] </li></ul><ul></ul><p><strong>Note:</strong> The SMTP server above (hostmail.aquesthosting.com) is only accessible by code running on our servers, so if you are running code on a computer not on our network, you need to use your own SMTP server address. <br /><img width="608" height="336" alt="dnnmail.gif" src="/htimages/b2a3d878-e90d-44f4-88c0-8b5a43091e07/dnnmail.gif" border="0" /> </p></li>
		</ol>]]></description>
         <category>DotNetNuke</category>
         <link>http://AquestHosting.headtreez.com/871b6ca4-a7d1-41a1-a21d-4d75cba8829f</link>
         <guid>http://AquestHosting.headtreez.com/871b6ca4-a7d1-41a1-a21d-4d75cba8829f</guid>
         <pubDate>Thu, 08 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Email]]></title>
         <description><![CDATA[<div class="faqq">Q.) How do I start using my email at Aquest Hosting?</div>
		<p>We provide our customers with email hosting for each domain we host (not for domain pointers). Email runs on SmarterMail, which is a truly outstanding email server, and has a great web interface allowing you to check your email from anywhere you have internet access.</p>
		<ol>
				<li>Create your SmarterMail account for your domain: <ul><li>Login to your Aquest Control Panel.</li><li>Go the 'Email Setup' page</li><li>Pick the domain from a list of your domains in the drop-down list.</li><li>Press the 'Setup Email' button.</li></ul></li>
				<li>Now you can login to your SmarterMail web interface to manage email. <ul><li>If your domain has propagated to our servers, use http://mail.[yourdomain]</li><li>If your domain hasn't propagated, use http://mail.aquesthosting.com</li></ul></li>
				<li>
						<font color="#ff0000">*</font>Your initial email user account is setup as the user that created the email account. When logging into SmarterMail, you need to use the full email address as the user name. For example, if your Aquest user name is 'jsmith' and your domain is 'abc.com', your SmarterMail user name is 'jsmith@abc.com'. Your password will be the same as your Aquest password.</li>
				<li>For more details and email help, each page in the SmarterMail web interface has a 'Help' link to bring up page specific help.</li>
		</ol>
		<div class="faqq">Q.) How do I login to my webmail? </div>
		<p>First you need to create your email domain by logging into the Aquest Hosting control panel and using the 'Email' page to setup your domain in SmarterMail. </p>
		<p>If your domain is already active at Aquest Hosting, you should now be able to access http://mail.[yourdomainNameHere].com. If you can not access your mail domain, then you can use http://mail.aquesthosting.com. </p>
		<p>Login to SmarterMail: </p>
		<ul>
				<li>
						<strong>UserName: </strong>This will be a full email address of [yourAquestUserName]@[yourDomain].com. For instance, if your Aquest user name is 'bob' and your domain is 'abc.com' then your email user name is 'bob@abc.com'. </li>
				<li>
						<strong>Password:</strong> [your Aquest password] </li>
		</ul>
		<div class="faqq">Q.) How do I setup Outlook? -or- How do I setup my email client? </div>
		<p>We have a picture tutorial at <a href="http://www.aquesthosting.com/HowTo/General/OutlookPop3.aspx" target="_blank">http://www.aquesthosting.com/HowTo/General/OutlookPop3.aspx</a> which shows how to setup Outlook 2003. Other email clients will be similar. </p>
		<div class="faqq">Q.) My content filter is not moving detected mail to my JunkMail folder before it forwards to my other email address(es). I am getting all filtered junk mail sent to me anyway. How do I correct this? </div>
		<span class="Normal" id="dnn_ctr370_FAQs_lstFAQs__ctl5_A">
				<span class="Normal" id="_ctl0__ctl12__ctl0_lstFAQs__ctl9_A">The order in which mail processing is applied is:<br />1-Content filtering happens first<br />2-If filter says to bounce or delete the detected mail then that takes place.<br />3-Forwarding of all NON-bounced and UN-deleted email takes place.<br />4-If your Content filter action was to MOVE ID'd mail to another fodler (e.g. Junk Mail) then it ocurrs.<br /><br />So, if the filter says MOVE ID'd mail this will not ocurr till AFTER forwarding therefore all your junk mail gets forwarded vs. moved<br /><br />A work around is to create Filters similar to this:<br /><br />CF1: if mail contains xxx, move to junk folder<br />CF2: if mail contains yyy, move to junk folder<br />CF3: if mail contains zzz, move to junk folder<br />CF4: if mail contains qqq, move to junk folder<br />CF5: if mail contains xyz, move to junk folder<br />CF6: if mail contains *, REROUTE to MyMail@ElseWhere.com, delete</span> </span>
		<div class="faqq">Q.) I keep getting "you do not have permissions to post to list" when I try to subscribe to my newly created mailing list. What needs to be done? </div>
		<p> <span class="Normal" id="dnn_ctr370_FAQs_lstFAQs__ctl6_A"><span class="Normal" id="_ctl0__ctl12__ctl0_lstFAQs__ctl10_A">The default list command of stServ doesn't work. Request from support@aquesthosting.com to have your list command changed to LIST. Once done you can send an email to list@YourDomain.com, subject line doesn't matter, and in body text type, without quotes, "subscribe NameOfYourList". For example, if your list is friends@YourDomain.com then your body text would read "subscribe friends".</span> </span></p>
		<div class="faqq">Q.) I'm getting spam from someone impersonating a user at my own domain. Is there anything that can be done to prevent this? </div>
		<p>The only defense against it is the utilization of what is known as a SPF record added to DNS. In essence, what this does is prevents anyone from sending email that does not originate from the IP address of the mail server for your domain.<br /></p>
		<p>There is a setup fee to have us setup the SPF record. Please submit a Trouble Ticket for current pricing or to have this setup.</p>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/4a21a95f-f36e-47ef-8a03-12470c545d23</link>
         <guid>http://AquestHosting.headtreez.com/4a21a95f-f36e-47ef-8a03-12470c545d23</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Email Code]]></title>
         <description><![CDATA[<div class="faqq">Q.) How can I send email from my ASP code using ASPMail? </div>
		<p>Moved to <a href="http://aquesthosting.headtreez.com/doc/c709bdae-2163-443f-8f75-1ba423ad44c9">http://aquesthosting.headtreez.com/doc/c709bdae-2163-443f-8f75-1ba423ad44c9</a></p>
		<div class="faqq">Q.) How do I send authenticated email from ASP.Net 2.0?</div>
		<p>we have a C# code sample here: <a href="/site/AquestHosting/e8e7c128-4a59-4010-a463-fb808520f72a">http://headtreez.com/site/AquestHosting/e8e7c128-4a59-4010-a463-fb808520f72a</a> </p>
		<div class="faqq">Q.) How do I setup email to work in Community Server that is hosted by Aquest Hosting?</div>
		<p>Moved to: <a href="http://aquesthosting.headtreez.com/doc/5f67fb22-62d6-4650-b213-79de62e97785">http://aquesthosting.headtreez.com/doc/5f67fb22-62d6-4650-b213-79de62e97785</a></p>
		<div class="faqq">Q.) How do I setup email so I can send email from DotNetNuke?</div>
		<p>Moved to: <a href="http://aquesthosting.headtreez.com/doc/871b6ca4-a7d1-41a1-a21d-4d75cba8829f">http://aquesthosting.headtreez.com/doc/871b6ca4-a7d1-41a1-a21d-4d75cba8829f</a></p>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/07cb6270-c0a7-4a8b-bfbe-388e26b297b6</link>
         <guid>http://AquestHosting.headtreez.com/07cb6270-c0a7-4a8b-bfbe-388e26b297b6</guid>
         <pubDate>Tue, 07 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[FrontPage Extensions]]></title>
         <description><![CDATA[<div class="faqq">Q. Should I install FrontPage Extensions on my website? </div>
		<div class="faqa">
				<p>A. If you do not HAVE to have FP Extensions on your site then do NOT install them on your site.</p>
				<p>FrontPage Extensions are used by some development environments to deploy your files to the server. They may also be required for some component you are using, especially if you developed your site with FrontPage.</p>
				<p>FrontPage Extensions alter the permissions of your files, and can cause some issues with locking files. Do not install them unless you really need them.</p>
		</div>
		<div class="faqq">Q. My user name / password is not working when I login using FrontPage Extensions to upload my site. </div>
		<div class="faqa">
				<p>A. To login using FrontPage extensions, you are required to use the our local domain ( "jgl\") name with your username. The format is:<br />Username : JGL\YourUserName<br />Password : YourPassword</p>
		</div>
		<div class="faqq">Q. How do I add FrontPage Extensions to my website? </div>
		<div class="faqa">
				<p>A. </p>
				<ol>
						<li>Login to the Control Panel </li>
						<li>Go to the FrontPage Extensions page </li>
						<li>Select the domain from the drop down list. </li>
						<li>Click the install button, and wait a few seconds for the confirmation. </li>
				</ol>
				<p>
				</p>
		</div>
		<div class="faqq">Q. I have FrontPage Extensions on my site, and I am unable to delete a folder. </div>
		<div class="faqa">
				<p>A. Frontpage extensions puts hidden files in your folders that can cause this. Try deleting the contents of the folder, then deleting the folder. If that does not work. You may just have to wait a day, or a week, to be able to delete the folder because it is corrupt. You can just ignore the folder and work around it, or you can use it, but you cannot delete it.</p>
		</div>
		<div class="faqq">Q. I cannot upload with Visual Studio or FrontPage with the temporary URL for my site. </div>
		<div class="faqa">
				<p>A. Visual Studio uploads will not work with the temporary address. You will need to use FTP to upload your files until your domain name propagates. Then use the permanent web address to upload your files. </p>
				<p>To be clear, it is not possible to use the FrontPage Extensions upload feature with the temporary address. It can only be done with your permanent URL.</p>
		</div>
		<div class="faqq">Q. FrontPage Extensions quit working after deleting some files from my site. </div>
		<div class="faqa">
				<p>A. You probably deleted some of the files or folders required by FrontPage Extensions. </p>
				<ol>
						<li>Login to the control panel </li>
						<li>Go to the FrontPage Extensions page. </li>
						<li>Select the domain from the drop down list </li>
						<li>Click install to reinstall your extensions.</li>
				</ol>
		</div>
		<div class="faqq">Q. It says '..can't find web project "/"...' when I try to upload my project. </div>
		<div class="faqa">
				<p>A. This happens when some of the FrontPage Extensions files (or folders) are missing from your domain folder. It is very common that you have deleted some files and accidentally deleted some of the files belonging to FP extensions. </p>
				<ol>
						<li>Login to the Control Panel. </li>
						<li>Go to the FrontPage Extensions Page. </li>
						<li>Select the domain from the drop down list. </li>
						<li>Click "Install". </li>
				</ol>
				<p>This will install or re-install the extensions and correct the problem.</p>
		</div>
		<div class="faqq">Q. How do I get to the FrontPage Administration pages? </div>
		<div class="faqa">
				<p>A. Your domain name must have propagated to our servers before you can reach the FrontPage Extensions Admin pages.</p>
				<p>After installing FrontPage Extensions, you will be able to access your FrontPage Extensions Administration pages with the following URL, but substitute your domain where it says "myDomain".</p>
				<p>Example:<br />http://myDomain.com/_vti_bin/_vti_adm/fpadmdll.dll?page=webadmin.htm </p>
				<p>You will then need to provide your UserName prefixed with "JGL\" as follows</p>
				<p>Example:<br />UserName = JGL\myAquestUserName<br />UserName = myPassword<br /></p>
				<p>Please note that you do not have the permissions to add users.</p>
		</div>
		<div class="faqq">Q. FrontPage Extensions Search Component returns an error page when you try to run a search. </div>
		<div class="faqa">
				<p>A. Contact Aquest Hosting support to have them setup your Indexing service catalog. </p>
		</div>
		<div class="faqq">Q. FrontPage Search Component does not work from an ASP page. </div>
		<div class="faqa">
				<p>A. This is because the ASP.dll handles asp pages and prevents the FrontPage Isapi dll from handling the request. </p>
				<p>Also, if you change to a HTML page, you will still need to have Aquest Support Staff create an Indexing catalog for your site before the search component will work correctly. Please create a Trouble Ticket to request having an Index catalog created. </p>
		</div>
		<div class="faqq">Q. Why is my FrontPage integrated database giving an error? </div>
		<div class="faqa">
				<p>A. After considerable head-scratching, I found that if I used an Access Query within the FrontPage Data Results Wizard (DRW), it won't work.</p>
				<p>HOWEVER, in the FrontPage DRW, if I select a "Custom Query", and insert the SAME Access Query, everything works fine. There is a problem with what FrontPage is trying to do. The first time you open the "Custom Query" dialog, you can see that FrontPage is putting quotes (") around the Access query name. This won't work. But if you replace the quotes (" ")) with brackets ([ ]), FrontPage DRW now works!</p>
				<p>Example:<br />What FrontPage tries to do: SELECT * FROM "My Query"<br />What is needed to work : SELECT * from [My Query]<br /></p>
				<p>I don't know why FrontPage is messing up the queries, but the "messed up" queries work with IIS 5.0. But they don't work with IIS 6.0! </p>
		</div>
		<div class="faqq">Q. How do I turn on integrated database debugging in FrontPage 2003? </div>
		<div class="faqa">
				<p>A. The FP2003 code has changed slightly. To see the true error, open the hidden folder /_fpclass/ and edit the fpdbrgn1.inc file </p>
				<p>At about line 19, change : <br />fp_DEBUG = False <br />to : <br />fp_DEBUG = True </p>
		</div>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/6939a3f3-281d-4a83-a14a-3bda9459702b</link>
         <guid>http://AquestHosting.headtreez.com/6939a3f3-281d-4a83-a14a-3bda9459702b</guid>
         <pubDate>Sat, 18 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Internet Explorer]]></title>
         <description><![CDATA[<DIV class=faqq>Q. How do I clear the browser cache in Internet Explorer? </DIV>
<DIV class=faqa>
<P>A. At the top of your Internet Explorer window,</P>
<OL>
<LI>Click "Tools | Internet Options" 
<LI>On the "General" tab, click "Delete Files". 
<LI>In the pop up box, check the box for "Delete offline content". 
<LI>Click "OK" to delete the cache. 
<LI>After it completes, click "OK" to close the Internet Options pages. </LI></OL></DIV>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/7f4769aa-2fca-40e2-a73c-37f769de6820</link>
         <guid>http://AquestHosting.headtreez.com/7f4769aa-2fca-40e2-a73c-37f769de6820</guid>
         <pubDate>Sun, 19 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Search Engines (SOP)]]></title>
         <description><![CDATA[<DIV class=faqq>Q. Can Aquest Hosting do anything to make my site rank higher in the search engines?</DIV>
<DIV class=faqa>
<P>A. Search Engines build their own independent list of websites and rank sites with their own algorithms. Aquest Hosting has no control over where your site ranks in a search engine.</P></DIV>
<DIV class=faqq>Q. How do I get my website to do better in search engines like Google and Yahoo?</DIV>
<DIV class=faqa>
<P>A. It takes a lot of work to get your website to rank well in search engines unless you are just extremely lucky.</P>
<P>Below are a couple of good sites that can help you learn how to optimize your website so that it will do better in search engines.</P>
<UL>
<LI><A href="http://forums.seochat.com/" target=_blank>http://forums.seochat.com/</A> 
<LI><A href="http://tools.marketleap.com/publinkpop/" target=_blank>http://tools.marketleap.com/publinkpop/</A> </LI></UL></DIV>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/9d1c019e-7b6f-409e-aff1-7b8a9bc0b014</link>
         <guid>http://AquestHosting.headtreez.com/9d1c019e-7b6f-409e-aff1-7b8a9bc0b014</guid>
         <pubDate>Sun, 19 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[SSL - General]]></title>
         <description><![CDATA[<div class="faqq">What is SSL?</div>
		<div class="FAQA">
				<p>SSL stands for Secure Sockets Layer, and is used on pages that handle sensitive information such as credit card numbers. By applying a SSL certificate on a website, it is possible to send html pages in an encrypted format so the information is protected during transmission.</p>
				<p>The visitor will need to access the page using the prefix 'https' instead of the standard 'http', and in most browsers a padlock or some other symbol will appear to assure the visitor that the site is protected by SSL.</p>
		</div>
		<div class="faqq">I need to use SSL to protect some pages with sensitive information. What is the process for this?</div>
		<div class="faqa">There are several steps to protecting your site with SSL. </div>
		<div class="faqa">
				<ol>
						<li>Issue a Trouble Ticket in the Aquest Hosting <a href="https://admin.aquesthosting.com/">control panel</a> requesting a CSR This is a text key you will provide to a SSL provider in step 2. </li>
						<li>You purchase a SSL Certificate from a SSL Certificate provider. Some SSL providers are <ul><li><a href="http://www.comodogroup.com/" target="_blank">Comodo</a> </li><li><a href="http://www.geotrust.com/" target="_blank">Geotrust</a> </li><li><a href="http://www.verisign.com/" target="_blank">Verisign</a> </li><li><a href="http://www.digicert.com/" target="_blank">DigiCert</a></li></ul></li>
						<li>The SSL provider will authenticate you and your site, and will send you the SSL Certificate and instructions for installation. </li>
						<li>You will send to the Aquest support staff: <ul><li>SSL Certificate </li><li>Installation instructions. </li><li>A list of files and/or folders that should require SSL. </li></ul></li>
				</ol>
				<p>We will then install your certificate to your site and require SSL on the pages you specified. It is easier if you put all pages that require SSL into folders and require SSL on the entire folder. This way you can add more pages or change pages and as long as they are in the secure folder, no further setup is needed to secure those pages.</p>
		</div>
		<div class="faqq">Is there a cost involved in setting up SSL?</div>
		<div class="faqa">
				<p>Yes, there is the cost of purchasing the SSL certificate, which you will pay to the SSL provider you choose, and there is a setup fee and monthly fee you will be charged by Aquest Hosting. Our current pricing can be found at <a href="http://www.aquesthosting.com/AddOns.aspx">http://www.aquesthosting.com/AddOns.aspx</a>.</p>
		</div>]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/4684fb14-f9f4-4cda-82f4-6541409c02fa</link>
         <guid>http://AquestHosting.headtreez.com/4684fb14-f9f4-4cda-82f4-6541409c02fa</guid>
         <pubDate>Tue, 19 Dec 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[SSL - Setup your site]]></title>
         <description><![CDATA[<div>To setup SSL on a domain, a couple of steps are required.</div>
		<div> </div>
		<ol>
				<li>You send us information required to generate CSR (see list below).</li>
				<li>We setup your new IP address, generate your CSR and send it to you.</li>
				<li>You purchase a SSL Certificate from a cetificate provider such as (<a href="http://www.instantssl.com/">www.instantssl.com</a>).</li>
				<li>We install the SSL Certificate to your domain.</li>
				<li>We set the files or folders to require SSL.</li>
		</ol>
		<p>Before you can purchase an SSL certificate, you will need a CSR to send to the SSL certificate store. We will generate this for you. In order to generate the CSR, we need from you:</p>
		<ol>
				<li>Organization Name (ie: My Company). This must match the name of the owner of your domain as listed at your domain registrar.</li>
				<li>Organizational Unit - (ie: Sales, or NorthCarolina, or mydomain.com) - This is fairly flexible.</li>
				<li>Common Name - <a href="#">www.mydomain.com</a></li>
				<li>Province - (ie: North Carolina)</li>
				<li>City - (ie: Greensboro)</li>
				<li>Country  - (ie: US)</li>
		</ol>
		<div>Please forward this information to us and we will create your CSR and send it to you. You then use the CSR to purchase a SSL Certificate for your site.</div>
		<div> </div>
		<div>Does it cost anything?</div>
		<div> - Yes. There is a $25/setup fee, and $10/monthly fee from Aquest Hosting</div>
		<div> - You also have to purchase your certificate from a SSL Certificate authority.</div>
		<div>If you have any questions, please issue a Trouble Ticket and we'll be glad to answer.</div>]]></description>
         <category>SSL - General</category>
         <link>http://AquestHosting.headtreez.com/d9ebd0cf-963b-4ba0-acac-73d716a0fdd7</link>
         <guid>http://AquestHosting.headtreez.com/d9ebd0cf-963b-4ba0-acac-73d716a0fdd7</guid>
         <pubDate>Mon, 12 Feb 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[FTP]]></title>
         <description><![CDATA[This is the category for FTP. Please see pages below this for FTP related topics.]]></description>
         <category>FAQ's</category>
         <link>http://AquestHosting.headtreez.com/490fae28-f3b7-4889-beea-8bf0395f9e17</link>
         <guid>http://AquestHosting.headtreez.com/490fae28-f3b7-4889-beea-8bf0395f9e17</guid>
         <pubDate>Thu, 14 Aug 2008 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Files Truncated when uploaded by FTP]]></title>
         <description><![CDATA[Files under 10K are truncated when uploaded by FTP. This issue was discovered by one of our customers and is caused by having Net Nanny on your computer. Unistalling Net Nanny resoved the issue.  <br /><br />Background:<br />The customer complained that files were truncated when they were uploaded to his site using FTP regardless of whether FTP is done using Windows Explorer or using a 3rd party FTP software.<br /><br />Cause:<br />Net Nanny was i<font size="2">nst</font>alled on the computer.<br /><br />Resolution:<br />Uninstall Net Nanny. Turning Net Nanny off did not resolve the issue. It had to be uninstalled for FTP to work<br /><br />Details provided by customer: <p><font size="2"><em>Just letting you know what was the issue so you have it available for anyone else experiencing a similar issue. I tried Pasv and Port FTP settings for both a FTP client, explorer, and msdos FTP but that did not fix the issue. I tried the FTP from another machine on my ISP router and it worked fine. Then I tried the FTP test from a virtual PC on the machine I was have a problem with and it also worked. So after turning off windows xp firewalls as well as my router's firewall, I was still experiencing this issue. I then updated my windows XP to sp3 but that did not fix the issue.</em></font></p><p><font size="2"><em></em></font></p><p><font size="2"><em>I then noticed this problem was only occurring for 10k file or smaller. </em></font></p><p><font size="2"><em>Anything over 10k transferred sucessfully.</em></font></p><p><font size="2"><em></em></font></p><p><font size="2"><em>Finally, I began looking at the Net Nanny product installed on the machine having an issue. First I shut off Net Nanny, but that did not fix the issue. </em></font></p><p><font size="2"><em>Then I proceeded to uninstall Net Nanny and bingo issue has been resolved. I no longer have problem with 426 Connection Closed; Transfer Abort". So even though Net Nanny was turned off it still apparently interfered with FTP file transfers that interestingly were small in file size. I am not sure if Net Nanny gets got between timing something since the files are small and transfer in a second.</em></font></p><p>Our thanks to Patrick for sending us the cause and resolution to this issue.</p>]]></description>
         <category>FTP</category>
         <link>http://AquestHosting.headtreez.com/9362a361-e3a4-47bb-9996-609191282427</link>
         <guid>http://AquestHosting.headtreez.com/9362a361-e3a4-47bb-9996-609191282427</guid>
         <pubDate>Thu, 14 Aug 2008 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Code Samples]]></title>
         <description><![CDATA[<font size="2"> <p>This section of the Aquest Hosting HeadTree contains some ASP.NET code samples, mostly in C# that you may find useful as you are developing your own site. </p></font>]]></description>
         <category />
         <link>http://AquestHosting.headtreez.com/4212019a-d652-4e15-a45d-57682c1482ea</link>
         <guid>http://AquestHosting.headtreez.com/4212019a-d652-4e15-a45d-57682c1482ea</guid>
         <pubDate>Fri, 17 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[ASP.Net Membership Providers]]></title>
         <description><![CDATA[<p>This explains how to install the ASP.Net Membership Providers on your SQL 2005 database. You will need the Membership Providers installed on your database to use the ASP.Net 2.0 Login control.</p>
<p>To generate the script:</p>
<p>On your computer, open the ASP.Net command line and enter:</p>
<p><font color="#ff0000">aspnet_regsql.exe -A all -sqlexportonly runproviders.sql</font></p>
<p>That generates the basic script for you, and puts into a file called runproviders.sql. Open that file and use the "Edit | Replace" feature of your text editor to replace every instance of "aspnetdb" with your own database name.</p>
<p>Connect to your SQL server and click the "New Script" button in SQL Server Studio, paste the script into the script text editor, and run it. <br /></p>
<p>( <strong>*Note: </strong>you can also run the script directly from the command line against your remote SQL intance by setting the flags to your server, database, user name and password. Complete details about the command line flags can be found at&nbsp;<a href="http://msdn2.microsoft.com/en-us/library/x28wfk74.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/x28wfk74.aspx</a>. )<br /><br />That has created all your Roles, which you can see under the "Security | Roles" part of your database.</p>
<p>Last part is to give your user account access to the roles with the following script (replace "YourUser" with your database user name), and run this little script. Then you are done with setting up SQL Server 2005 for the ASP.Net 2.0 Providers.</p><font color="#0000ff" size="2">
<p>Exec<font size="2"> </font><font color="#800000" size="2">sp_addrolemember</font><font size="2"> </font><font color="#ff0000" size="2">'aspnet_Membership_FullAccess'</font><font color="#808080" size="2">,</font><font size="2"> </font><font color="#ff0000" size="2">'YourUser'</font></p></font><font size="2">
<p>go</p></font><font color="#0000ff" size="2">
<p>Exec<font size="2"> </font><font color="#800000" size="2">sp_addrolemember</font><font size="2"> </font><font color="#ff0000" size="2">'aspnet_Personalization_FullAccess'</font><font color="#808080" size="2">,</font><font size="2"> </font><font color="#ff0000" size="2">'YourUser'</font></p></font><font size="2">
<p>go</p></font><font color="#0000ff" size="2">
<p>Exec<font size="2"> </font><font color="#800000" size="2">sp_addrolemember</font><font size="2"> </font><font color="#ff0000" size="2">'aspnet_Profile_FullAccess'</font><font color="#808080" size="2">,</font><font size="2"> </font><font color="#ff0000" size="2">'YourUser'</font></p></font><font size="2">
<p>go</p></font><font color="#0000ff" size="2">
<p>Exec<font size="2"> </font><font color="#800000" size="2">sp_addrolemember</font><font size="2"> </font><font color="#ff0000" size="2">'aspnet_Roles_FullAccess'</font><font color="#808080" size="2">,</font><font size="2"> </font><font color="#ff0000" size="2">'YourUser'</font></p></font>
<p><font size="2">go</font></p><font color="#0000ff" size="2">
<p>Exec<font size="2"> </font><font color="#800000" size="2">sp_addrolemember</font><font size="2"> </font><font color="#ff0000" size="2">'aspnet_WebEvent_FullAccess'</font><font color="#808080" size="2">,</font><font size="2"> </font><font color="#ff0000" size="2">'YourUser'</font></p></font><font size="2">
<p>go</p></font>]]></description>
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/29423088-74cd-4d51-b2ee-3cb958f08d1a</link>
         <guid>http://AquestHosting.headtreez.com/29423088-74cd-4d51-b2ee-3cb958f08d1a</guid>
         <pubDate>Sun, 19 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Email code samples]]></title>
         <description />
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/b038170a-97c6-4cea-8f5d-82dea288bf0c</link>
         <guid>http://AquestHosting.headtreez.com/b038170a-97c6-4cea-8f5d-82dea288bf0c</guid>
         <pubDate>Thu, 08 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[ASP Mail - CDO]]></title>
         <description><![CDATA[<p>This code shows how to send authenticated email using classic ASP and the CDO object. To send authenticated mail you need to pass your email account user name and password to the SMTP server, which this code does. This could also be used from in a vbs file if you are not using ASP, and just need some code to run locally.</p>
		<h4>Aquest Hosting customers:</h4>
		<p>You must use smtp authentication when sending mail from our servers which means that you must first setup your email account on our system if you are using our SMTP server. </p>
		<ul>
				<li>To setup your email account login to <a href="https://admin.aquesthosting.com/">https://admin.aquesthosting.com</a>, and use the 'Email' page. </li>
		</ul>
		<p> </p>
		<ul>
				<li>Code running on our servers must use the smtp server: <font color="#ff0000">"hostmail.aquesthosting.com"</font> </li>
				<li>Code running outside our network needs to use: <font color="#ff0000">"smtp.[yourDomainName].com"</font> </li>
				<li>UserName: <font color="#ff0000">your full valid email address</font> (ie: <a href="mailto:bob@abc.com">bob@abc.com</a>) </li>
				<li>Password:<font color="#ff0000"> your email password</font></li>
		</ul>
		<h4>Not an Aquest Hosting customer?</h4>
		<p>Well you should be :)<br />You can use this code, but you need to know your smtp server, user name and password. If you don't need to use authentcated mail, then comment out the lines that have to do with authentication.</p>
		<h4>And now, the code...</h4>
		<p>Sub SendCDOMail(MailTo, MailFrom, subject, body, smtpServer, mailUserName, mailPassword)</p>
		<p> Const cdoSendUsingMethod = "<a href="http://schemas.microsoft.com/cdo/configuration/sendusing">http://schemas.microsoft.com/cdo/configuration/sendusing</a>"<br /> Const cdoSendUsingPort = 2<br /> Const cdoSMTPServer = "<a href="http://schemas.microsoft.com/cdo/configuration/smtpserver">http://schemas.microsoft.com/cdo/configuration/smtpserver</a>"<br /> Const cdoSMTPServerPort = "<a href="http://schemas.microsoft.com/cdo/configuration/smtpserverport">http://schemas.microsoft.com/cdo/configuration/smtpserverport</a>"<br /> Const cdoSMTPConnectionTimeout = "<a href="http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout">http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout</a>"<br /> Const cdoSMTPAuthenticate = "<a href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate">http://schemas.microsoft.com/cdo/configuration/smtpauthenticate</a>"<br /> Const cdoBasic = 1<br /> Const cdoSendUserName = "<a href="http://schemas.microsoft.com/cdo/configuration/sendusername">http://schemas.microsoft.com/cdo/configuration/sendusername</a>"<br /> Const cdoSendPassword = "<a href="http://schemas.microsoft.com/cdo/configuration/sendpassword">http://schemas.microsoft.com/cdo/configuration/sendpassword</a>"</p>
		<p> Dim objConfig  ' As CDO.Configuration<br /> Dim objMessage ' As CDO.Message<br /> Dim Fields     ' As ADODB.Fields</p>
		<p> ' Get a handle on the config object and it's fields<br /> Set objConfig = CreateObject("CDO.Configuration")<br /> Set Fields = objConfig.Fields</p>
		<p> ' Set config fields we care about<br /> With Fields<br />  .Item(cdoSendUsingMethod)       = cdoSendUsingPort<br />  .Item(cdoSMTPServer)            = smtpServer <br />  .Item(cdoSMTPServerPort)        = 25<br />  .Item(cdoSMTPConnectionTimeout) = 10</p>
		<p>  .Item(cdoSMTPAuthenticate)      = cdoBasic<br />  .Item(cdoSendUserName)          = mailUserName <br />  .Item(cdoSendPassword)          = mailPassword </p>
		<p>  .Update<br /> End With</p>
		<p> Set objMessage = CreateObject("CDO.Message")</p>
		<p> Set objMessage.Configuration = objConfig</p>
		<p> With objMessage<br />  .To       = MailTo  <br />  .From     = MailFrom  <br />  .Subject  = subject <br />  .HTMLBody = body <br />  .Send<br /> End With</p>
		<p> Set Fields = Nothing<br /> Set objMessage = Nothing<br /> Set objConfig = Nothing<br /> <br />End sub</p>]]></description>
         <category>Email code samples</category>
         <link>http://AquestHosting.headtreez.com/93135a8d-dd79-46ed-8eaa-b9859db6adcd</link>
         <guid>http://AquestHosting.headtreez.com/93135a8d-dd79-46ed-8eaa-b9859db6adcd</guid>
         <pubDate>Sat, 16 Dec 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[ASPMail sample code]]></title>
         <description><![CDATA[Note to Aquest Hosting customers: ASPMail does not support SMTP authentication, so new customers can not use ASPMail for sending emails. This tutorial is for legacy purposes and for our long standing customers that are on servers that do not require authentication. Eventually we will stop supporting ASPMail altogether unless they come out with support for SMTP authentication.<br /><br /><p>The ASPMail component is used if you are using Classic ASP (NOT ASP.NET).</p><p>If you need to download the component for development use on your own computer, go to http://www.serverobjects.com/ and download the 30 day trial.</p><p>Here is a code sample. The only thing you will need to change is the To and From address in the code below. Use the RemoteHost that we have specified.</p><p>Note the following RemoteHost will not work until your code is on our server.</p><p><strong>VBScript code: </strong></p>strTo = "bob@email.com" <br />strFrom = "joe@somewhere.com" <br />strSub = "Hey"<br />strBody = "This is body"<br />'send ASPMail<br />Set Mailer = Server.CreateObject("SMTPsvg.Mailer")<br />Mailer.RemoteHost = "hostmail.aquesthosting.com"<br />Mailer.AddRecipient "", strTo<br />Mailer.Subject = strSub<br />Mailer.BodyText = strBody<br />Mailer.FromAddress = strFrom<br />if Mailer.SendMail then<br />Response.Write "Mail sent..."<br />else<br />Response.Write "Mail send failure. Error was " &amp; Mailer.Response<br />end if<br /><p>You can find more details about the ASPMail component at http://www.serverobjects.com/</p><p><strong>*This code is somewhat out of date. We now require all email to be authenticated. For some of our older customers (you signed up in 2003 or 2004), you may be able to use this because we don't require authentication from our early servers. New customers will not be able to use ASPMail because it does not support authentication. We assume you will probably be using ASP.Net anyway and it is easy to send mail from ASP.Net code.</strong></p>]]></description>
         <category>Email code samples</category>
         <link>http://AquestHosting.headtreez.com/c709bdae-2163-443f-8f75-1ba423ad44c9</link>
         <guid>http://AquestHosting.headtreez.com/c709bdae-2163-443f-8f75-1ba423ad44c9</guid>
         <pubDate>Wed, 07 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[SMTP Mail .Net 2.0]]></title>
         <description><![CDATA[<H4>Sending Email with ASP.Net 2.0 C#</H4>
<P>At Aquest Hosting, we require mail to be authenticated to go through our SMTP server, but this function is setup to take a parameter specifying whether or not smtp authentication should occur. So if&nbsp; you are an Aquest Hosting customer, you should use 'true' for that parameter, otherwise consult your system admin or web host to determine if you should use authentication.</P>
<P>Note that this code is in a code behind page with the appropriate text boxes in the first function to get data from the user. I'm leaving it up to you to create the page and or collect your data. The main point here is the 2nd function that actually is responsible for sending the email.</P>
<P>Here is the sample code in ASP.NET 2.0&nbsp;C#:</P>
<P><FONT size=2></FONT></P><FONT size=2><FONT color=#0000ff>protected</FONT> <FONT color=#0000ff>void</FONT> cmdSend_Click( <FONT color=#0000ff>object</FONT> sender, <FONT color=#008080>EventArgs</FONT> e)<BR>{<BR><FONT color=#0000ff>&nbsp;&nbsp; string</FONT> serv = <FONT color=#0000ff>this</FONT> .txtServer.Text.Trim();<BR><FONT color=#0000ff>&nbsp;&nbsp; string</FONT> uname = <FONT color=#0000ff>this</FONT> .txtUserName.Text.Trim();<BR><FONT color=#0000ff>&nbsp;&nbsp; string</FONT> pw = <FONT color=#0000ff>this</FONT> .txtPassword.Text.Trim();<BR><FONT color=#0000ff>&nbsp;&nbsp; string</FONT> to = <FONT color=#0000ff>this</FONT> .txtTo.Text.Trim();<BR><FONT color=#0000ff>&nbsp;&nbsp; string</FONT> from = <FONT color=#0000ff>this</FONT> .txtFrom.Text.Trim();<BR><FONT color=#0000ff>&nbsp;&nbsp; string</FONT> subj = <FONT color=#0000ff>this</FONT> .txtSubj.Text.Trim();<BR><FONT color=#0000ff>&nbsp;&nbsp; string</FONT> body = <FONT color=#0000ff>this</FONT> .txtBody.Text.Trim();<BR><FONT color=#0000ff>&nbsp;&nbsp; bool</FONT> auth = <FONT color=#0000ff>this</FONT> .ckUseAuth.Checked;<BR>&nbsp;&nbsp; SendSmtpMail(serv, auth, uname, pw, to, from, subj, body);<BR>}<BR><BR><FONT color=#0000ff>private</FONT><FONT color=#0000ff>void</FONT> SendSmtpMail( <FONT color=#0000ff>string</FONT> SmtpServer, <FONT color=#0000ff>bool</FONT> UseAuth, <FONT color=#0000ff>string</FONT> UName, <FONT color=#0000ff>string</FONT> PW, <FONT color=#0000ff>string</FONT> To, <FONT color=#0000ff>string</FONT> From, <FONT color=#0000ff>string</FONT> Subject, <FONT color=#0000ff>string</FONT> Body )<BR>{<BR><FONT color=#0000ff>&nbsp;&nbsp; try</FONT><BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Net.Mail. <FONT color=#008080>SmtpClient</FONT> smtp = <FONT color=#0000ff>new</FONT> System.Net.Mail. <FONT color=#008080>SmtpClient</FONT> (SmtpServer);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Net.Mail. <FONT color=#008080>MailMessage</FONT> mssg = <FONT color=#0000ff>new</FONT> System.Net.Mail. <FONT color=#008080>MailMessage</FONT> (From, To, Subject, Body);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mssg.IsBodyHtml = <FONT color=#0000ff>true</FONT> ;<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;if</FONT> (UseAuth)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; smtp.Credentials = <FONT color=#0000ff>new</FONT> System.Net. <FONT color=#008080>NetworkCredential</FONT> (UName, PW);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; smtp.Send(mssg);<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this</FONT> .litError.Text = <FONT color=#800000>"No Errors when sending."</FONT> ;<BR>&nbsp;&nbsp; }<BR><FONT color=#0000ff>&nbsp;&nbsp; catch</FONT> ( <FONT color=#008080>Exception</FONT> ex)<BR>&nbsp;&nbsp; {<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this</FONT> .litError.Text = ex.Message.Trim();<BR>&nbsp;&nbsp; }<BR>}<BR></FONT>]]></description>
         <category>Email code samples</category>
         <link>http://AquestHosting.headtreez.com/e8e7c128-4a59-4010-a463-fb808520f72a</link>
         <guid>http://AquestHosting.headtreez.com/e8e7c128-4a59-4010-a463-fb808520f72a</guid>
         <pubDate>Fri, 17 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[SMTP Mail .Net 1.1]]></title>
         <description><![CDATA[This code sample shows how to send SMTP authenticated email using ASP.Net 1.1.&nbsp; You will need to have an email account setup on the SMTP server, and that will be what is used for the 'SMTPUser' and 'SMTPPassword' fields.<br /><br />At Aquest Hosting, the SMTP user name is always the full email addres (ex: bob@somedomain.com).<br /><br /><font color="#0000ff" size="2"><font size="+0"><font size="+0"></font></font>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt -1in; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">public</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><font color="#000000"> </font><span style="COLOR: blue">void</span><font color="#000000">&nbsp; 
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt -1in; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">public</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <span style="COLOR: blue">void</span> SendEmail(<span style="COLOR: blue">string</span> Server, <span style="COLOR: blue">string</span> SmtpUser, <span style="COLOR: blue">string</span> SmtpPassword,</span><span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">string</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> To, <span style="COLOR: blue">string</span> From, <br /><span style="COLOR: blue">string</span> Body, <span style="COLOR: blue">string</span> Subject,</span><span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">string</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> CC,<span style="COLOR: blue">string</span> BCC)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;</span>{<span style="mso-tab-count: 5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>System.Web.Mail.SmtpMail.SmtpServer = Server;<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>System.Web.Mail.MailMessage mssg = <span style="COLOR: blue">new</span> System.Web.Mail.MailMessage();<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.BodyFormat = System.Web.Mail.MailFormat.Html;<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.Body = Body;<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.Subject = Subject;<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.To = To;<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.From = From;<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: blue">if</span>(BCC.Trim().Length &gt; 0)<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.Bcc = BCC.Trim();<span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: blue">if</span>(CC.Trim().Length &gt; 0)<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.Cc = CC.Trim();<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: green">//Set the SMTP authentication<o:p></o:p></span></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">mssg.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: blue">if</span>(SmtpUser.Trim().Length &gt; 0)<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = SmtpUser.Trim();<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: blue">if</span>(SmtpPassword.Trim().Length &gt; 0)<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>mssg.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = SmtpPassword.Trim();<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: green">//send the email<o:p></o:p></span></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>System.Web.Mail.SmtpMail.Send(mssg);<o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">}</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt -1in; mso-layout-grid-align: none">&nbsp;</p></font></span></p></font>]]></description>
         <category>Email code samples</category>
         <link>http://AquestHosting.headtreez.com/49b0595b-ea87-4883-8ddc-af57c7c4b366</link>
         <guid>http://AquestHosting.headtreez.com/49b0595b-ea87-4883-8ddc-af57c7c4b366</guid>
         <pubDate>Sat, 25 Aug 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[How to add Html Headers programmatically]]></title>
         <description><![CDATA[<div>Have you ever wanted to programmatically add html headers to your ASP.Net page? I needed to do this when&nbsp;working on&nbsp;HeadTreez.com and learned to use the System.Web.UI.HtmlControls.HtmlHead object of the page. Using this, we are able to inject the user's settings into the page's:</div>
<ul>
    <li>title
    <li>CSS link (our default styles)
    <li>CSS in-page styles (the site's override styles)
    <li>description
    <li>keywords </li>
</ul>
<div>Originally, I accomplished this by putting server side script blocks in the header that would pull the values, but that wasn't ideal so I decided to take care of everything in the code-behind. (<span style="COLOR: red">Gotcha --&gt;</span> ) One thing I learned really quick was that you have to remove all script blocks from the header to be able to write header objects programatically from the code-behind page.&nbsp;</div>
<div>&nbsp;</div>
<div>So I've built a function that you can pass the title, css link, css in-page string, description, and keywords. This function will be very happy to ignore empty values or null values and just move on to the next item and try to put it in.&nbsp;&nbsp;</div>
<font color=#0000ff size=2><font color=#0000ff size=2>
<dl>
<dt>protected</font><font color=#000000 size=2> </font><font color=#0000ff size=2>void</font><font color=#000000 size=2> AddHeaders(</font><font color=#0000ff size=2>string</font><font color=#000000 size=2> Title, </font><font color=#0000ff size=2>string</font><font color=#000000 size=2> Desc, </font><font color=#0000ff size=2>string</font><font color=#000000 size=2> Keywords,</font><font color=#0000ff size=2>string</font><font color=#000000 size=2> CssLink, </font><font color=#0000ff size=2>string</font><font size=2><font color=#000000> Css)</font>
<dt>{
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;try</font><font size=2>
<dt>&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008080 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HtmlHead</font><font size=2> myHeader = (</font><font color=#008080 size=2>HtmlHead</font><font size=2>)</font><font color=#0000ff size=2>this</font><font size=2>.Page.Header;
<dt>&nbsp;
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if</font><font size=2> (myHeader != </font><font color=#0000ff size=2>null</font><font size=2>)
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Add base CSS sheet</font><font size=2>
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if</font><font size=2>(CssLink != </font><font color=#0000ff size=2>null</font><font size=2> &amp;&amp; CssLink.Length &gt; 0)
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008080 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HtmlLink</font><font size=2> myLink = </font><font color=#0000ff size=2>new</font><font size=2> </font><font color=#008080 size=2>HtmlLink</font><font size=2>();
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myLink.Attributes.Add(</font><font color=#800000 size=2>"href"</font><font size=2>, CssLink);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myLink.Attributes.Add(</font><font color=#800000 size=2>"rel"</font><font size=2>, </font><font color=#800000 size=2>"stylesheet"</font><font size=2>);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myLink.Attributes.Add(</font><font color=#800000 size=2>"type"</font><font size=2>, </font><font color=#800000 size=2>"text/css"</font><font size=2>);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myHeader.Controls.Add(myLink);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if</font><font size=2> (Title != </font><font color=#0000ff size=2>null</font><font size=2> &amp;&amp; Title.Length &gt; 0)
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008080 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HtmlTitle</font><font size=2> myTitle = </font><font color=#0000ff size=2>new</font><font size=2> </font><font color=#008080 size=2>HtmlTitle</font><font size=2>();
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myTitle.Text = Title;
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try</font><font size=2>
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*not sure if this the best way to remove the old title, but works in my case*/</font><font size=2>
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myHeader.Controls.Remove(</font><font color=#0000ff size=2>this</font><font size=2>.Page.Header.Controls[0]);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myHeader.Controls.Add(myTitle);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch</font><font size=2>
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ }
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if</font><font size=2> (Desc != </font><font color=#0000ff size=2>null</font><font size=2> &amp;&amp; Desc.Length &gt; 0)
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008080 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HtmlMeta</font><font size=2> myDesc = </font><font color=#0000ff size=2>new</font><font size=2> System.Web.UI.HtmlControls.</font><font color=#008080 size=2>HtmlMeta</font><font size=2>();
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myDesc.Attributes.Add(</font><font color=#800000 size=2>"name"</font><font size=2>, </font><font color=#800000 size=2>"description"</font><font size=2>);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myDesc.Attributes.Add(</font><font color=#800000 size=2>"content"</font><font size=2>, Desc);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myHeader.Controls.Add(myDesc);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if</font><font size=2> (Keywords != </font><font color=#0000ff size=2>null</font><font size=2> &amp;&amp; Keywords.Length &gt; 0)
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008080 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HtmlMeta</font><font size=2> myKw = </font><font color=#0000ff size=2>new</font><font size=2> System.Web.UI.HtmlControls.</font><font color=#008080 size=2>HtmlMeta</font><font size=2>();
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myKw.Attributes.Add(</font><font color=#800000 size=2>"name"</font><font size=2>, </font><font color=#800000 size=2>"keywords"</font><font size=2>);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myKw.Attributes.Add(</font><font color=#800000 size=2>"content"</font><font size=2>, Keywords);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myHeader.Controls.Add(myKw);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<dt></font><font color=#008000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Add customized CSS</font><font size=2>
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if</font><font size=2> (Css != </font><font color=#0000ff size=2>null</font><font size=2> &amp;&amp; Css.Length &gt; 0)
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008080 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Literal</font><font size=2> litCss = </font><font color=#0000ff size=2>new</font><font size=2> </font><font color=#008080 size=2>Literal</font><font size=2>();
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;litCss.Text = </font><font color=#800000 size=2>"&lt;style type="</font><font size=2> + </font><font color=#800000 size=2>'"'</font><font size=2> + </font><font color=#800000 size=2>"text/css"</font><font size=2> + </font><font color=#800000 size=2>'"'</font><font size=2> + </font><font color=#800000 size=2>"&gt;"</font><font size=2> + Css + </font><font color=#800000 size=2>"&lt;/style&gt;"</font><font size=2>;
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myHeader.Controls.Add(litCss);
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<dt>&nbsp;&nbsp;&nbsp;&nbsp;}
<dt></font><font color=#0000ff size=2>&nbsp;&nbsp;&nbsp;catch</font><font size=2>
<dt>&nbsp;&nbsp;&nbsp;{
<dt></font><font color=#008000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Handle your unexpected error.</font><font size=2>
<dt>&nbsp;&nbsp;&nbsp;}
<dt>}
<dt>&nbsp;
<dt>&nbsp;
<dt>
<div></font></font>Hope it helps you do this a little quicker than I did.</div>
</dt></dl>
<div>-Marc Talcott</div>
<div>&nbsp;</div>]]></description>
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/9b9dc18c-fa3b-4dda-ab8a-ce5698c85160</link>
         <guid>http://AquestHosting.headtreez.com/9b9dc18c-fa3b-4dda-ab8a-ce5698c85160</guid>
         <pubDate>Thu, 11 Jan 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Get Application Root]]></title>
         <description><![CDATA[<P>I always need to get either the base url of the site or base folder (web root) of the domain so I can either find a file, or save a file to a folder. The following code is in almost every application that I ever write, so feel free to use it in your ASP.Net application if it helps.</P>
<P>//This function returns the&nbsp;Application path, like <A href="#">http://www.JoesWebsite.com/</A>, or if the project is running in a virtual directory it returns the Application path of the virtual directory, like <A href="#">http://www.JoesWebsite.com/forums/</A> .</P>
<P><FONT size=2><FONT color=#0000ff>public static string ApplicationPath<BR>{<BR>&nbsp;&nbsp;&nbsp;get<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string APP_PATH = System.Web.HttpContext.Current.Request.ApplicationPath.ToLower();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(APP_PATH == "/")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//a site<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APP_PATH = "/";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if(!APP_PATH.EndsWith(@"/")) //a virtual<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APP_PATH += @"/";<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return APP_PATH;</FONT></FONT></P>
<P><FONT size=2><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;}<BR></FONT><FONT color=#0000ff>}</FONT></FONT></P>
<P><FONT color=#0000ff size=2></FONT><BR>&nbsp;</P>
<P>This function returns the Mapped path, like "D:\Hosting\Smith\JoeSmithWebsite\"</P>
<P><FONT size=2><FONT color=#0000ff>public static string MappedApplicationPath<BR>{<BR>&nbsp;&nbsp;&nbsp;get<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string APP_PATH = System.Web.HttpContext.Current.Request.ApplicationPath.ToLower();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(APP_PATH == "/")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//a site<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APP_PATH = "/";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if(!APP_PATH.EndsWith(@"/")) //a virtual<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APP_PATH += @"/";<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string it = System.Web.HttpContext.Current.Server.MapPath(APP_PATH);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!it.EndsWith(@"\"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;it += @"\";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return it;<BR>&nbsp;&nbsp;&nbsp;}<BR></FONT><FONT color=#0000ff>}</FONT></FONT><BR></P>
<P>So how do you get the correct relative URL when you are in the html view? If you want to use server controls then there is the famous "~/folder/file" method, which is great because this allows you to get the application path and it works when being called from&nbsp;a page in the root of your site, or when&nbsp;used&nbsp;in a page in a subfolder, but it&nbsp;can only be used by&nbsp;Server Controls&nbsp;(ie: "<FONT color=#0000ff>&lt;asp:Image id=myImage runat=Server imageurl="~/images/smile.gif" /&gt;<FONT color=#000000>"), but if you don't want to use a server control, you can use the code&nbsp;below in the Global.asax file's Session_Start function as shown below. When you add a Global.asax file to your project, the Session_Start function is already there, so you just add the inner function code.</FONT></FONT></P>
<P><FONT color=#0000ff size=2><FONT color=#0000ff>void</FONT></FONT><FONT color=#0000ff><FONT size=2> Session_Start(</FONT><FONT size=2>Object</FONT><FONT size=2> sender, </FONT><FONT size=2>EventArgs</FONT></FONT><FONT size=2><FONT color=#0000ff> e)<BR>{</FONT>&nbsp;</FONT></P>
<P><FONT size=2><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;// Code that runs when a new session is started</FONT></FONT><BR><FONT color=#0000ff><FONT size=2>&nbsp;&nbsp;&nbsp;string</FONT><FONT size=2> APP_PATH = System.Web.</FONT><FONT size=2>HttpContext</FONT></FONT><FONT size=2><FONT color=#0000ff>.Current.Request.ApplicationPath.ToLower();&nbsp;</FONT></FONT><BR><FONT color=#0000ff><FONT size=2>&nbsp;&nbsp;&nbsp;if</FONT><FONT size=2> (APP_PATH == </FONT><FONT size=2>"/"</FONT><FONT size=2>) </FONT><FONT size=2>//a site</FONT></FONT><FONT size=2>&nbsp;<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APP_PATH = </FONT></FONT><FONT color=#0000ff size=2>"/"</FONT><FONT size=2><FONT color=#0000ff>;</FONT><BR></FONT><FONT color=#0000ff><FONT size=2>&nbsp;&nbsp;&nbsp;else</FONT><FONT size=2> </FONT><FONT size=2>if</FONT><FONT size=2> (!APP_PATH.EndsWith(</FONT><FONT size=2>@"/"</FONT><FONT size=2>)) </FONT><FONT size=2>//a virtual</FONT></FONT><FONT size=2>&nbsp;<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APP_PATH += </FONT></FONT><FONT color=#0000ff size=2>@"/"</FONT><FONT size=2><FONT color=#0000ff>;</FONT><BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;Session[</FONT></FONT><FONT color=#0000ff size=2>"APP_Path"</FONT><FONT size=2><FONT color=#0000ff>] = APP_PATH;&nbsp; //stores the value to a session variable for us to use</FONT></FONT><FONT size=2><BR><FONT color=#0000ff>}</FONT></FONT> </P>
<P>Now, to use the session variable "APP_Path" that you've created in an html page, you will write your image tags like this:</P><FONT color=#0000ff size=2>
<P>&lt;</FONT><FONT color=#800000 size=2>img</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>src</FONT><FONT color=#0000ff size=2>="</FONT><FONT size=2>&lt;%=Session["APP_Path"] %&gt;</FONT><FONT color=#0000ff size=2>images/smile.gif"</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>/&gt;</FONT></P>
<P><FONT color=#0000ff size=2><FONT color=#000000 size=3>You can also get the value in your code-behind by accessing the session variable:</FONT></FONT></P>
<P><FONT color=#0000ff size=2>&nbsp;string myPath = Session["APP_Path"].ToString(); </P></FONT>
<P>&nbsp;</P>]]></description>
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/d9ccf4d8-1873-469e-9dca-815e5854b963</link>
         <guid>http://AquestHosting.headtreez.com/d9ccf4d8-1873-469e-9dca-815e5854b963</guid>
         <pubDate>Sun, 19 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Reset Password for ASP.Net 2.0 Membership]]></title>
         <description><![CDATA[<p>If your password is lost or forgotten in DNN (or other application that uses ASP.Net 2.0 membership), here is a script I found at&nbsp;<a href="http://mitchelsellers.com/Blogs/tabid/54/EntryID/23/Default.aspx" target="_blank">http://mitchelsellers.com/Blogs/tabid/54/EntryID/23/Default.aspx</a>, which should fix it.&nbsp; I'm copying the content incase that page ever gets moved. This script was originally found on Mitchel Sellers blog, and he deserves full credit for this. </p>
<hr />
<span class="Normal" id="dnn_ctr421_MainView_ViewEntry_lblEntry">
<p>At one time or another I think everyone has been locked out of a system and not been able to get back in. This can be especially troubling if you happen to be locked out of your administrator account. I have seen many people asking how to reset passwords for the host and admin accounts with DotNetNuke so I thought I would write up some simple instructions on how to change a password via the database for any ASP.NET 2.0 website.</p>
<p>The first thing to note is that you must know the working password of another account on your site. For this example I know the password of my "admin" account for DotNetNuke, you can use any account in your system that you know the password for. Once you have identified the user account, run the following query to obtain the needed user information. You will need to know the username and application name for the specific user account. In my example below the username is admin and the applicaton name is DotNetNuke.</p>
<div class="code" style="BACKGROUND-COLOR: rgb(238,238,238)"><font color="#0000ff">SELECT&nbsp;</font><font color="#000000">password,&nbsp;passwordformat,&nbsp;passwordsalt<br /></font><font color="#0000ff">FROM&nbsp;</font><font color="#000000">aspnet_membership&nbsp;am<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">INNER&nbsp;JOIN&nbsp;</font><font color="#000000">aspnet_users&nbsp;au<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">ON&nbsp;</font><font color="#000000">(au.userid&nbsp;</font><font color="#0000ff">=&nbsp;</font><font color="#000000">am.userid)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">INNER&nbsp;JOIN&nbsp;</font><font color="#000000">aspnet_applications&nbsp;aa<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">ON&nbsp;</font><font color="#000000">(au.applicationId&nbsp;</font><font color="#0000ff">=&nbsp;</font><font color="#000000">aa.applicationid)<br /></font><font color="#0000ff">WHERE&nbsp;</font><font color="#000000">au.username&nbsp;</font><font color="#0000ff">=&nbsp;</font><font color="#808080">'admin'<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">AND&nbsp;</font><font color="#000000">aa.applicationname&nbsp;</font><font color="#0000ff">=&nbsp;</font><font color="#808080">'DotNetNuke'</font> </div>
<p>You will want to copy the results of this query to your clipboard as you will need this information for the next step of the process. Next we will be using the ASP.NET stored procedure "aspnet_Membership_setPassword" to set the password value for our user. Whne calling this stored procedure we must pass the following values to it. ApplicationName, Username, Password, PasswordSalt, ChangeTime, passwordFormat. Below is an example, you will simply need to substitute your values.</p>
<div class="code" style="BACKGROUND-COLOR: rgb(238,238,238)"><font color="#006400">--Prepare&nbsp;the&nbsp;change&nbsp;date<br /></font><font color="#0000ff">DECLARE&nbsp;</font><font color="#000000">@changeDate&nbsp;</font><font color="#0000ff">datetime<br />set&nbsp;</font><font color="#000000">@changeDate&nbsp;</font><font color="#0000ff">=&nbsp;getdate</font><font color="#000000">()<br /><br /></font><font color="#006400">--set&nbsp;the&nbsp;password<br /></font><font color="#0000ff">exec&nbsp;</font><font color="#000000">aspnet_Membership_setPassword&nbsp;</font><font color="#808080">'DotNetNuke'</font><font color="#000000">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#808080">'TestUser'</font><font color="#000000">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#808080">'DM1tZvBjM+27Eck5eI1TWFeG42XuJnMuin3jqFOtMjS83RN6d7dFbQ=='</font><font color="#000000">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#808080">'4e5Bb5jOOMYu/JFXVdRmlA=='</font><font color="#000000">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@changeDate,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#800000">2<br /><br /></font><font color="#006400">--Sets&nbsp;the&nbsp;password&nbsp;to&nbsp;dnnadmin</font> </div>
<p>After running this script you should now be able to login with the newly set password. A few things to remember about this method. First to guarantee that this will work correctly the known user account information must be taken from the same application as the machine and validation keys change the encryption methods used for setting the passwords. Also, you should remember that this method will work with ANY ASP.NET 2.0 website. This can be very helpful if you happen to be locked out of an account that cannot send forgotten password e-mails, such as host or admin in DotNetNuke.</p></span>
<p></p>
<p></p>]]></description>
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/b873561c-ab7a-4a8e-9934-cc9366af8a81</link>
         <guid>http://AquestHosting.headtreez.com/b873561c-ab7a-4a8e-9934-cc9366af8a81</guid>
         <pubDate>Thu, 08 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Upload Files with C#]]></title>
         <description><![CDATA[<P>I get asked rather often how to write code to upload files from a webpage to the webserver. The following code will upload a file and save it on the webserver using ASP.Net 1.1 and C#.</P>
<P>There code can be reduced by taking out the functionality to check the file types, but I like to make sure that the file type is an expected type. The code below allows you to upload .gifs, .jpeg, .jpg, .swf, but not other types which is&nbsp;a safety precaution worth the extra lines of code.</P>
<P>This code saves the uploaded image to the "Images" folder of the web application which is set in the first couple of lines. You may need to alter that, an it determines the website folder at run time so it doesn't need to be changed to run in different websites.</P>
<P>On the HTML view of the page, you need to place a Text box with a browse button which can be done with the following html tag:<BR><FONT color=#0000ff size=2>&lt;INPUT id="filUpload" type="file" name="filUpload" runat="server"&gt; </FONT></P>
<P>Now put a button on the screen and call it "cmdUpload", then double click the button to go to the click event and add this code in your code behind file:</P><FONT color=#0000ff size=2>
<P>private void cmdUpload_Click(object sender, System.EventArgs e) <BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string myFolder = "Images"</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(base.Settings.fldAdsFolder.Length &gt; 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string uploadPath = base.MappedApplicationPath +&nbsp;myFolder + @"\";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.litUploadError.Text = "Your file has been posted to the server.";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//before actual upload so upload func can overwrite if error.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UploadImage(uploadPath);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.litUploadError.Text = "You must set the Ads Folder in Settings first.";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;}</P>
<P><BR>private bool UploadImage(string UploadPath)<BR>{<BR>&nbsp;&nbsp;&nbsp;bool retVal = true;<BR>&nbsp;&nbsp;&nbsp;string strFileName;<BR>&nbsp;&nbsp;&nbsp;string strFilePath;<BR>&nbsp;&nbsp;&nbsp;string strType;<BR>&nbsp;&nbsp;&nbsp;string strFolder = UploadPath; //save it here<BR>&nbsp;&nbsp;&nbsp;string err = "";<BR>&nbsp;&nbsp;&nbsp;string ext = "";<BR><BR>&nbsp;&nbsp;&nbsp;if(filUpload.Value != "")<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strFileName = base.GetFileName(filUpload.PostedFile.FileName);&nbsp;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strType = filUpload.PostedFile.ContentType;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bool allowedType = false;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch(strType)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case("image/gif"):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allowedType = true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ext = ".gif";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case("image/jpg"):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allowedType = true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ext = ".jpeg";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case("image/jpeg"):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allowedType = true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ext = ".jpeg";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case("image/pjpeg"):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allowedType = true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ext = ".jpeg";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case("application/x-shockwave-flash"):&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allowedType = true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ext = ".swf";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;allowedType = false;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;err = "The file is not an allowed file type (ie: gif, jpg, jpeg, swf)";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P>&nbsp;&nbsp;&nbsp;if (allowedType)&nbsp;</P>
<P>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Create the directory if it does not exist.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!Directory.Exists(strFolder))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string strFolderToCreate = strFolder;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(strFolder.EndsWith(@"\"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strFolderToCreate = strFolder.Substring(0,(strFolderToCreate.Length-1));<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Directory.CreateDirectory(strFolderToCreate);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Save the uploaded file to the server.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strFilePath = strFolder + strFileName;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(File.Exists(strFilePath))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//only shows file name to user<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;err = strFileName + " already exists on the server!";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filUpload.PostedFile.SaveAs(strFilePath);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else //not allowed type, only images allowed<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;err = strFileName + " is not a valid image file.";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;if(err.Trim().Length &gt; 0)&nbsp;<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.litUploadError.Text = err.Trim();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;retVal = false;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;return retVal; //if it returns as "false" don't continue to save. <BR>}<BR><BR>//You should really stick this function in a different class where you can reuse it better.<BR>public static string MappedApplicationPath<BR>{<BR>&nbsp;&nbsp;&nbsp;get<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string APP_PATH = System.Web.HttpContext.Current.Request.ApplicationPath.ToLower();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(APP_PATH == "/")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//a site<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APP_PATH = "/";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if(!APP_PATH.EndsWith(@"/")) //a virtual<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APP_PATH += @"/";<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string it = System.Web.HttpContext.Current.Server.MapPath(APP_PATH);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!it.EndsWith(@"\"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;it += @"\";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return it;<BR>&nbsp;&nbsp;&nbsp;}<BR>}<BR></P></FONT>]]></description>
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/a5049b38-1f60-4b0d-bc72-796155f73e64</link>
         <guid>http://AquestHosting.headtreez.com/a5049b38-1f60-4b0d-bc72-796155f73e64</guid>
         <pubDate>Sun, 19 Nov 2006 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[How to bind a List to an ASP.Net DropDownList]]></title>
         <description><![CDATA[This code shows how you can build a custom class (Person for the demo), and then take a System.Collections.Generic.List, fill it with Person's and bind it to an ASP.Net DropDownList control.<br /><br /><font size="2">First we need a Person class. I need to override the ToString() function if we want it to bind automatically without setting the DataTextField of the DropDownList. Also note that if we do want to set the DataTextField and DataValueField, then we have to have public properties. The following class will work either way we choose to bind it to the DropDownList.<br /><br /></font><font color="#0000ff" size="2"><p></p></font><font size="2">  </font><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">public</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <span style="COLOR: blue">class</span> <span style="COLOR: teal">Person<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span><span style="COLOR: blue">private</span> <span style="COLOR: blue">int</span> _ID;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span><span style="COLOR: blue">private</span> <span style="COLOR: blue">string</span> _Name;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span><span style="COLOR: blue">private</span> <span style="COLOR: blue">string</span> _Color;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span><span style="COLOR: blue">public</span> <span style="COLOR: blue">override</span> <span style="COLOR: blue">string</span> ToString()<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>{<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">return</span> _Name;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>}<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span><span style="COLOR: green">// Properties<span style="mso-spacerun: yes">    </span><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span><span style="COLOR: blue">public</span> <span style="COLOR: blue">int</span> ID<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>{<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">get</span> { <span style="COLOR: blue">return</span> _ID; }<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">set</span> { _ID = <span style="COLOR: blue">value</span>; }<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>}<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span><span style="COLOR: blue">public</span> <span style="COLOR: blue">string</span> Name<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>{<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">get</span> { <span style="COLOR: blue">return</span> _Name; }<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">set</span> { _Name = <span style="COLOR: blue">value</span>; }<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>}<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span><span style="COLOR: blue">public</span> <span style="COLOR: blue">string</span> Color<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>{<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">get</span> { <span style="COLOR: blue">return</span> _Color; }<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">set</span> { _Color = <span style="COLOR: blue">value</span>; }<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>}<span style="mso-spacerun: yes">    </span><p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}</span></p><p><font size="2">Ok so now we need a function in our ASP.net page that loads a &lt;List&gt; of Person's into the DropDownList.<br /><br /><strong>Option 1) We set the DataTextField and the DataValueField. This relies on the public properties in Person</strong><br /><br /></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">    protected</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <span style="COLOR: blue">void</span> LoadList()<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>{<span style="mso-spacerun: yes">        </span><span style="COLOR: green"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: teal">List</span>&lt;<span style="COLOR: teal">Person</span>&gt; myPList = <span style="COLOR: blue">new</span> <span style="COLOR: teal">List</span>&lt;<span style="COLOR: teal">Person</span>&gt;();<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><p> </p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: teal">Person</span> p1 = <span style="COLOR: blue">new</span> <span style="COLOR: teal">Person</span>();<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p1.ID = 1;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p1.Name = <span style="COLOR: maroon">"Bob"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p1.Color = <span style="COLOR: maroon">"Blue"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><p> </p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: teal">Person</span> p2 = <span style="COLOR: blue">new</span> <span style="COLOR: teal">Person</span>();<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p2.ID = 2;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p2.Name = <span style="COLOR: maroon">"Joe"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p2.Color = <span style="COLOR: maroon">"Green"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><p> </p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>myPList.Add(p1);<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>myPList.Add(p2);<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><p> </p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">this</span>.DropDownList1.DataSource = myPList;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">this</span>.DropDownList1.DataTextField = <span style="COLOR: maroon">"Color"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">this</span>.DropDownList1.DataValueField = <span style="COLOR: maroon">"ID"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">this</span>.DropDownList1.DataBind();<span style="mso-spacerun: yes">        </span><span style="COLOR: green"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>}<br /></span></p><p><font size="2">The HTML output will be:</font></p><p><font size="2"> &lt;select name="DropDownList1" id="DropDownList1"&gt;<br /> &lt;option value="1"&gt;Blue&lt;/option&gt;<br /> &lt;option value="2"&gt;Green&lt;/option&gt;<br /> &lt;/select&gt;</font></p><p><br /><br /><font size="2"><strong>Option 2) Not setting the DataTextField and the DataValueField. This relies on the 'ToString() override in Person bind the text field.<br /></strong><br /></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">protected</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <span style="COLOR: blue">void</span> LoadList()<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>{<span style="mso-spacerun: yes">        </span><span style="COLOR: green"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: teal">List</span>&lt;<span style="COLOR: teal">Person</span>&gt; myPList = <span style="COLOR: blue">new</span> <span style="COLOR: teal">List</span>&lt;<span style="COLOR: teal">Person</span>&gt;();<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><p> </p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: teal">Person</span> p1 = <span style="COLOR: blue">new</span> <span style="COLOR: teal">Person</span>();<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p1.ID = 1;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p1.Name = <span style="COLOR: maroon">"Bob"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p1.Color = <span style="COLOR: maroon">"Blue"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><p> </p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: teal">Person</span> p2 = <span style="COLOR: blue">new</span> <span style="COLOR: teal">Person</span>();<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p2.ID = 2;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p2.Name = <span style="COLOR: maroon">"Joe"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>p2.Color = <span style="COLOR: maroon">"Green"</span>;<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><p> </p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>myPList.Add(p1);<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span>myPList.Add(p2);<p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><p> </p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">this</span>.DropDownList1.DataSource = myPList;<span style="mso-spacerun: yes">        </span><p></p></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">        </span><span style="COLOR: blue">this</span>.DropDownList1.DataBind();<span style="mso-spacerun: yes">        </span><span style="COLOR: green"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">    </span>}<br /><br />The HTML output will be the ToString() value for both the text and value.<br /></span></p><p><font size="2">&lt;select name="DropDownList1" id="DropDownList1"&gt;<br /> &lt;option value="Bob"&gt;Bob&lt;/option&gt;<br /> &lt;option value="Joe"&gt;Joe&lt;/option&gt;<br />&lt;/select&gt;<br /><br /></font></p>]]></description>
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/99f4d65b-bb62-4ac1-b58a-008edc6a511d</link>
         <guid>http://AquestHosting.headtreez.com/99f4d65b-bb62-4ac1-b58a-008edc6a511d</guid>
         <pubDate>Fri, 16 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[How to add an ASP.Net control at runtime]]></title>
         <description><![CDATA[If you ever wanted to add a ASP.Net control to your web form at runtime, it is actually pretty easy. This sample will add a LinkButton to the form at runtime. You don't have to load it during the PageLoad event like I have, but you can add it at anytime and from any event in the page.&nbsp;<br /><br />So put this into your webform's html view:<br /><br />
<p><font color="#0000ff" size="2">&lt;</font><font color="#800000" size="2">div</font><font color="#0000ff" size="2">&gt;<br /></font><font color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#800000" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#800000" size="2">PlaceHolder</font> <font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">="PlaceHolder1"</font> <font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">="server"&gt;&lt;/</font><font color="#800000" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#800000" size="2">PlaceHolder</font><font color="#0000ff" size="2">&gt;<br /></font><font color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font color="#800000" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#800000" size="2">Literal</font> <font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">="Literal1"</font> <font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">="server"&gt;&lt;/</font><font color="#800000" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#800000" size="2">Literal</font><font color="#0000ff" size="2">&gt;<br />&lt;/</font><font color="#800000" size="2">div</font><font color="#0000ff" size="2">&gt;</font></p>
<p>You need to put a PlaceHolder in your ASP.net page where you want the control to appear. You don't need the literal, but in this sample is used to show that the linkbutton we add will actually fire it's click event.<br /><br />Here is the code-behind page that will add the LinkButton and&nbsp;wire its click event.<br /><br />protected void Page_Load(object sender, EventArgs e) <br />{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;LoadLinkButton(); <br />} <br />protected void LoadLinkButton() <br />{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;LinkButton LinkButton1 = new LinkButton();&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;LinkButton1.Text = "Button Text";&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;LinkButton1.Click += new EventHandler(LinkButton1_Click);&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;this.PlaceHolder1.Controls.Add(LinkButton1); <br />} <br />protected void LinkButton1_Click(object sender, EventArgs e) <br />{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;this.Literal1.Text = "Link was clicked."; <br />}<br /><br /><br />In the LoadLinkButton function, we create a new linkButton control, assign it's Text and its Click event, and then add it to the placeHolder so it will be visible on the web form. <br /><br />You can do this with any ASP.net control so don't limit yourself to linkButtons.<br /><br />Cheers,<br />Marc Talcott<br />
<a href="http://www.aquesthosting.com">ASP.Net Host</a></p>
<p></p>]]></description>
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/3309d107-bd26-4d78-ad38-7a82933d5c50</link>
         <guid>http://AquestHosting.headtreez.com/3309d107-bd26-4d78-ad38-7a82933d5c50</guid>
         <pubDate>Fri, 16 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Sharing Session State in ASP.Net]]></title>
         <description><![CDATA[I needed to share session state in an application and was able to accomplish this using SQL Session State, and the tutorial I found here: <a href="http://www.codeproject.com/Purgatory/Sharing_session_state.asp"><font color="#800080">http://www.codeproject.com/Purgatory/Sharing_session_state.asp</font></a> .<br /><br />I recently conversed with someone that told me he was able to share session state in process  by adding this to the web.config: <br />&lt;system.web&gt;&lt;httpCookies domain="Domain.com" httpOnlyCookies="true"/&gt;&lt;/system.web&gt;<br /><br />Hope it helps!]]></description>
         <category>Code Samples</category>
         <link>http://AquestHosting.headtreez.com/38929be1-5d0b-4d09-867b-d673c84c284b</link>
         <guid>http://AquestHosting.headtreez.com/38929be1-5d0b-4d09-867b-d673c84c284b</guid>
         <pubDate>Tue, 17 Apr 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[SQL Express]]></title>
         <description><![CDATA[<div>This section contains articles related to SQL Express.</div>]]></description>
         <category />
         <link>http://AquestHosting.headtreez.com/9cf8c87b-4f8d-4527-a843-b4eb96852859</link>
         <guid>http://AquestHosting.headtreez.com/9cf8c87b-4f8d-4527-a843-b4eb96852859</guid>
         <pubDate>Tue, 16 Jan 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[How to upload SQL Express to SQL 2005]]></title>
         <description><![CDATA[<div>A common issue with SQL Express has been that it lacks the ability to upload data to remote server. As a result, we the staff of Aquest Hosting have had to have customers send us a backup (.bak) or detached copy (.mdf file) so that we could restore the database to a SQL 2005 server on our side. This is a manual process and we've been forced to charge for it (because we can't work for free, sorry).</div>
		<div> </div>
		<div>You will need a hosting account with us, and you will need to have a SQL 2005 database added to your account, which will be the destination for the copy of your SQL Express database.</div>
		<div> </div>
		<div>This solution involves creating a script for your database, uploading to the webserver using FTP, and adding a page to your site which executes to run the script and copy the structure and data from the script into your SQL 2005 database on our SQL server. </div>
		<div> </div>
		<div>Below are the instructions to use this approach:<br /><ol><li>Run the <a href="http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=Database%20Publishing%20Wizard" target="_blank">Database Publishing Wizard</a> to generate a T-SQL script file for your local database ( <a href="http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=Database%20Publishing%20Wizard" target="_blank">Free Download</a>) </li><li>Using FTP (or another approach if applicable), upload this T-SQL file to your hosting account </li><li>Download the sample ASP.NET page by clicking on this link: <a href="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=sqlhost&amp;amp;DownloadId=12858" target="_blank">RunSQL.aspx</a></li><li>Edit the ASPX page and change the values of the variables <em>fileName</em> and <em>connectionString</em> as follows: <ol><li><em>fileName</em> should be the full path of the T-SQL file you uploaded. AquestHosting customers can get the full path to your domain folder on the 'Domains' page in the control panel, and then append the 'sql' file name to it. (example:  F:\Websites\myaccount\mysitecom\mydatabase.sql )  </li><li><em>connectionString</em> should be the connection string of your <strong>hosted</strong> SQL Server database. Aquest Hosting customers can get their connection string on the 'SQL 2000' or 'SQL 2005' page of the control panel. </li></ol></li><li>Upload the ASPX page to your hosting account </li><li>Point your web browser to the ASPX page you uploaded. When this page has completed loading, your database should now be populated in the remote SQL Server database </li><li><strong>Important: Delete the T-SQL file and ASPX page in your hosting account</strong>. This will prevent others from reading your data or tampering with your database. </li><li>Change the web.config file of your application to point to the SQL 2005 database. </li></ol></div>
		<div>These details came from,  <a href="http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=UploadAndExecute" target="_blank">http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=UploadAndExecute</a>, with the exception of step 8, which we added.</div>
		<div> </div>
		<div>If' you'd rather pay us to restore the database for you, we still will at the current price for doing so, but this will allow you more control and save you a few bucks too.</div>]]></description>
         <category>SQL Express</category>
         <link>http://AquestHosting.headtreez.com/85c3fb05-bfbe-48eb-abb5-d672ce155610</link>
         <guid>http://AquestHosting.headtreez.com/85c3fb05-bfbe-48eb-abb5-d672ce155610</guid>
         <pubDate>Tue, 16 Jan 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Control Panel]]></title>
         <description><![CDATA[Please use this section of the HeadTree to find Control Panel help and information.]]></description>
         <category />
         <link>http://AquestHosting.headtreez.com/945c7d31-3f08-48b8-a014-0ff30325f95b</link>
         <guid>http://AquestHosting.headtreez.com/945c7d31-3f08-48b8-a014-0ff30325f95b</guid>
         <pubDate>Wed, 28 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[SQL Restore]]></title>
         <description><![CDATA[<hr />
		<div class="faqq">Q.) The backed-up database has on-disk structure version 611. The server supports version 539 and cannot restore or upgrade this database. RESTORE DATABASE is terminating abnormally.</div>
<div class="faqa">A.) This error occurs when you try to restore a SQL 2005 database BAK file to a SQL 2000 database.<br />Solution: You must restore SQL 2005 BAK files to a SQL 2005 or newer database.</div>
<hr />]]></description>
         <category>Control Panel</category>
         <link>http://AquestHosting.headtreez.com/8553300f-5d83-4b8e-956c-39fec8d010a2</link>
         <guid>http://AquestHosting.headtreez.com/8553300f-5d83-4b8e-956c-39fec8d010a2</guid>
         <pubDate>Wed, 28 Mar 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[ASP.Net 2.0 Framework]]></title>
         <description><![CDATA[This section is for general ASP.net 2.0 Framework info. It has nothing to do with hosting, but does have some general info that may be useful.]]></description>
         <category />
         <link>http://AquestHosting.headtreez.com/6f7b121e-765a-4483-8112-c058390c518f</link>
         <guid>http://AquestHosting.headtreez.com/6f7b121e-765a-4483-8112-c058390c518f</guid>
         <pubDate>Mon, 02 Apr 2007 00:00:00 GMT</pubDate>
      </item>
      <item>
         <title><![CDATA[Value Types]]></title>
         <description><![CDATA[<h3>Value Types - (Built-in, User defined, Enumerations)</h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Value types are on the stack.&nbsp;When copied, the&nbsp;entire value is copied onto the stack again, so doubling the space used on the stack.<br /><br /><br /></p>
<h4>Built-in Types </h4>
<p>(see table below)&nbsp;(All built in numeric types are 'value' types.)<br /><br />Numeric Built-in types: </p>
<table border="1">
<tbody>
<tr>
<td>Type</td>
<td>Alias(C#)</td>
<td>Bytes </td>
<td>Range</td></tr>
<tr>
<td>System.SByte</td>
<td>sbyte</td>
<td>1</td>
<td>-128-127</td></tr>
<tr>
<td>System.Byte</td>
<td>byte</td>
<td>1</td>
<td>0-255</td></tr>
<tr>
<td>System.Int16</td>
<td>short</td>
<td>2</td>
<td>-32,768 - 32767</td></tr>
<tr>
<td>System.Int32</td>
<td>int</td>
<td>4</td>
<td>-2147483648 - 2147483647</td></tr>
<tr>
<td>System.UInt32</td>
<td>uint</td>
<td>4</td>
<td>0 - 4294967295</td></tr>
<tr>
<td>System.Int64</td>
<td>long</td>
<td>8</td>
<td>-9223372036854775808 - <br />9223372036854775807</td></tr>
<tr>
<td>System.Single</td>
<td>float</td>
<td>8</td>
<td>-3.402823E+38 - <br />3.402823E+38</td></tr>
<tr>
<td>System.Double</td>
<td>double</td>
<td>8</td>
<td>-1.79769313486232E+308 -<br />1.79769313486232E+308</td></tr>
<tr>
<td>System.Decimal</td>
<td>decimal</td>
<td>16</td>
<td>-79228162514264337593543950335 -<br />79228162514264337593543950335 </td></tr></tbody></table><br />*The runtime is optimized for the 32 bit int types so use them when possible.<br />*The runtime is optimized for 'double' so use it for floating point operations when possible.<br /><br />Other Built-in value types (non numeric)<br />
<table border="1">
<tbody>
<tr>
<td>Type</td>
<td>Alias(C#)</td>
<td>Bytes </td>
<td>Range</td></tr>
<tr>
<td>System.Char</td>
<td>char</td>
<td>2</td>
<td>single unicode characters</td></tr>
<tr>
<td>System.Boolean</td>
<td>bool</td>
<td>4</td>
<td>True/False</td></tr>
<tr>
<td>System.IntPtr</td>
<td>(none)</td>
<td>Platform dependent</td>
<td>Pointer to mem address</td></tr>
<tr>
<td>System.DateTime</td>
<td>date</td>
<td>8</td>
<td><font id="tmpPasteIE">1/1/0001<br />12:00:00 AM to <br />12/31/9999<br />11:59:59 PM</font></td></tr></tbody></table>
<p><br />There are 300 more value types in the Framework, but above are the most common.</p>
<h5>User-defined Types<br /></h5>
<p><br />Structs - Similar to class but stored on the stack.<br />Structs should:<br /></p>
<ol>
<li>Logically represent a single value</li>
<li>Has an instace size less than 16 bytes</li>
<li>Will not be changed after creation</li>
<li>Will not be caset to reference type</li></ol>
<p>You can convert a struct to a class by changing the keyword 'struct' to 'class', and then it will be allocated on the managed heap instead of the stack. Structs generally perform better than classes if the size is 16 bytes or less.<br /></p>
<h5>Enumerations</h5>
<p>// C#<br />enum Titles: int {Mr, Ms, Mrs, Dr};<br /><br />represents a list&nbsp;for the developer to choose from.<br />-simplify code readability<br />-provides safety when users need to choose&nbsp;from specific values.<br />&nbsp;</p>
<p><br /><br />&nbsp;</p>
<h3>More on Value types:<br /></h3>
<p>&nbsp;You don't use the 'new' keyword when creating an instance (int i&nbsp;= 0;)<br />&nbsp;Best to assign a value when constructing, but not required.<br />&nbsp;<br />&nbsp;</p>
<h5>New in .Net 2.0 - Nullable types<br /></h5>
<p>&nbsp;Nullable&lt;int&gt; i = null;<br />&nbsp;or<br />&nbsp; int? i = null;<br /><br />&nbsp;With nullable types, you can use the 'HasValue' property to see if its null or not<br />&nbsp;if(i.HasValue)<br />&nbsp; //do something<br /></p>]]></description>
         <category>ASP.Net 2.0 Framework</category>
         <link>http://AquestHosting.headtreez.com/7872bcba-040a-4c1b-8c73-43a2914f2587</link>
         <guid>http://AquestHosting.headtreez.com/7872bcba-040a-4c1b-8c73-43a2914f2587</guid>
         <pubDate>Mon, 02 Apr 2007 00:00:00 GMT</pubDate>
      </item>
   </channel>
</rss>