<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'MySql'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=MySql&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'MySql'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: ASP.NET Developer needed in Baton Rouge, LA</title><link>http://forums.asp.net/thread/3583839.aspx</link><pubDate>Sat, 26 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3583839</guid><dc:creator>mohammadtanveer</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I am Tanveer, I have 6+ years of web development experience and have worked on more than 20 websites/web applications like Portals, Ecommerce, Auctions, Multilevel Marketing, Ads Management, Real Estate, Online Jobs, Online Music, Web to SMS, Online News, Online Calssifieds, Shopping Carts.&lt;br /&gt;I have done most of the&amp;nbsp; websites/web applications completely and some in the form of a team using different technologies like Asp.Net,PHP,Wordpress,Joomla,MVC,Ajax,Silverlight,C#.Net,VB.NET,JQuery,Javascript,HTML,CSS,MSSQL Server,MySQL.&lt;br /&gt;&lt;br /&gt;Some examples of my work are as follows:&lt;br /&gt;&lt;br /&gt;http://thebirthdirectory.com/&lt;br /&gt;http://www.crebn.com/&lt;br /&gt;http://linksexchangedirectory.org/&lt;br /&gt;http://www.capitalcaterers.co.uk/&lt;br /&gt;http://project19.tempowebdesign.co.uk/&lt;br /&gt;http://www.mortanian.com/v2/&lt;br /&gt;http://www.renaissancehomebuilder.com&lt;br /&gt;http://www.coldwatersda.com&lt;br /&gt;http://www.hambelly.com&lt;br /&gt;http://www.nulled2.com/auction&lt;br /&gt;http://www.iraq2us.com&lt;br /&gt;http://www.abtxt.com&lt;br /&gt;http://www.abetterdriver.com&lt;br /&gt;http://www.biotechbuildings.com&lt;br /&gt;http://www.desisong.com&lt;br /&gt;http://www.workforce.com.pk&lt;br /&gt;http://www.pakistanway.com&lt;br /&gt;http://www.phoneride.com&lt;br /&gt;http://www.instawireless.com&lt;br /&gt;http://www.illinoisdivorce.com&lt;br /&gt;&lt;br /&gt;My Contact ids:&lt;br /&gt;&lt;br /&gt;msn: tanveer_411393@hotmail.com&lt;br /&gt;skype: mohammadtanveer&lt;br /&gt;gtalk: mtanveer@gmail.com&lt;br /&gt;yahoo: mtanveer123@yahoo.com&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div id="refHTML"&gt;&lt;/div&gt;</description></item><item><title>Re: Looking for experienced freelance .net developer</title><link>http://forums.asp.net/thread/3580480.aspx</link><pubDate>Wed, 23 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3580480</guid><dc:creator>mohammadtanveer</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am Tanveer, I have 6+ years of web development experience and have worked on more than 20 websites/web applications like Portals, Ecommerce, Auctions, Multilevel Marketing, Ads Management, Real Estate, Online Jobs, Online Music, Web to SMS. I have done most of the&amp;nbsp; websites/web applications completely and some in the form of a team using different technologies like HTML, CSS, Javascript, Asp.Net, PHP, MSSQL Server, MySQL, Ajax, Silverlight.&lt;/p&gt;
&lt;p&gt;Some examples of my work are as follows:&lt;/p&gt;
&lt;p&gt;http://www.crebn.com/&lt;br /&gt;&lt;a href="http://thebirthdirectory.com/"&gt;http://thebirthdirectory.com/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.linksexchangedirectory.org/"&gt;http://www.linksexchangedirectory.org/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://project19.tempowebdesign.co.uk/"&gt;http://project19.tempowebdesign.co.uk/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.mortanian.com/v2/"&gt;http://www.mortanian.com/v2/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.coldwatersda.com"&gt;http://www.coldwatersda.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.hambelly.com"&gt;http://www.hambelly.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.iraq2us.com"&gt;http://www.iraq2us.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abtxt.com"&gt;http://www.abtxt.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.abetterdriver.com"&gt;http://www.abetterdriver.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.biotechbuildings.com"&gt;http://www.biotechbuildings.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.desisong.com"&gt;http://www.desisong.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.workforce.com.pk"&gt;http://www.workforce.com.pk&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.pakistanway.com"&gt;http://www.pakistanway.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.phoneride.com"&gt;http://www.phoneride.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.instawireless.com"&gt;http://www.instawireless.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.illinoisdivorce.com"&gt;http://www.illinoisdivorce.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.nulled2.com/auctionMy"&gt;http://www.nulled2.com/auction&lt;/a&gt; Contact ids:&lt;/p&gt;
&lt;p&gt;My&lt;/p&gt;
&lt;p&gt;msn: &lt;a href="mailto:tanveer_411393@hotmail.com"&gt;tanveer_411393@hotmail.com&lt;/a&gt;&lt;br /&gt;skype: mohammadtanveer&lt;br /&gt;gtalk: &lt;a href="mailto:mtanveer@gmail.com"&gt;mtanveer@gmail.com&lt;/a&gt;&lt;br /&gt;yahoo: &lt;a href="mailto:mtanveer123@yahoo.com"&gt;mtanveer123@yahoo.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Conflict detection updates more than one row when I only want one!</title><link>http://forums.asp.net/thread/3572062.aspx</link><pubDate>Fri, 18 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3572062</guid><dc:creator>LHYWebDesigner</dc:creator><description>&lt;p&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I have a MySql database set with a primary key of:&amp;nbsp; cust_code&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This primary key cannot be changed to auto increment, it must be assigned by and correlate to a separate program!&amp;nbsp; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When I perform the update comand every row that has data in any field that is the same as the entry I am trying to update is updated instead of just the one that the customer code corresponds to.&amp;nbsp;&amp;nbsp; It seams as if it is updating any row that has duplication such as same last names.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I suspect it has something to do with the conflict detection, but I am not sure if it can be fixed.&amp;nbsp; When I eliminate the conflict detection for updating on every field but the primary key, it&amp;nbsp;updates (only the selected entry)&amp;nbsp;perfectly.&amp;nbsp; However, that really defeats the purpose of conflict detection.&amp;nbsp; I would like to be able to detect and overwrite conflicts only within the cust_code that is selected for editing.&amp;nbsp; I will never be able to avoid duplicate names, dollars, etc.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Besides the web.config file, the program is three files: UpdatePrefCustomers.aspx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prefcust_edit.aspx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prefcust_insert.aspx&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UpdatePrefCustomers.aspx is used to access the other two edit &amp;amp; insert pages.&amp;nbsp; prefcust_insert.aspx does not have any problems, it&amp;#39;s only prefcust_edit.aspx that is a problem.&amp;nbsp; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Any help would be greatly appreciated.&amp;nbsp; &lt;img title="Laughing" alt="Laughing" src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif" border="0" /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The following is the access page, UpdatePrefCustomers.aspx:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;
&amp;lt;%@ Import Namespace=&amp;quot;MySql.Data.MySqlClient&amp;quot; %&amp;gt;
&amp;lt;%@ Import Namespace = &amp;quot;System.Data&amp;quot; %&amp;gt;
&amp;lt;%@ Import Namespace = &amp;quot;System.Data.Odbc&amp;quot; %&amp;gt;
&amp;lt;%@ Assembly Name=&amp;quot;System.Data&amp;quot; %&amp;gt;


