<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>ASP Free Forums - ASP Development</title>
		<link>http://forums.aspfree.com/</link>
		<description>ASP Development forum discussing ASP related topics including coding practices, ASP tips, and more. Active Server Pages (ASP) enables you to empower your HTML pages dynamically with robust scripting options.</description>
		<language>en</language>
		<lastBuildDate>Thu, 23 May 2013 11:07:38 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.aspfree.com/images/misc/rss.png</url>
			<title>ASP Free Forums - ASP Development</title>
			<link>http://forums.aspfree.com/</link>
		</image>
		<item>
			<title><![CDATA[Needs Help With ASP page That Won't Respond To Recapatcha Correctly]]></title>
			<link>http://forums.aspfree.com/asp-development-5/needs-help-asp-page-wont-respond-recapatcha-correctly-538521.html</link>
			<pubDate>Tue, 21 May 2013 20:22:20 GMT</pubDate>
			<description><![CDATA[I have built an asp web page to retrieve information from a submitted the form. It emails the results fine. But it won't display the error message when the verification words are not correct.  It still emails the results of the form. I do not want this to happen. Maybe I made a typo somewhere....]]></description>
			<content:encoded><![CDATA[<div>I have built an asp web page to retrieve information from a submitted the form. It emails the results fine. But it won't display the error message when the verification words are not correct.  It still emails the results of the form. I do not want this to happen. Maybe I made a typo somewhere. Please look at parts of my code that are in bold below.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;%Option Explicit %&gt;<br />
<br />
&lt;html&gt;<br />
<br />
&lt;body&gt;<br />
<br />
&lt;%<br />
dim Email<br />
dim message, Subject<br />
dim EmailBody, Name, State, Phone<br />
dim Profession, DateDiagnosed<br />
<b>dim recaptcha_challenge_field, recaptcha_response_field<br />
dim recaptcha_private_key, recaptcha_public_key <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
recaptcha_challenge_field&nbsp; = Request(&quot;recaptcha_challenge_field&quot;)<br />
recaptcha_response_field&nbsp;  = Request(&quot;recaptcha_response_field&quot;)<br />
recaptcha_private_key&nbsp; &nbsp; &nbsp; = &quot;----&quot;<br />
recaptcha_public_key&nbsp; &nbsp; &nbsp;  = &quot;-----------&quot;</b><br />
<br />
<b>dim cTemp<br />
cTemp = recaptcha_confirm(recaptcha_private_key, recaptcha_challenge_field, recaptcha_response_field)</b><br />
<br />
<b>If cTemp &lt;&gt; &quot;&quot; Then <br />
%&gt;<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;An error occured with the recapture wording. Please try again. <br />
&nbsp; &nbsp; &nbsp; &nbsp; Please click on the back button to enter the two words for vertification.&lt;/strong&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;% end if %&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%</b>&nbsp; - <font color="#B22222"> This will not do anything. </font><br />
<br />
If Request.Form(&quot;Submit&quot;) &lt;&gt; &quot;&quot; Then<br />
<br />
&nbsp; &nbsp; Name = Request.Form(&quot;txtName&quot;)<br />
&nbsp; &nbsp; State = Request.Form(&quot;selState&quot;)<br />
&nbsp; &nbsp; Phone = Request.Form(&quot;txtPhone&quot;)<br />
&nbsp; &nbsp; Email = Request.Form(&quot;txtemail&quot;)&nbsp; <br />
&nbsp; &nbsp; Profession = Request.Form(&quot;txtProfession&quot;)<br />
&nbsp; &nbsp; DateDiagnosed = Request.Form(&quot;txtDateDiagnosed&quot;)<br />
<br />
<br />
<br />
<b>If cTemp &lt;&gt; &quot;incorrect-captcha-sol&quot; Then </b><br />
<br />
<br />
<br />
&nbsp; dim MyMail<br />
&nbsp; Set MyMail = Server.CreateObject(&quot;CDO.Message&quot;) <br />
&nbsp; <br />
<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; EmailBody = &quot;Name: &quot; &amp; Name &amp; &quot; &quot; <br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  EmailBody = EmailBody &amp; vbCrLf &amp; vbCrLf &amp; &quot;&lt;p&gt;&lt;b&gt;State: &lt;/b&gt;&quot; &amp; State &amp; &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EmailBody = EmailBody &amp; vbCrLf &amp; vbCrLf &amp; &quot;&lt;p&gt;&lt;b&gt;Email: &lt;/b&gt;&quot; &amp; Email &amp; &quot;&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; EmailBody = EmailBody &amp; vbCrLf &amp; vbCrLf &amp; &quot;&lt;p&gt;&lt;b&gt;Day Time Phone: &lt;/b&gt;&quot; &amp; Phone &amp; &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; EmailBody = EmailBody &amp; vbCrLf &amp; vbCrLf &amp; &quot;&lt;p&gt;&lt;b&gt;Profession and Years Worked: &lt;/b&gt;&quot; &amp; Profession &amp; &quot;&quot;<br />
&nbsp; &nbsp; &nbsp; EmailBody = EmailBody &amp; vbCrLf &amp; vbCrLf &amp; &quot;&lt;p&gt;&lt;b&gt;Date Diagnosed with Lung Cancer: &lt;/b&gt;&quot; &amp; DateDiagnosed &amp; &quot;&quot;<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with MyMail&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; .From = Name &amp; &quot;&lt;&quot; &amp; Email &amp; &quot;&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; .To = &quot;&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  .Subject = &quot;Lung Cancer and Asbestos&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .HTMLBody = EmailBody<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '.TextBody = EmailBody<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Send()<br />
End With<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set MyMail = Nothing&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.redirect &quot;default.asp&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <b>&nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;p&gt;&lt;strong&gt;An error occured with the recapture wording. Please try again. <br />
&nbsp; &nbsp; &nbsp; &nbsp; Please click on the back button to enter the two words for vertification.&lt;/strong&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;%</b><font color="#FF0000"> It won't do this when the vertification words are wrong. It sends the results to the email address. </font><br />
&nbsp; &nbsp; &nbsp; &nbsp; end if <br />
&nbsp; &nbsp; &nbsp; &nbsp; end if <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' returns string the can be written where you would like the reCAPTCHA challenged placed on your page <br />
function recaptcha_challenge_writer(publickey) <br />
&nbsp; recaptcha_challenge_writer = &quot;&lt;script type=&quot;&quot;text/javascript&quot;&quot;&gt;&quot; &amp; _ <br />
&nbsp; &quot;var RecaptchaOptions = {&quot; &amp; _ <br />
&nbsp; &quot; theme : 'white',&quot; &amp; _ <br />
&nbsp; &quot; tabindex : 0&quot; &amp; _ <br />
&nbsp; &quot;};&quot; &amp; _ <br />
&nbsp; &quot;&lt;/script&gt;&quot; &amp; _ <br />
&nbsp; &quot;&lt;script type=&quot;&quot;text/javascript&quot;&quot; src=&quot;&quot;http://api.recaptcha.net/challenge?k=&quot; &amp; publickey &amp; &quot;&quot;&quot;&gt;&lt;/script&gt;&quot; &amp; _ <br />
&nbsp; &quot;&lt;noscript&gt;&quot; &amp; _ <br />
&nbsp; &quot;&lt;iframe src=&quot;&quot;http://api.recaptcha.net/noscript?k=&quot; &amp; publickey &amp; &quot;&quot;&quot; frameborder=&quot;&quot;1&quot;&quot;&gt;&lt;/iframe&gt;&lt;br&gt;&quot; &amp; _ <br />
&nbsp; &quot;&lt;textarea name=&quot;&quot;recaptcha_challenge_field&quot;&quot; rows=&quot;&quot;3&quot;&quot; cols=&quot;&quot;40&quot;&quot;&gt;&lt;/textarea&gt;&quot; &amp; _ <br />
&nbsp; &quot;&lt;input type=&quot;&quot;hidden&quot;&quot; name=&quot;&quot;recaptcha_response_field&quot;&quot; value=&quot;&quot;manual_challenge&quot;&quot;&gt;&quot; &amp; _ <br />
&nbsp; &quot;&lt;/noscript&gt;&quot; <br />
end function <br />
<br />
function recaptcha_confirm(privkey,rechallenge,reresponse) <br />
&nbsp; ' Test the captcha field <br />
&nbsp; Dim VarString <br />
&nbsp; VarString = _ <br />
&nbsp; &quot;privatekey=&quot; &amp; privkey &amp; _ <br />
&nbsp; &quot;&amp;remoteip=&quot; &amp; Request.ServerVariables(&quot;REMOTE_ADDR&quot;) &amp; _ <br />
&nbsp; &quot;&amp;challenge=&quot; &amp; rechallenge &amp; _ <br />
&nbsp; &quot;&amp;response=&quot; &amp; reresponse <br />
&nbsp; Dim objXmlHttp <br />
&nbsp; Set objXmlHttp = Server.CreateObject(&quot;Msxml2.ServerXMLHTTP&quot;) <br />
&nbsp; objXmlHttp.open &quot;POST&quot;, &quot;http://api-verify.recaptcha.net/verify&quot;, False <br />
&nbsp; objXmlHttp.setRequestHeader &quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded&quot; <br />
&nbsp; objXmlHttp.send VarString <br />
&nbsp; Dim ResponseString <br />
&nbsp; ResponseString = split(objXmlHttp.responseText, vblf) <br />
&nbsp; Set objXmlHttp = Nothing <br />
&nbsp; if ResponseString(0) = &quot;true&quot; then <br />
&nbsp; &nbsp; ' They answered correctly <br />
&nbsp; &nbsp; recaptcha_confirm = &quot;&quot; <br />
&nbsp; else <br />
&nbsp; &nbsp; ' They answered incorrectly <br />
&nbsp; &nbsp; recaptcha_confirm = ResponseString(1) <br />
&nbsp; end if <br />
end function&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
%&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>Misty</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/needs-help-asp-page-wont-respond-recapatcha-correctly-538521.html</guid>
		</item>
		<item>
			<title>Storing information in a database using ASP</title>
			<link>http://forums.aspfree.com/asp-development-5/storing-information-database-using-asp-538510.html</link>
			<pubDate>Mon, 20 May 2013 15:55:49 GMT</pubDate>
			<description><![CDATA[Good afternoon 
 
I am in the process of building a system that will enable my users to take literature orders for some of our telephone-based campaigns. 
 
So far I've successfully managed to set up a system whereby they can create a new order record and add the callers name & address details.  So...]]></description>
			<content:encoded><![CDATA[<div>Good afternoon<br />
<br />
I am in the process of building a system that will enable my users to take literature orders for some of our telephone-based campaigns.<br />
<br />
So far I've successfully managed to set up a system whereby they can create a new order record and add the callers name &amp; address details.  So far, so good.<br />
<br />
My next desire is to present them with a table containing the names of each item that they can request for the caller.  What the user would see is the name of the item, a brief description of it where appropriate, a field to enter the number of copies of that item that the caller wants and a button which would enable them to place the order.  This means that if there are 14 separate literature items available for selection, there would be 14 names, 14 descriptions, 14 quantity fields and 14 confirmation buttons.  <br />
<br />
I can get everything laid out on the page, and I can get to the point where each confirmation button will trigger the reloading of the page, with the appropriate (and hidden) ItemID value being presented.  However, I can't get my head around how to pass the quantity information along with it.<br />
<br />
Any help would be greatly appreciated (assuming I've made sense with my question.<br />
<br />
TIA<br />
<br />
<br />
<br />
Ian Henderson</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>ianbhenderson73</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/storing-information-database-using-asp-538510.html</guid>
		</item>
		<item>
			<title>Insert long string into Access Database using parametrised query in classic ASP</title>
			<link>http://forums.aspfree.com/asp-development-5/insert-long-string-into-access-database-using-parametrised-query-classic-asp-538500.html</link>
			<pubDate>Fri, 17 May 2013 13:18:51 GMT</pubDate>
			<description><![CDATA[Hi  
 
Sorry if this is a duplicate, I tried to create this post and it seems to have disappeared into the ether. 
 
I'm trying to update a classic ASP application and as part of the update I've tried to replace dynamic SQL using string concatenation with a parametrised query. 
 
The problem is...]]></description>
			<content:encoded><![CDATA[<div>Hi <br />
<br />
Sorry if this is a duplicate, I tried to create this post and it seems to have disappeared into the ether.<br />
<br />
I'm trying to update a classic ASP application and as part of the update I've tried to replace dynamic SQL using string concatenation with a parametrised query.<br />
<br />
The problem is that the parameters won't accept a value which is longer than 210 characters.<br />
<br />
I get the following error...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			ADODB.Parameter error '800a0d5d'<br />
<br />
Application uses a value of the wrong type for the current operation.<br />
<br />
/admin/Save_product_subcategories.asp, line 30
			
		<hr />
	</div>
</div>My first attempt looks like this...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">SQLString = &quot;UPDATE Product_SubCategories <br />
&nbsp; &nbsp; SET SubCategory=?, Description=? <br />
&nbsp; &nbsp; WHERE SubCategoryID=?&quot;<br />
<br />
Set courseCommand = Server.CreateObject(&quot;ADODB.Command&quot;) <br />
courseCommand.ActiveConnection = objConn<br />
courseCommand.CommandText = SQLString<br />
<br />
courseCommand.Parameters(0).value = cleanCategory <br />
courseCommand.Parameters(1).Value = cleanDescription<br />
courseCommand.Parameters(2).value = cleanSubCategoryId</code><hr />
</div>I've tried manually setting the parameter type and increasing the size of the parameter...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">courseCommand.Parameters(1).Type = 203<br />
courseCommand.Parameters(1).Size = 300<br />
courseCommand.Parameters(1).Type = adLongVarWChar</code><hr />
</div>I've also tried creating a parameter with the command.CreateParameter method but that gives the same error.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">param = courseCommand.CreateParameter(,,,,cleanDescription)<br />
'or<br />
param = courseCommand.CreateParameter(,adLongVarWChar,,,cleanDescription)<br />
'or<br />
param = courseCommand.CreateParameter(,adLongVarWChar,,300,cleanDescription)<br />
courseCommand.Parameters(1) = param</code><hr />
</div>I tried to Append the parameter instead of adding it to the collection using the array index but none of the parameters worked after that.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			Provider error '80020005'<br />
<br />
Type mismatch.<br />
<br />
/admin/Save_product_subcategories.asp, line 31
			
		<hr />
	</div>
</div>I'm beginning to think that my only option is to go back to dynamic sql.<br />
<br />
Thanks<br />
Ben</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>B3nCr</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/insert-long-string-into-access-database-using-parametrised-query-classic-asp-538500.html</guid>
		</item>
		<item>
			<title>How to display All States in a Dropdown box</title>
			<link>http://forums.aspfree.com/asp-development-5/how-display-all-states-dropdown-box-538489.html</link>
			<pubDate>Wed, 15 May 2013 00:41:10 GMT</pubDate>
			<description>Hey guys i need some help please :) 
I need to display all the 50 states in a drop-down box instead of a check-box so that it makes it easy for the user to select his/her state 
I already did some coding but i need to do some editing ... i mean change the check box to a drop down list: 
 
 
Code:...</description>
			<content:encoded><![CDATA[<div>Hey guys i need some help please :)<br />
I need to display all the 50 states in a drop-down box instead of a check-box so that it makes it easy for the user to select his/her state<br />
I already did some coding but i need to do some editing ... i mean change the check box to a drop down list:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">dim rs<br />
dim state<br />
dim rss<br />
dim mp, rm, wb, srp<br />
<br />
<br />
set dbconn = Server.CreateObject(&quot;ADODB.Connection&quot;)<br />
dbconn.ConnectionString = strConn<br />
dbconn.Open<br />
<br />
'response.write &quot;&lt;DIV style='position: absolute; top:200px; left:550px; width:300px; height:25px'&gt;&quot;<br />
'response.write &quot;&lt;P&gt;&amp;emsp;&amp;emsp;&amp;emsp;&lt;input type='submit' value='Select States'&gt;&lt;/div&gt;&lt;/form&gt;&quot; <br />
<br />
sql = &quot;select State from Prospect Group by State Order by State ;&quot;<br />
<br />
set rs = dbconn.execute(sql)<br />
<br />
'Select Source<br />
response.write &quot;&lt;FORM NAME='x' METHOD='POST' ACTION='Getlistbe.asp'&gt;&quot;<br />
<br />
'Product<br />
response.write &quot;&lt;select Name='Product' Size='1'&gt;&quot;<br />
response.write&quot;&lt;option Value='Select'&gt;Select Product&lt;/Option&gt;&quot;<br />
response.write &quot;&lt;Option Value='MP'&gt;MP&lt;/option&gt;&quot;<br />
response.write &quot;&lt;Option Value='RM'&gt;RM&lt;/option&gt;&quot;<br />
response.write &quot;&lt;Option Value='WB'&gt;WB&lt;/option&gt;&quot;<br />
response.write &quot;&lt;Option Value='SRP'&gt;SRP&lt;/option&gt;&lt;/select&gt;&lt;P&gt;&quot;<br />
response.write &quot;&lt;select Name='Source' Size='1'&gt;&quot;<br />
response.write&quot;&lt;option Value='Select'&gt;Select Source&lt;/Option&gt;&quot;<br />
<br />
do while NOT rss.EOF<br />
<br />
'Select Product<br />
response.write &quot;&lt;FORM NAME='x' METHOD='POST' ACTION='Getlistbe.asp'&gt;&quot;<br />
<br />
<br />
'Source<br />
response.write &quot;&lt;Option &quot; &amp; &quot; Value='&quot; &amp; rss(&quot;Source&quot;) &amp; &quot;'&gt;&quot; &amp; rss(&quot;Source&quot;) &amp; &quot; &lt;/option&gt;&quot;<br />
<br />
<br />
<br />
rss.MoveNext<br />
loop<br />
response.write &quot;&lt;/Select&gt;&lt;P&gt;&quot;<br />
rss.close<br />
set rss=nothing <br />
<br />
do while not rs.eof <br />
<br />
response.write rs (&quot;State&quot;) &amp; &quot;&lt;input type='checkbox' value='~&quot; &amp; rs (&quot;State&quot;) &amp; &quot;~' name='State'&gt;&lt;br&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; rs.MoveNext<br />
loop<br />
<br />
response.write &quot;&lt;input type ='Submit' value = 'Create list'&gt;&lt;/form&gt;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; set rs = nothing <br />
&nbsp; &nbsp; &nbsp; &nbsp; dbconn.close<br />
&nbsp; &nbsp; &nbsp; &nbsp; set dbconn = nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; response.write &quot;&quot;</code><hr />
</div><br />
<br />
Can someone help please <br />
Thank you guys :)</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>Sammy_Alonzo</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/how-display-all-states-dropdown-box-538489.html</guid>
		</item>
		<item>
			<title>Simplify SQL Statement</title>
			<link>http://forums.aspfree.com/asp-development-5/simplify-sql-statement-538487.html</link>
			<pubDate>Tue, 14 May 2013 02:40:25 GMT</pubDate>
			<description><![CDATA[If I have this array of numbers, is there a way to simplify this in the sql statement rather than having to repeat it like the sql statement below? 
(1,2,5,7,9,11,12,18,20,21) 
 
 
Code: 
--------- 
SQL = "select * from TableName where  id= '" & 1 &" ' or  id= '" & 2 &" ' or  id= '" & 5 &" ' or id=...]]></description>
			<content:encoded><![CDATA[<div>If I have this array of numbers, is there a way to simplify this in the sql statement rather than having to repeat it like the sql statement below?<br />
(1,2,5,7,9,11,12,18,20,21)<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">SQL = &quot;select * from TableName where&nbsp; id= '&quot; &amp; 1 &amp;&quot; ' or&nbsp; id= '&quot; &amp; 2 &amp;&quot; ' or&nbsp; id= '&quot; &amp; 5 &amp;&quot; ' or id= '&quot; &amp; 7 &amp;&quot; ' or&nbsp; id= '&quot; &amp; 9 &amp;&quot; ' or&nbsp; id= '&quot; &amp; 11 &amp;&quot; ' or&nbsp; id= '&quot; &amp; 12 &amp;&quot; ' or&nbsp; id= '&quot; &amp; 18 &amp;&quot; ' or&nbsp; id= '&quot; &amp; 20 &amp;&quot; ' or&nbsp; id= '&quot; &amp; 21 &amp;&quot; ' order by id&quot;</code><hr />
</div>Thank You.</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>phoenixaz</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/simplify-sql-statement-538487.html</guid>
		</item>
		<item>
			<title>Anchor tag downloads file but cannot open in separate window</title>
			<link>http://forums.aspfree.com/asp-development-5/anchor-tag-downloads-file-but-cannot-open-separate-window-538486.html</link>
			<pubDate>Tue, 14 May 2013 00:00:24 GMT</pubDate>
			<description><![CDATA[Howdy all. 
 
In my project, have an ASP page that displays the file name in an HTML anchor tag. 
I can download the file but cannot open it in a separate window even using the target="_blank" attribute. 
Adding a type="image/jpeg" does nothing. 
 
Appreciate your suggestions. 
 
Thanks,]]></description>
			<content:encoded><![CDATA[<div>Howdy all.<br />
<br />
In my project, have an ASP page that displays the file name in an HTML anchor tag.<br />
I can download the file but cannot open it in a separate window even using the target=&quot;_blank&quot; attribute.<br />
Adding a type=&quot;image/jpeg&quot; does nothing.<br />
<br />
Appreciate your suggestions.<br />
<br />
Thanks,<br />
<br />
Rey<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;td id=&quot;imgFile1&quot;&gt;&amp;nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;% response.write &quot;&lt;a href=&quot; &amp; Server.Mappath(&quot;glupload/&quot; &amp; strImageFile1) &amp; &quot; target=&quot;&quot;&quot;&quot;_blank&quot;&quot;&quot;&quot; type=&quot;&quot;image/jpeg&quot;&quot; &quot; &amp; &quot;&gt;&quot; &amp; strImageFile1 &amp; &quot;&lt;/a&gt;&quot; %&gt;&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; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;/td&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>reycbx</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/anchor-tag-downloads-file-but-cannot-open-separate-window-538486.html</guid>
		</item>
		<item>
			<title>Very long statement with many underscores</title>
			<link>http://forums.aspfree.com/asp-development-5/very-long-statement-many-underscores-538484.html</link>
			<pubDate>Mon, 13 May 2013 16:40:07 GMT</pubDate>
			<description>Hi, 
 
I got error because (I think) of a long statement with more than 30 underscores. I tried to reduce the number of the underscores and the error disappeared. 
After that, I found a even long statement with even more underscores (50, I think) in a function of another page, but without causes...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I got error because (I think) of a long statement with more than 30 underscores. I tried to reduce the number of the underscores and the error disappeared.<br />
After that, I found a even long statement with even more underscores (50, I think) in a function of another page, but without causes any error! Do you know why?<br />
<br />
Thank you in advance.</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>makth</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/very-long-statement-many-underscores-538484.html</guid>
		</item>
		<item>
			<title><![CDATA[windows/asp -> create: forum + chat + social network]]></title>
			<link>http://forums.aspfree.com/asp-development-5/windows-asp-create-forum-chat-social-network-538482.html</link>
			<pubDate>Mon, 13 May 2013 06:40:03 GMT</pubDate>
			<description>Dear all. 
 
I want to add to a site that work on windows/asp: 
 
1. forum  
2. chat  
3. social network. 
 
Is there ready made script or plugins, or should i do the programming.</description>
			<content:encoded><![CDATA[<div>Dear all.<br />
<br />
I want to add to a site that work on windows/asp:<br />
<br />
1. forum <br />
2. chat <br />
3. social network.<br />
<br />
Is there ready made script or plugins, or should i do the programming.<br />
<br />
If i need to do the programming: any leads or examples how i do the 3 above: forum + chat + social network.<br />
<br />
Regards,<br />
<br />
Edi</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>ppp2hhh</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/windows-asp-create-forum-chat-social-network-538482.html</guid>
		</item>
		<item>
			<title>Reporting solution For ASP.NET</title>
			<link>http://forums.aspfree.com/asp-development-5/reporting-solution-asp-net-538474.html</link>
			<pubDate>Fri, 10 May 2013 09:29:18 GMT</pubDate>
			<description>Hi, 
 Tell Me the which is best solution for *Reporting in  ASP.net?* 
 In Reporting i have to display images,tables,cross tables,chart, sub report. 
 Also any open source reporting tool. 
Requires fast rendering ,exporting in many formats.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
 Tell Me the which is best solution for <b>Reporting in  ASP.net?</b><br />
 In Reporting i have to display images,tables,cross tables,chart, sub report.<br />
 Also any open source reporting tool.<br />
Requires fast rendering ,exporting in many formats.</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>SAGAR_JAYBHAY</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/reporting-solution-asp-net-538474.html</guid>
		</item>
		<item>
			<title>How to Delete Bad Emails From....</title>
			<link>http://forums.aspfree.com/asp-development-5/how-delete-bad-emails-538468.html</link>
			<pubDate>Wed, 08 May 2013 02:41:18 GMT</pubDate>
			<description>Hi guys...i need help please  
i need to create a program that can delete bad emails from a table called Prospect using an SQL delete statement ...  
But before doing that...the email addresses are actually  in an excel spread sheet...so before i import the emails into my database i need to spin...</description>
			<content:encoded><![CDATA[<div>Hi guys...i need help please <br />
i need to create a program that can delete bad emails from a table called Prospect using an SQL delete statement ... <br />
But before doing that...the email addresses are actually  in an excel spread sheet...so before i import the emails into my database i need to spin through the file and then delete from Prospect Table <br />
<br />
So, i was working on this little code but its seems its not really deleting anything...<br />
<br />
dim Email<br />
dim rs<br />
dim fso, <br />
<br />
set dbconn = Server.CreateObject(&quot;ADODB.Connection&quot;)<br />
dbconn.ConnectionString = strConn<br />
dbconn.Open<br />
<br />
<br />
sql = &quot;DELETE FROM Prospect WHERE email = '&quot; &amp; email &amp; &quot;';&quot;<br />
set rs=dbconn.execute(sql)<br />
Do while not rs.eof<br />
<br />
response.write rs (&quot;Email&quot;) &amp; &quot;&lt;br&gt;&quot;<br />
f.writeline rs (&quot;Email&quot;) <br />
rs.movenext<br />
<br />
<br />
Loop <br />
f.close<br />
set fso=nothing<br />
rs.close<br />
set rs=nothing<br />
<br />
<br />
dbconn.close<br />
set dbconn=nothing<br />
<br />
<br />
Help guys..im kinda stuck <br />
Thank you</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>Sammy_Alonzo</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/how-delete-bad-emails-538468.html</guid>
		</item>
		<item>
			<title>asp #include, and error console for asp?</title>
			<link>http://forums.aspfree.com/asp-development-5/asp-include-error-console-asp-538464.html</link>
			<pubDate>Tue, 07 May 2013 09:59:49 GMT</pubDate>
			<description><![CDATA[I've been doing html and javascript the last few months but I have very little experience with serverside scripting. I'm trying to get a grip of asp now but #include doesn't seem to work for some reason. I'm using IIS 7.5 (included with Win 7). 
 
I have two .asp files in ..../wwwroot/MyWeb...]]></description>
			<content:encoded><![CDATA[<div>I've been doing html and javascript the last few months but I have very little experience with serverside scripting. I'm trying to get a grip of asp now but #include doesn't seem to work for some reason. I'm using IIS 7.5 (included with Win 7).<br />
<br />
I have two .asp files in ..../wwwroot/MyWeb directory. I'm trying to #include FiboRecursive.asp in a file called test.asp. Both files work separately if I get rid of the #include. I have tried both virtual and file includes.<br />
<br />
This is test.asp:<br />
<br />
&lt;%@ language=&quot;javascript&quot; %&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;p&gt;<br />
&lt;% //Response.Write(Request.ServerVariables(&quot;http_user_  agent&quot;));%&gt;<br />
&lt;/p&gt;<br />
&lt;p&gt;<br />
&lt;%<br />
var remoteAddr = Request.ServerVariables(&quot;REMOTE_ADDR&quot;);<br />
remoteAddr += &quot;&quot;;<br />
if ((remoteAddr.length &gt; 5) &amp;&amp; (remoteAddr.substr(0,7)==&quot;140.114&quot;) ) {<br />
    Response.Write(&quot;Hello there Tsingda student!&quot;);<br />
    }<br />
    else {<br />
    Response.Write(&quot;You're not a Tsingda student!&quot;);<br />
    }<br />
%&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;form action=&quot;./FiboRecursive.asp&quot; method=&quot;post&quot;&gt;<br />
&lt;input type=&quot;submit&quot; value=&quot;Calculate Fibbonacci numbers!&quot; /&gt;<br />
&lt;/form&gt;<br />
<br />
&lt;!--#INCLUDE FILE=&quot;fiborecursive.asp&quot; --&gt; <br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
<br />
This is the code in FiboRecursive.asp:<br />
<br />
&lt;%@ language=&quot;javascript&quot; %&gt;<br />
&lt;%<br />
Response.Write(&quot;Let's calculate some Fibbonacci numbers!&quot;);<br />
%&gt;<br />
<br />
I'm sure it's basic and stupid, but please help me out!<br />
<br />
Edit: Another thing: I always use web developer tools (error console) in firefox to check for errors in my code, but obvously that doesn't work too well when doing server side stuff. Any way to get some hints as to what's wrong from a console or similar?</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>Jack Hard</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/asp-include-error-console-asp-538464.html</guid>
		</item>
		<item>
			<title>301 and 404 re-directs on a Windows server</title>
			<link>http://forums.aspfree.com/asp-development-5/301-404-re-directs-windows-server-538458.html</link>
			<pubDate>Thu, 02 May 2013 20:17:19 GMT</pubDate>
			<description>I have a client with a fairly large shopping cart.  
 
Over the past few months they have been deleting a large number of pages from the website(500+). 
This is beginning to create some indexing issues so we need to do 301 and 404 re-directs for the search engines. 
 
The site is ASP and is hosted...</description>
			<content:encoded><![CDATA[<div>I have a client with a fairly large shopping cart. <br />
<br />
Over the past few months they have been deleting a large number of pages from the website(500+).<br />
This is beginning to create some indexing issues so we need to do 301 and 404 re-directs for the search engines.<br />
<br />
The site is ASP and is hosted on a server using Windows Server IIS ver6.<br />
We have been told by the hosting company that the re-directs can only be done one at a time.<br />
This is not a practical solution in terms of the client's resources.<br />
<br />
Is there a faster, easier way to create this many re-directs on a Windows server. <br />
<br />
I am not a programmer but have been told that with PHP you can write scripts to speed up the process. However, you cannot do this with ASP.<br />
<br />
Any suggestions or comments would be greatly appreciated. My apologies if this is not the place for me to be asking this question.</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>steve_e</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/301-404-re-directs-windows-server-538458.html</guid>
		</item>
		<item>
			<title>Reset (change) SessionID without Session.Abandon()</title>
			<link>http://forums.aspfree.com/asp-development-5/reset-change-sessionid-without-session-abandon-538457.html</link>
			<pubDate>Thu, 02 May 2013 09:17:12 GMT</pubDate>
			<description><![CDATA[Hi, 
 
It's possible to reset (change) the SessionID without execute the Session.Abandon()? 
 
thanks in advance.]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
It's possible to reset (change) the SessionID without execute the Session.Abandon()?<br />
<br />
thanks in advance.</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>Kyriakos</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/reset-change-sessionid-without-session-abandon-538457.html</guid>
		</item>
		<item>
			<title>How to move an email address</title>
			<link>http://forums.aspfree.com/asp-development-5/how-move-email-address-538456.html</link>
			<pubDate>Wed, 01 May 2013 23:49:14 GMT</pubDate>
			<description><![CDATA[Hey guys i'm kinda stuck on something simple....I'm developing a web application 
that ask the user to enter his/her email address & after s/he hit the search  button 
i want to place his/her email on another table and delete it from the current table : 
 
this is the code : but when i execute it...]]></description>
			<content:encoded><![CDATA[<div>Hey guys i'm kinda stuck on something simple....I'm developing a web application<br />
that ask the user to enter his/her email address &amp; after s/he hit the search  button<br />
i want to place his/her email on another table and delete it from the current table :<br />
<br />
this is the code : but when i execute it jumps straight to this message <b>&quot;Email is NOT in Prospect Table&quot;</b> and the email still exist on the prospect table without deleting it<br />
<br />
<br />
dim emailAddress, strEmail<br />
<br />
emailAddress = Request.Form(&quot;Email&quot;)<br />
<br />
set dbconn = Server.CreateObject(&quot;ADODB.Connection&quot;)<br />
dbconn.ConnectionString = strConn<br />
dbconn.Open<br />
<br />
<br />
on error resume next<br />
sql = &quot;SELECT Email FROM Prospect WHERE Email = '&quot; &amp; emailAddress &amp; &quot;';&quot;<br />
rs = dbconn.execute(sql)<br />
<br />
strEmail = rs(&quot;Email&quot;)<br />
<br />
'If the above statement returns an error, the Err.number value  will not be 0<br />
if Err.number &lt;&gt; 0 Then<br />
	set rs = nothing<br />
	dbconn.close<br />
	set dbconn = nothing<br />
	response.write &quot;Email is NOT in Prospect Table&quot;<br />
	response.end<br />
	stop<br />
end if<br />
<br />
<b><br />
'Place the email address into the DontSend Table</b> <b>Comment</b><br />
sql = &quot;INSERT INTO DontSend (Email, Name, Date) VALUES ('&quot; &amp; strEmail &amp; &quot;', 'unknown', '&quot; &amp; date() &amp; &quot;');&quot;<br />
dbconn.execute(sql)<br />
<br />
<b>'Now Delete the email address from the Prospect table</b> <b>Comemnt</b><br />
sql = &quot;DELETE FROM Prospect WHERE Email = '&quot; &amp; strEmail &amp; &quot;';&quot;<br />
dbconn.execute(sql)<br />
<br />
dbconn.close<br />
set dbconn = nothing<br />
<br />
Can anyone please help....??? <br />
Thank you</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>Sammy_Alonzo</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/how-move-email-address-538456.html</guid>
		</item>
		<item>
			<title>Changing website content dynamically</title>
			<link>http://forums.aspfree.com/asp-development-5/changing-website-content-dynamically-538448.html</link>
			<pubDate>Tue, 30 Apr 2013 02:36:42 GMT</pubDate>
			<description>Hello everyone, 
 
 I am a newbie in ASP.net and am developing a website on astrology.   
For the front page, some section (div) of the page needs to change dynamically based on change of date. The corresponding content needs to be displayed as the current date change falls into new Zodiac sign....</description>
			<content:encoded><![CDATA[<div>Hello everyone,<br />
<br />
 I am a newbie in ASP.net and am developing a website on astrology.  <br />
For the front page, some section (div) of the page needs to change dynamically based on change of date. The corresponding content needs to be displayed as the current date change falls into new Zodiac sign. Please guide me on this.  <br />
<br />
Thanks in advance :)</div>

]]></content:encoded>
			<category domain="http://forums.aspfree.com/asp-development-5/">ASP Development</category>
			<dc:creator>aspbeginner01</dc:creator>
			<guid isPermaLink="true">http://forums.aspfree.com/asp-development-5/changing-website-content-dynamically-538448.html</guid>
		</item>
	</channel>
</rss>