&amp;lt;html dir=&amp;quot;ltr&amp;quot; xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;

&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;


&amp;lt;meta content=&amp;quot;text/html; charset=utf-8&amp;quot; http-equiv=&amp;quot;Content-Type&amp;quot; /&amp;gt;
&amp;lt;title&amp;gt;Preferred Customers at Lawrenceville Honda Yamaha!&amp;lt;/title&amp;gt;
&amp;lt;meta name=&amp;quot;robots&amp;quot; content=&amp;quot;noindex, nofollow&amp;quot; /&amp;gt; 
&amp;lt;meta http-equiv=&amp;quot;Cache-Control&amp;quot; content=&amp;quot;no-cache&amp;quot; /&amp;gt;
&amp;lt;meta http-equiv=&amp;quot;Pragma&amp;quot; content=&amp;quot;no-cache&amp;quot; /&amp;gt;

&amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;javascript&amp;quot;&amp;gt;
        function ConfirmOnDelete()
        {
          if (confirm(&amp;quot;Are you sure to delete this Preferred Customer?&amp;quot;)==true)
            return true;
          else
            return false;
        }
&amp;lt;/script&amp;gt;

&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
.style1 {
	text-align: center;
	margin-left:auto; 
	margin-right:auto;
}
.style2 {
	text-align: center;
	font-size: 60pt;
	font-family: Mistral;
	color: #0000FF;
}

h1 { color: #003366; font-size: 24px; margin: 0px 0 0px 0;  line-height: 6px; }
.style3 {
	text-align: center;
	font-size: x-large;
}
.style4 {
	text-align: center;
	margin-top: 0;
	margin-bottom: 0;
}
.style5 {
	text-align: center;
	font-size: 60pt;
	font-family: Mistral;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;


&amp;lt;body&amp;gt;
&amp;lt;p class=&amp;quot;style2&amp;quot;&amp;gt;Lawrenceville Honda Yamaha &amp;lt;/p&amp;gt;
&amp;lt;p class=&amp;quot;style5&amp;quot;&amp;gt;PREFERRED CUSTOMERS&amp;lt;/p&amp;gt;

&amp;lt;p class=&amp;quot;style3&amp;quot;&amp;gt;To sort, click on column header.&amp;lt;/p&amp;gt;
		
	&amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
	&amp;lt;asp:HyperLink ID=&amp;quot;HyperLink1&amp;quot; Text=&amp;quot;Add New Preferred Customer...&amp;quot; NavigateUrl=&amp;quot;prefcust_insert.aspx&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
	&amp;lt;div id=&amp;quot;PreferredCustomersGridView&amp;quot; class=&amp;quot;style1&amp;quot;&amp;gt;
		&amp;lt;asp:Gridview ID=&amp;quot;grdPreferredCustomers&amp;quot; runat=&amp;quot;server&amp;quot; DataKeyNames=&amp;quot;cust_code&amp;quot; AllowSorting=&amp;quot;True&amp;quot; AllowPaging=&amp;quot;True&amp;quot; AutoGenerateColumns=&amp;quot;False&amp;quot; CellPadding=&amp;quot;1&amp;quot; CellSpacing=&amp;quot;2&amp;quot; DataSourceID=&amp;quot;srcPreferredCustomers&amp;quot;&amp;gt;
			&amp;lt;Columns&amp;gt;
			&amp;lt;asp:TemplateField&amp;gt;
				&amp;lt;ItemTemplate&amp;gt;
					&amp;lt;asp:LinkButton 
					ID=&amp;quot;LinkDelete&amp;quot; 
					runat=&amp;quot;server&amp;quot;
					Text=&amp;quot;Delete&amp;quot;
					CommandName=&amp;quot;delete&amp;quot;
					OnClientClick=&amp;quot;return ConfirmOnDelete();&amp;quot;&amp;gt;
					Delete
					&amp;lt;/asp:LinkButton&amp;gt;
				&amp;lt;/ItemTemplate&amp;gt;
			&amp;lt;/asp:TemplateField&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;cust_code&amp;quot;
				HeaderText=&amp;quot;Customer Code&amp;quot; 
				SortExpression=&amp;quot;cust_code&amp;quot;/&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;last_name&amp;quot;
				HeaderText=&amp;quot;Last Name&amp;quot; 
				SortExpression=&amp;quot;last_name&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;first_name&amp;quot;
				HeaderText=&amp;quot;First Name&amp;quot; 
				SortExpression=&amp;quot;first_name&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;join_date&amp;quot;
				HeaderText=&amp;quot;Join Date&amp;quot; 
				dataformatstring=&amp;quot;{0:D}&amp;quot;
				SortExpression=&amp;quot;join_date&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;amt_paid&amp;quot;
				HeaderText=&amp;quot;Amount Paid&amp;quot; 
				dataformatstring=&amp;quot;{0:n0}&amp;quot;
				SortExpression=&amp;quot;amt_paid&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;birthday_month&amp;quot;
				HeaderText=&amp;quot;Birthday Month&amp;quot; 
				SortExpression=&amp;quot;birthday_month&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;birthday_day&amp;quot;
				HeaderText=&amp;quot;Birthday Day&amp;quot; 
				SortExpression=&amp;quot;birthday_day&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;unit1_type&amp;quot;
				HeaderText=&amp;quot;Unit 1 Type&amp;quot; 
				SortExpression=&amp;quot;unit1_type&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;last_4_vin_unit1&amp;quot;
				HeaderText=&amp;quot;Last 4 Of 1st VIN&amp;quot; 
				SortExpression=&amp;quot;last_4_vin_unit1&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;unit2_type&amp;quot;
				HeaderText=&amp;quot;Unit 2 Type&amp;quot; 
				SortExpression=&amp;quot;unit2_type&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;last_4_vin_unit2&amp;quot;
				HeaderText=&amp;quot;Last 4 Of 2nd VIN&amp;quot; 
				SortExpression=&amp;quot;last_4_vin_unit2&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;email&amp;quot;
				HeaderText=&amp;quot;Email&amp;quot; 
				SortExpression=&amp;quot;email&amp;quot;/&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;notes&amp;quot;
				HeaderText=&amp;quot;Notes&amp;quot; 
				SortExpression=&amp;quot;notes&amp;quot;/&amp;gt;
			&amp;lt;asp:CheckBoxField
				DataField=&amp;quot;gift_1&amp;quot;
				HeaderText=&amp;quot;Recvd Gift 1&amp;quot; /&amp;gt;
			&amp;lt;asp:BoundField
				DataField=&amp;quot;gift_1_date&amp;quot;
				HeaderText=&amp;quot;Gift 1 Date&amp;quot; 
				dataformatstring=&amp;quot;{0:D}&amp;quot;
				SortExpression=&amp;quot;gift_1_date&amp;quot; /&amp;gt;
			&amp;lt;asp:hyperlinkfield 
			 	HeaderText=&amp;quot;Edit&amp;quot;
			 	Text=&amp;quot;Edit&amp;quot;
            	DataNavigateUrlFields=&amp;quot;cust_code&amp;quot;
            	DataNavigateUrlFormatString=&amp;quot;prefcust_edit.aspx?ID={0}&amp;quot; /&amp;gt;
            &amp;lt;/Columns&amp;gt;
			&amp;lt;FooterStyle BackColor=&amp;quot;#CCCCCC&amp;quot; /&amp;gt;
			&amp;lt;PagerStyle BackColor=&amp;quot;#999999&amp;quot; ForeColor=&amp;quot;Black&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; /&amp;gt;
			&amp;lt;SelectedRowStyle BackColor=&amp;quot;#000099&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
			&amp;lt;HeaderStyle BackColor=&amp;quot;Black&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
			&amp;lt;AlternatingRowStyle BackColor=&amp;quot;#CCCCCC&amp;quot; /&amp;gt;

		&amp;lt;/asp:Gridview&amp;gt;
			
		&amp;lt;asp:SqlDataSource id=&amp;quot;srcPreferredCustomers&amp;quot; runat=&amp;quot;server&amp;quot; 
			ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
			providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
			SelectCommand=&amp;quot;SELECT * FROM PCustomers&amp;quot; 
			DeleteCommand=&amp;quot;DELETE FROM PCustomers WHERE (cust_code=@cust_code)&amp;quot; &amp;gt;
			&amp;lt;DeleteParameters&amp;gt;
              &amp;lt;asp:Parameter Name=&amp;quot;cust_code&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
            &amp;lt;/DeleteParameters&amp;gt;
        &amp;lt;/asp:SqlDataSource&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;/form&amp;gt;

&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This next one is the problem child!&amp;nbsp; I cannot bold the code, so, lines 118 through 131&amp;nbsp;are the lines&amp;nbsp;that make&amp;nbsp;the page work when I remove them.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;

  protected void DetailsView1_ModeChanging(Object sender, System.Web.UI.WebControls.DetailsViewModeEventArgs e)
  {
    if (e.CancelingEdit == true)
    {
      Response.Redirect(&amp;quot;UpdatePrefCustomers.aspx&amp;quot;);
    }
  }
  protected void srcPrefCustomersEdit_Updated(object sender, SqlDataSourceStatusEventArgs e)
    {
        if (e.AffectedRows == 0)
            lblMessage.Text = &amp;quot;Could not update record because it has changed since you opened this page&amp;quot;;
        else Response.Redirect(&amp;quot;UpdatePrefCustomers.aspx&amp;quot;);
    }
&amp;lt;/script&amp;gt;
&amp;lt;html dir=&amp;quot;ltr&amp;quot; xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
&amp;lt;meta content=&amp;quot;text/html; charset=utf-8&amp;quot; http-equiv=&amp;quot;Content-Type&amp;quot; /&amp;gt;
 &amp;lt;meta name=&amp;quot;robots&amp;quot; content=&amp;quot;noindex, nofollow&amp;quot; /&amp;gt;
   &amp;lt;title&amp;gt;Edit Preferred Customers&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
  &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
  &amp;lt;div&amp;gt;
    &amp;lt;asp:Label ID=&amp;quot;lblMessage&amp;quot; EnableViewState=&amp;quot;false&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;asp:DetailsView DefaultMode=&amp;quot;Edit&amp;quot; AutoGenerateRows=&amp;quot;False&amp;quot; DataKeyNames=&amp;quot;cust_code&amp;quot;
      DataSourceID=&amp;quot;srcPrefCustomersEdit&amp;quot; HeaderText=&amp;quot;Edit Preferred Customer&amp;quot; ID=&amp;quot;DetailsView1&amp;quot; runat=&amp;quot;server&amp;quot;
      Width=&amp;quot;275px&amp;quot; OnModeChanging=&amp;quot;DetailsView1_ModeChanging&amp;quot; &amp;gt;
      &amp;lt;Fields&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;cust_code&amp;quot; HeaderText=&amp;quot;Customer Code&amp;quot; ReadOnly=&amp;quot;True&amp;quot; SortExpression=&amp;quot;cust_code&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;last_name&amp;quot; HeaderText=&amp;quot;Last Name&amp;quot; SortExpression=&amp;quot;last_name&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;first_name&amp;quot; HeaderText=&amp;quot;First Name&amp;quot; SortExpression=&amp;quot;first_name&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;join_date&amp;quot; HeaderText=&amp;quot;Join Date&amp;quot; DataFormatString=&amp;quot;{0:d}&amp;quot; SortExpression=&amp;quot;join_date&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;amt_paid&amp;quot; HeaderText=&amp;quot;Amount Paid&amp;quot; SortExpression=&amp;quot;amt_paid&amp;quot; /&amp;gt;
        &amp;lt;asp:TemplateField HeaderText=&amp;quot;Birthday Month&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;months&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:DropDownList
        		ID=&amp;quot;ddlMonths&amp;quot;
        		DataSourceID=&amp;quot;srcMonths&amp;quot;
        		DataTextField=&amp;quot;months&amp;quot;
        		DataValueField=&amp;quot;months&amp;quot;
        		SelectedValue=&amp;#39;&amp;lt;%# Bind(&amp;quot;birthday_month&amp;quot;) %&amp;gt;&amp;#39;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;
        &amp;lt;asp:TemplateField HeaderText=&amp;quot;Birthday Day&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;days&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:DropDownList
        		ID=&amp;quot;ddlDays&amp;quot;
        		DataSourceID=&amp;quot;srcDays&amp;quot;
        		DataTextField=&amp;quot;days&amp;quot;
        		DataValueField=&amp;quot;days&amp;quot;
        		SelectedValue=&amp;#39;&amp;lt;%# Bind(&amp;quot;birthday_day&amp;quot;) %&amp;gt;&amp;#39;
        		AppendDataBoundItems=&amp;quot;true&amp;quot;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;
        &amp;lt;asp:TemplateField HeaderText=&amp;quot;Unit 1 Type&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;type&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:DropDownList
        		ID=&amp;quot;ddlUnit1Type&amp;quot;
        		DataSourceID=&amp;quot;srcUnitTypes&amp;quot;
        		DataTextField=&amp;quot;type&amp;quot;
        		DataValueField=&amp;quot;type&amp;quot;
        		SelectedValue=&amp;#39;&amp;lt;%# Bind(&amp;quot;unit1_type&amp;quot;) %&amp;gt;&amp;#39;
        		AppendDataBoundItems=&amp;quot;true&amp;quot;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;
       	&amp;lt;asp:BoundField DataField=&amp;quot;last_4_vin_unit1&amp;quot; HeaderText=&amp;quot;Last 4 of Unit 1 VIN&amp;quot; SortExpression=&amp;quot;last_4_vin_unit1&amp;quot; /&amp;gt;
       	&amp;lt;asp:TemplateField HeaderText=&amp;quot;Unit 2 Type&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;unit2_type&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:DropDownList
        		ID=&amp;quot;ddlUnit2Type&amp;quot;
        		DataSourceID=&amp;quot;srcUnitTypes&amp;quot;
        		DataTextField=&amp;quot;type&amp;quot;
        		DataValueField=&amp;quot;type&amp;quot;
        		SelectedValue=&amp;#39;&amp;lt;%# Bind(&amp;quot;unit2_type&amp;quot;) %&amp;gt;&amp;#39;
        		AppendDataBoundItems=&amp;quot;true&amp;quot;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;last_4_vin_unit2&amp;quot; HeaderText=&amp;quot;Last 4 of Unit 2 VIN&amp;quot; SortExpression=&amp;quot;last_4_vin_unit2&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;email&amp;quot; HeaderText=&amp;quot;Email&amp;quot; SortExpression=&amp;quot;email&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;notes&amp;quot; HeaderText=&amp;quot;Notes&amp;quot; SortExpression=&amp;quot;notes&amp;quot; /&amp;gt;
        &amp;lt;asp:CheckBoxField DataField=&amp;quot;gift_1&amp;quot; HeaderText=&amp;quot;Recvd Gift 1&amp;quot; SortExpression=&amp;quot;gift_1&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;gift_1_date&amp;quot; HeaderText=&amp;quot;Date Gift 1 Recvd&amp;quot; DataFormatString=&amp;quot;{0:d}&amp;quot; SortExpression=&amp;quot;gift_1_date&amp;quot; /&amp;gt;
        &amp;lt;asp:CommandField ShowEditButton=&amp;quot;True&amp;quot; /&amp;gt;
      &amp;lt;/Fields&amp;gt;
      &amp;lt;FooterStyle BackColor=&amp;quot;#CCCCCC&amp;quot; /&amp;gt;
	  &amp;lt;PagerStyle BackColor=&amp;quot;#999999&amp;quot; ForeColor=&amp;quot;Black&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; /&amp;gt;
	  &amp;lt;HeaderStyle BackColor=&amp;quot;Black&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
	  &amp;lt;AlternatingRowStyle BackColor=&amp;quot;#CCCCCC&amp;quot; /&amp;gt;
    &amp;lt;/asp:DetailsView&amp;gt;
    
    &amp;lt;asp:SqlDataSource id=&amp;quot;srcPrefCustomersEdit&amp;quot;  
    	ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
    	providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
    	SelectCommand=&amp;quot;SELECT * FROM PCustomers WHERE cust_code=@cust_code&amp;quot; 
    	UpdateCommand=&amp;quot;UPDATE PCustomers 
        	SET last_name=@last_name, first_name=@first_name, join_date=@join_date, amt_paid=@amt_paid, birthday_month=@birthday_month, birthday_day=@birthday_day, unit1_type=@unit1_type, last_4_vin_unit1=@last_4_vin_unit1, unit2_type=@unit2_type, last_4_vin_unit2=@last_4_vin_unit2, email=@email, notes=@notes, gift_1=@gift_1, gift_1_date=@gift_1_date 
        	WHERE (@original_cust_code IS NULL AND cust_code IS NULL) OR cust_code=@original_cust_code 
        	AND (@original_last_name IS NULL AND last_name IS NULL) OR last_name=@original_last_name 
        	AND (@original_first_name IS NULL AND first_name IS NULL) OR first_name=@original_first_name
        	AND (@original_join_date IS NULL AND join_date IS NULL) OR join_date=@original_join_date        	
        	AND (@original_amt_paid IS NULL AND amt_paid IS NULL) OR amt_paid=@original_amt_paid 
        	AND (@original_birthday_month IS NULL AND birthday_month IS NULL) OR birthday_month=@original_birthday_month 
        	AND (@original_birthday_day IS NULL AND birthday_day IS NULL) OR birthday_day=@original_birthday_day 
        	AND (@original_unit1_type IS NULL AND unit1_type IS NULL) OR unit1_type=@original_unit1_type 
        	AND (@original_last_4_vin_unit1 IS NULL AND last_4_vin_unit1 IS NULL) OR last_4_vin_unit1=@original_last_4_vin_unit1 
        	AND (@original_unit2_type IS NULL AND unit2_type IS NULL) OR unit2_type=@original_unit2_type 
        	AND (@original_last_4_vin_unit2 IS NULL AND last_4_vin_unit2 IS NULL) OR last_4_vin_unit2=@original_last_4_vin_unit2
        	AND (@original_email IS NULL AND email IS NULL) OR email=@original_email
        	AND (@original_notes IS NULL AND notes IS NULL) OR notes=@original_notes
        	AND (@original_gift_1 IS NULL AND gift_1 IS NULL) OR gift_1=@original_gift_1
        	AND (@original_gift_1_date IS NULL AND gift_1_date IS NULL) OR gift_1_date=@original_gift_1_date&amp;quot;
        ConflictDetection=&amp;quot;CompareAllValues&amp;quot;  
        OldValuesParameterFormatString=&amp;quot;original_{0}&amp;quot;  
        runat=&amp;quot;server&amp;quot; OnUpdated=&amp;quot;srcPrefCustomersEdit_Updated&amp;quot; &amp;gt;
      &amp;lt;SelectParameters&amp;gt;
        &amp;lt;asp:QueryStringParameter Name=&amp;quot;cust_code&amp;quot; QueryStringField=&amp;quot;ID&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
      &amp;lt;/SelectParameters&amp;gt;
      &amp;lt;UpdateParameters&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;last_name&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;first_name&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;join_date&amp;quot; Type=&amp;quot;DateTime&amp;quot;/&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;amt_paid&amp;quot; Type=&amp;quot;Decimal&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;birthday_month&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;birthday_day&amp;quot; Type=&amp;quot;Int16&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;unit1_type&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;last_4_vin_unit1&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;unit2_type&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;last_4_vin_unit2&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;email&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;notes&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;gift_1&amp;quot; Type=&amp;quot;Boolean&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;gift_1_date&amp;quot; Type=&amp;quot;DateTime&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;cust_code&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
      &amp;lt;/UpdateParameters&amp;gt;
    &amp;lt;/asp:SqlDataSource&amp;gt;
    
    &amp;lt;asp:SqlDataSource id=&amp;quot;srcMonths&amp;quot; runat=&amp;quot;server&amp;quot; 
    	ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
    	providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
    	SelectCommand=&amp;quot;SELECT * FROM Months ORDER BY month_number ASC&amp;quot; /&amp;gt;
    &amp;lt;asp:SqlDataSource id=&amp;quot;srcDays&amp;quot; runat=&amp;quot;server&amp;quot; 
    	ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
    	providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
    	SelectCommand=&amp;quot;SELECT * FROM Days ORDER BY days ASC&amp;quot; /&amp;gt;	
    &amp;lt;asp:SqlDataSource id=&amp;quot;srcUnitTypes&amp;quot; runat=&amp;quot;server&amp;quot; 
    	ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
    	providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
    	SelectCommand=&amp;quot;SELECT * FROM UnitTypes ORDER BY type_id ASC&amp;quot; /&amp;gt; 
  &amp;lt;/div&amp;gt;
  &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The following is prefcust_insert.aspx which is not causing a problem:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;

  protected void DetailsView1_ItemInserted(Object sender, System.Web.UI.WebControls.DetailsViewInsertedEventArgs e)
  {
    Response.Redirect(&amp;quot;UpdatePrefCustomers.aspx&amp;quot;);
  }

  protected void DetailsView1_ModeChanging(Object sender, System.Web.UI.WebControls.DetailsViewModeEventArgs e)
  {
    if (e.CancelingEdit == true)
    {
      Response.Redirect(&amp;quot;UpdatePrefCustomers.aspx&amp;quot;);
    }
  }
&amp;lt;/script&amp;gt;
&amp;lt;html dir=&amp;quot;ltr&amp;quot; xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;
&amp;lt;meta content=&amp;quot;text/html; charset=utf-8&amp;quot; http-equiv=&amp;quot;Content-Type&amp;quot; /&amp;gt;
&amp;lt;meta name=&amp;quot;robots&amp;quot; content=&amp;quot;noindex, nofollow&amp;quot; /&amp;gt;
  &amp;lt;title&amp;gt;Insert Preferred Customers&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
  &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;asp:DetailsView DefaultMode=&amp;quot;Insert&amp;quot; AutoGenerateRows=&amp;quot;False&amp;quot; DataKeyNames=&amp;quot;cust_code&amp;quot;
      DataSourceID=&amp;quot;srcPrefCustomersInsert&amp;quot; HeaderText=&amp;quot;Insert Preferred Customer&amp;quot; ID=&amp;quot;DetailsView1&amp;quot; runat=&amp;quot;server&amp;quot;
      Width=&amp;quot;325px&amp;quot; OnItemInserted=&amp;quot;DetailsView1_ItemInserted&amp;quot; OnModeChanging=&amp;quot;DetailsView1_ModeChanging&amp;quot;&amp;gt;
      &amp;lt;Fields&amp;gt;
        &amp;lt;asp:TemplateField HeaderText=&amp;quot;Customer Code&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;cust_code&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:TextBox
        		ID=&amp;quot;txtCustCode&amp;quot;
        		Text=&amp;#39;&amp;lt;%# Bind(&amp;quot;cust_code&amp;quot;) %&amp;gt;&amp;#39;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;asp:RequiredFieldValidator
        		ID=&amp;quot;reqCustCode&amp;quot; 
        		ControlToValidate=&amp;quot;txtCustCode&amp;quot; 
        		Text=&amp;quot;(Required)&amp;quot; 
        		Display=&amp;quot;Dynamic&amp;quot; 
        		SetFocusOnError=&amp;quot;true&amp;quot;
        		runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;asp:RegularExpressionValidator
        		id=&amp;quot;regCustCode2&amp;quot;
        		ControlToValidate=&amp;quot;txtCustCode&amp;quot;
        		Text=&amp;quot;The customer code you have entered is either to long or contains invalid characters.&amp;quot;
        		ValidationExpression=&amp;quot;^[0-9a-zA-Z]{1,4}$&amp;quot;
        		SetFocusOnError=&amp;quot;true&amp;quot;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;

        &amp;lt;asp:BoundField DataField=&amp;quot;last_name&amp;quot; HeaderText=&amp;quot;Last Name&amp;quot; SortExpression=&amp;quot;last_name&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;first_name&amp;quot; HeaderText=&amp;quot;First Name&amp;quot; SortExpression=&amp;quot;first_name&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;join_date&amp;quot; HeaderText=&amp;quot;Join Date&amp;quot; SortExpression=&amp;quot;join_date&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;amt_paid&amp;quot; HeaderText=&amp;quot;Amount Paid&amp;quot; SortExpression=&amp;quot;amt_paid&amp;quot; /&amp;gt;
        
        &amp;lt;asp:TemplateField HeaderText=&amp;quot;Birthday Month&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;months&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:DropDownList
        		ID=&amp;quot;ddlMonths&amp;quot;
        		DataSourceID=&amp;quot;srcMonths&amp;quot;
        		DataTextField=&amp;quot;months&amp;quot;
        		DataValueField=&amp;quot;months&amp;quot;
        		SelectedValue=&amp;#39;&amp;lt;%# Bind(&amp;quot;birthday_month&amp;quot;) %&amp;gt;&amp;#39;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;
        
        &amp;lt;asp:TemplateField HeaderText=&amp;quot;Birthday Day&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;days&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:DropDownList
        		ID=&amp;quot;ddlDays&amp;quot;
        		DataSourceID=&amp;quot;srcDays&amp;quot;
        		DataTextField=&amp;quot;days&amp;quot;
        		DataValueField=&amp;quot;days&amp;quot;
        		SelectedValue=&amp;#39;&amp;lt;%# Bind(&amp;quot;birthday_day&amp;quot;) %&amp;gt;&amp;#39;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;
        
        &amp;lt;asp:TemplateField HeaderText=&amp;quot;Unit 1 Type&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;type&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:DropDownList
        		ID=&amp;quot;ddlUnit1Type&amp;quot;
        		DataSourceID=&amp;quot;srcUnitTypes&amp;quot;
        		DataTextField=&amp;quot;type&amp;quot;
        		DataValueField=&amp;quot;type&amp;quot;
        		SelectedValue=&amp;#39;&amp;lt;%# Bind(&amp;quot;unit1_type&amp;quot;) %&amp;gt;&amp;#39;
        		AppendDataBoundItems=&amp;quot;true&amp;quot;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;

       	&amp;lt;asp:BoundField DataField=&amp;quot;last_4_vin_unit1&amp;quot; HeaderText=&amp;quot;Last 4 of Unit 1 VIN&amp;quot; SortExpression=&amp;quot;last_4_vin_unit1&amp;quot; /&amp;gt;
       	
       	&amp;lt;asp:TemplateField HeaderText=&amp;quot;Unit 2 Type&amp;quot;&amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;type&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:DropDownList
        		ID=&amp;quot;ddlUnit2Type&amp;quot;
        		DataSourceID=&amp;quot;srcUnitTypes&amp;quot;
        		DataTextField=&amp;quot;type&amp;quot;
        		DataValueField=&amp;quot;type&amp;quot;
        		SelectedValue=&amp;#39;&amp;lt;%# Bind(&amp;quot;unit2_type&amp;quot;) %&amp;gt;&amp;#39;
        		AppendDataBoundItems=&amp;quot;true&amp;quot;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;

       	&amp;lt;asp:BoundField DataField=&amp;quot;last_4_vin_unit2&amp;quot; HeaderText=&amp;quot;Last 4 of Unit 2 VIN&amp;quot; SortExpression=&amp;quot;last_4_vin_unit2&amp;quot; /&amp;gt;
        
        &amp;lt;asp:TemplateField HeaderText=&amp;quot;Email&amp;quot; SortExpression=&amp;quot;email&amp;quot; &amp;gt;
        	&amp;lt;ItemTemplate&amp;gt;
        	&amp;lt;%# Eval(&amp;quot;email&amp;quot;) %&amp;gt;
        	&amp;lt;/ItemTemplate&amp;gt;
        	&amp;lt;EditItemTemplate&amp;gt;
        	&amp;lt;asp:TextBox
        		ID=&amp;quot;txtEmail&amp;quot;
        		Text=&amp;#39;&amp;lt;%# Bind(&amp;quot;email&amp;quot;) %&amp;gt;&amp;#39;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;asp:RegularExpressionValidator
        		id=&amp;quot;regEmail&amp;quot;
        		ControlToValidate=&amp;quot;txtEmail&amp;quot;
        		Text=&amp;quot;The email you have entered does not comply with the format:  xxxx@xxxx.xxx&amp;quot;
        		ValidationExpression=&amp;quot;^([0-9a-zA-Z]([-\.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$&amp;quot;
        		SetFocusOnError=&amp;quot;true&amp;quot;
        		Runat=&amp;quot;server&amp;quot; /&amp;gt;
        	&amp;lt;/EditItemTemplate&amp;gt;
        &amp;lt;/asp:TemplateField&amp;gt;

		&amp;lt;asp:BoundField DataField=&amp;quot;notes&amp;quot; HeaderText=&amp;quot;Notes&amp;quot; SortExpression=&amp;quot;notes&amp;quot; /&amp;gt;
        &amp;lt;asp:CheckBoxField DataField=&amp;quot;gift_1&amp;quot; HeaderText=&amp;quot;Recvd Gift 1&amp;quot; SortExpression=&amp;quot;gift_1&amp;quot; /&amp;gt;
        &amp;lt;asp:BoundField DataField=&amp;quot;gift_1_date&amp;quot; HeaderText=&amp;quot;Date Gift 1 Recvd&amp;quot; SortExpression=&amp;quot;gift_1_date&amp;quot; /&amp;gt;
        &amp;lt;asp:CommandField ShowInsertButton=&amp;quot;True&amp;quot; /&amp;gt;
        
      &amp;lt;/Fields&amp;gt;
      &amp;lt;FooterStyle BackColor=&amp;quot;#CCCCCC&amp;quot; /&amp;gt;
	  &amp;lt;PagerStyle BackColor=&amp;quot;#999999&amp;quot; ForeColor=&amp;quot;Black&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; /&amp;gt;
	  &amp;lt;HeaderStyle BackColor=&amp;quot;Black&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
	  &amp;lt;AlternatingRowStyle BackColor=&amp;quot;#CCCCCC&amp;quot; /&amp;gt;
    &amp;lt;/asp:DetailsView&amp;gt;
      
    &amp;lt;asp:SqlDataSource id=&amp;quot;srcPrefCustomersInsert&amp;quot; runat=&amp;quot;server&amp;quot; 
    	ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
    	providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
    	SelectCommand=&amp;quot;SELECT * FROM PCustomers WHERE cust_code=@cust_code&amp;quot; 
        InsertCommand=&amp;quot;INSERT INTO PCustomers (cust_code, last_name, first_name, join_date, amt_paid, birthday_month, birthday_day, unit1_type, last_4_vin_unit1, unit2_type, last_4_vin_unit2, email, notes, gift_1, gift_1_date) VALUES (@cust_code, @last_name, @first_name, @join_date, @amt_paid, @birthday_month, @birthday_day, @unit1_type, @last_4_vin_unit1, @unit2_type, @last_4_vin_unit2, @email, @notes, @gift_1, @gift_1_date)&amp;quot;&amp;gt;
      &amp;lt;SelectParameters&amp;gt;
        &amp;lt;asp:QueryStringParameter Name=&amp;quot;cust_code&amp;quot; QueryStringField=&amp;quot;cust_code&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
      &amp;lt;/SelectParameters&amp;gt;
      &amp;lt;InsertParameters&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;cust_code&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;last_name&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;first_name&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;join_date&amp;quot; Type=&amp;quot;DateTime&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;amt_paid&amp;quot; Type=&amp;quot;Decimal&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;birthday_month&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;birthday_day&amp;quot; Type=&amp;quot;Int16&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;unit1_type&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;last_4_vin_unit1&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;unit2_type&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;last_4_vin_unit2&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;email&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;        
        &amp;lt;asp:Parameter Name=&amp;quot;notes&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;gift_1&amp;quot; Type=&amp;quot;Boolean&amp;quot; /&amp;gt;
        &amp;lt;asp:Parameter Name=&amp;quot;gift_1_date&amp;quot; Type=&amp;quot;DateTime&amp;quot; /&amp;gt;
      &amp;lt;/InsertParameters&amp;gt;
      &amp;lt;/asp:SqlDataSource&amp;gt;
    &amp;lt;asp:SqlDataSource id=&amp;quot;srcMonths&amp;quot; runat=&amp;quot;server&amp;quot; 
    	ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
    	providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
    	SelectCommand=&amp;quot;SELECT * FROM Months ORDER BY month_number ASC&amp;quot; /&amp;gt;
    &amp;lt;asp:SqlDataSource id=&amp;quot;srcDays&amp;quot; runat=&amp;quot;server&amp;quot; 
    	ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
    	providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
    	SelectCommand=&amp;quot;SELECT * FROM Days ORDER BY days ASC&amp;quot; /&amp;gt;
    &amp;lt;asp:SqlDataSource id=&amp;quot;srcUnitTypes&amp;quot; runat=&amp;quot;server&amp;quot; 
    	ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:LHYPrefCustomerServer %&amp;gt;&amp;quot; 
    	providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; 
    	SelectCommand=&amp;quot;SELECT * FROM UnitTypes ORDER BY type_id ASC&amp;quot; /&amp;gt;

  &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: error: 26 - Error Locating Server/Instance Specified</title><link>http://forums.asp.net/thread/3562901.aspx</link><pubDate>Sun, 13 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3562901</guid><dc:creator>shantanu.gupta</dc:creator><description>&lt;div&gt;
&lt;p&gt;Here is the resolution to error 26. Check this video to configure your error.&amp;nbsp;It was a real headache for me&amp;nbsp; for a long time. But this worked.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server" rel="nofollow" target="_new"&gt;http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;&lt;a href="http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server" rel="nofollow" target="_new"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>Re: Migration from Sql Server 2000 to MYSQL</title><link>http://forums.asp.net/thread/3560097.aspx</link><pubDate>Fri, 11 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3560097</guid><dc:creator>shumaker</dc:creator><description>&lt;p&gt;I think u should use &lt;a href="http://www.dbload.com"&gt;data migration tool&lt;/a&gt; called dbload for this purpose and it use to migrate database.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Find Here :&amp;nbsp; http://www.dbload.com&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Get Access to Many Database Servers with One ADO.NET Data Provider</title><link>http://forums.asp.net/thread/3555885.aspx</link><pubDate>Wed, 09 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3555885</guid><dc:creator>Devart Software</dc:creator><description>&lt;p&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;&lt;span style="FONT-WEIGHT:normal;"&gt;Devart presents the new version of dotConnect Universal (formerly known as UniDirect.NET), data provider that &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt;&lt;font face="Arial, sans-serif"&gt;&lt;font size="2"&gt;&lt;span&gt;&lt;span style="FONT-WEIGHT:normal;"&gt;offers universal access to data of Microsoft SQL Server, Microsoft Access, Oracle, DB2, MySQL, PostgreSQL, SQLite, InterBase, and Firebird databases for the Microsoft .NET Framework.&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; 
&lt;p style="MARGIN-BOTTOM:0cm;FONT-WEIGHT:normal;"&gt;&lt;font size="2"&gt;&lt;strong&gt;dotConnect Universal 3.00&lt;/strong&gt; offers support for new Devart dotConnect data providers, that is especially important for the users who upgraded their data providers earlier and want to use dotConnect Universal with them as well. The new version also offers bundled providers with advanced connectivity options, such as http tunneling, ssl and more. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;dotConnect Universal introduces SQLite provider for working with SQLite - a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;dotConnect Universal compatibility was extended by adding support for Visual Studio 2008 and Visual Studio 2010 Beta.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Mobile edition of dotConnect Universal no longer needs dotConnect providers installed.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Among other improvements, dotConnect Universal Server Explorer integration was enhanced.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;strong&gt;Pricing and Availability&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The Single license starts from as little as $99.95, and you can always choose the edition that matches your needs best. To learn more, download trial edition, or order a license please visit Devart site:&lt;br /&gt;&lt;a href="http://forums.asp.net/modules/news/www.devart.com/dotconnect/universal/"&gt;www.devart.com/dotconnect/universal/&lt;/a&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN-BOTTOM:0cm;"&gt;&lt;font size="2"&gt;Please, feel free to download, try and write any comments and suggestions about our products!&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN-BOTTOM:0cm;"&gt;&lt;font size="2"&gt;&lt;strong&gt;About Devart&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN-BOTTOM:0cm;"&gt;&lt;strong&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;span&gt;Devart&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;span&gt; is a software development company with 11 years of experience on the software market and over 20 thousands of devoted users. &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;We specialize in providing native connectivity solutions as well as comprehensive development and management tools for the most popular databases, including Oracle, SQL Server, MySQL, PostgreSQL, InterBase, Firebird, and SQLite.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN-BOTTOM:0cm;"&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;span&gt;For additional information about Devart, visit &lt;a href="http://www.devart.com/"&gt;&lt;u&gt;&lt;font color="#800080"&gt;www.devart.com/company/&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;. &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>inserting malayalam data to blob data field</title><link>http://forums.asp.net/thread/3557396.aspx</link><pubDate>Wed, 09 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3557396</guid><dc:creator>sujithck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; I am using asp.net 3.5 framework and mysql as my database. When i am saving malayalam data in to the database having datataype blob, it saves like &amp;#39;????&amp;#39;. But when i insert the specified value directly using the mysql query browser, then i can able insert the correct malayalam value. What i am missing in it?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Sujith&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Linking To Database Error C#</title><link>http://forums.asp.net/thread/3542949.aspx</link><pubDate>Wed, 02 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3542949</guid><dc:creator>coystah</dc:creator><description>&lt;p&gt;Hey guys. &lt;/p&gt;&lt;p&gt;I&amp;#39;m having a problem with the below.&lt;/p&gt;&lt;p&gt;This code works.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre name="code" class="c-sharp"&gt;    string fi = fName.Text;&lt;br /&gt;        SqlConnection con = new SqlConnection(&lt;br /&gt;            System.Configuration.ConfigurationManager.ConnectionStrings[&amp;quot;VRUDB&amp;quot;].ConnectionString&lt;br /&gt;            //SqlDataSource1.ConnectionString&lt;br /&gt;            &lt;br /&gt;            );&lt;br /&gt;        con.Open();&lt;br /&gt;        SqlCommand sqlComm = new SqlCommand(&amp;quot;INSERT INTO Cust2 VALUES(&amp;#39;&amp;quot; + fi + &amp;quot;&amp;#39;);&amp;quot;, con);&lt;br /&gt;        SqlDataReader r = sqlComm.ExecuteReader();&lt;br /&gt;        r.Close();&lt;br /&gt;        &lt;br /&gt;        con.Close();&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; Above taking into acount a table with only one column. However when I try and edit the code to handle many columns.. it doesn&amp;#39;t. Getting error: Too many characters in character literal . I believe it;s my formatting. Could any one lend a hand to put it right? See below: &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="c-sharp"&gt;string firstn = fName.Text;&lt;br /&gt;string lastn = lName.Text;&lt;br /&gt;string dateob = dob.Text;&lt;br /&gt;string tell = telno.Text;&lt;br /&gt;string eaddy = email.Text;&lt;br /&gt;string license = licenseno.Text;&lt;br /&gt;string addy = address.Text;&lt;br /&gt;string postalc = postcode.Text;&lt;br /&gt;&lt;br /&gt;        SqlConnection con = new SqlConnection(&lt;br /&gt;            System.Configuration.ConfigurationManager.ConnectionStrings[&amp;quot;VRUDB&amp;quot;].ConnectionString&lt;br /&gt;            //SqlDataSource1.ConnectionString&lt;br /&gt;            &lt;br /&gt;            );&lt;br /&gt;        con.Open();&lt;br /&gt;        SqlCommand sqlComm = new SqlCommand(&amp;quot;INSERT INTO Customer VALUES&lt;br /&gt;(&amp;#39;&amp;quot; + firstn + &amp;quot;&amp;#39;,&amp;#39;&amp;quot; + lastn + &amp;quot;&amp;#39;,&amp;#39;&amp;quot; + dateob + &amp;quot;&amp;#39;,&amp;#39;&amp;quot;+ tell + &amp;quot;&amp;#39;,&amp;#39;&amp;quot; + eaddy + &amp;quot;&amp;#39;,&amp;#39;&amp;quot;+ license + &amp;quot;&amp;#39;,&amp;#39;&amp;quot; + addy + &amp;quot;&amp;#39;,&amp;#39;&amp;quot; + postalc + &amp;quot;&amp;#39;);&amp;quot;, con);&lt;br /&gt;        SqlDataReader r = sqlComm.ExecuteReader();&lt;br /&gt;        r.Close();&lt;br /&gt;        &lt;br /&gt;         con.Close();&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Looking for a team of junior C# .NET programmers</title><link>http://forums.asp.net/thread/3541661.aspx</link><pubDate>Tue, 01 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3541661</guid><dc:creator>DB_BEST</dc:creator><description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;
Hi, &lt;/p&gt;&lt;p&gt;I have sent you an e-mail a couple of minutes&amp;nbsp; ago. Have you any chance to review&amp;nbsp; it already?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please feel free to give me a call. I am available at 1 347 329 5468 cell, any time working hours, EST.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jenny&lt;/p&gt;&lt;p&gt;DB BEST &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>If .. else  inside sql query</title><link>http://forums.asp.net/thread/3516293.aspx</link><pubDate>Mon, 16 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3516293</guid><dc:creator>graljackal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;i&amp;#39;m migrating my web app from mysql to mssql server, but i have some querys that wont work, i already fixed most of them but i&amp;#39;m having some troubles with this one:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;MySQL ---&amp;gt; &amp;nbsp;select A.address, if(length(A.name)&amp;gt;0,A.str_name,&amp;#39;Available&amp;#39;) as name from customers&lt;/p&gt;&lt;p&gt;I can&amp;#39;t figure how to use if like this one on mssql server, any help will be appreciated&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanx.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>