<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
<title>W3Exchange : Script Forums : ASP</title>
<link>http://www.w3exchange.com</link>
<description> W3Exchange</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title>Create a Cookie in ASP in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=7924#7924</link>
<guid isPermaLink="false">7924@http://www.w3exchange.com</guid>
<description>Topic: Create a Cookie in ASP

Message: Hi,A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With ASP, you can both create and retrieve cookie values.The &#34;Response.Cookies&#34; command is used to create cookies.Note: The Response.Cookies command must appear BEFORE the html tag. In the example below, we will create a cookie named &#34;firstname&#34; and assign the value &#34;Alex&#34; to it:
Code::&#60;%
Response.Cookies("firstname")="Alex"
%&#62;
It is also possible to assign properties to a cookie, like setting a date when the cookie should expire: 
Code::&#60;%
Response.Cookies("firstname")="Alex" 
Response.Cookies("firstname").Expires=#June 10,2008#
%&#62;
Thanks
</description>
<pubDate>Thu, 22 May 2008 02:43:57 -0700</pubDate>
</item>
<item>
<title>File attachment with asp in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=7853#7853</link>
<guid isPermaLink="false">7853@http://www.w3exchange.com</guid>
<description>Topic: File attachment with asp

Message: Obviously you need to upload the file and save it first. Use any upload component to do that and then use the saved file path to attach to the email.
</description>
<pubDate>Thu, 15 May 2008 02:45:07 -0700</pubDate>
</item>
<item>
<title>File attachment with asp in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=5821#5821</link>
<guid isPermaLink="false">5821@http://www.w3exchange.com</guid>
<description>Topic: File attachment with asp

Message: I dont find problemin the script, Tey HTNL format
</description>
<pubDate>Sat, 17 Nov 2007 01:54:55 -0800</pubDate>
</item>
<item>
<title>Connect with Access Database in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=5761#5761</link>
<guid isPermaLink="false">5761@http://www.w3exchange.com</guid>
<description>Topic: Connect with Access Database

Message: Set cnn= Server.CreateObject(&#34;ADODB.Connection&#34;)cnn.Open &#34;Provider=Microsoft.Jet.OLEDB.4.0; Data Source=&#34; &#38; Server.MapPath(&#34;dbname&#34;)
</description>
<pubDate>Sat, 10 Nov 2007 04:05:23 -0800</pubDate>
</item>
<item>
<title>encrypt and decrypt query string in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=4463#4463</link>
<guid isPermaLink="false">4463@http://www.w3exchange.com</guid>
<description>Topic: encrypt and decrypt query string

Message: This code has been used to encrypt and decrypt query string .No matter what the lenght of the url is ,this code will encrypt the key and the value the query string into 25 digit  using System;using System.Collections.Generic;using System.Text;using System.Collections.Specialized;using System.Collections;using System.Web; namespace BusinessLayer{public class QueryString : NameValueCollection{private string document;public string Document{get{return document;}}public QueryString(){}public QueryString(NameValueCollection clone): base(clone){}//################################################## ###############################################//This Class Has been used to get the URl from the address browser of the page// http://www.hanusoftware.com //################################################## ###############################################//this method has been used to get the current URL of the page public static QueryString FromCurrent(){//returns the current url from the address barreturn FromUrl(HttpContext.Current.Request.Url.AbsoluteUr i);}/// &#60;summary&#62;/// This method has been used to divide the Address URl into characters chunks /// &#60;/summary&#62;/// &#60;param name=&#34;url&#34;&#62;&#60;/param&#62;/// &#60;returns&#62;&#60;/returns&#62;public static QueryString FromUrl(string url){//it breaks the address URL in array with separator of ? mark//this line breaks the Querystring and page string[] parts = url.Split(&#34;?&#34;.ToCharArray());//instantiate the class objectQueryString qs = new QueryString();//assign the page address to the variableqs.document = parts[0]; //if there is any data in arrayif (parts.Length == 1)return qs;//breaks the QueryString into characters chunks with separator mark &#38;string[] keys = parts[1].Split(&#34;&#38;&#34;.ToCharArray());foreach (string key in keys){//again breaks into chunks by + markstring[] part = key.Split(&#34;=&#34;.ToCharArray());if (part.Length == 1)qs.Add(part[0], &#34;&#34;);//adds the QueryString key and value pair to the assigned variableqs.Add(part[0], part[1]);}return qs;}/// &#60;summary&#62;/// This method clear all exceptions in the passed string/// &#60;/summary&#62;/// &#60;param name=&#34;except&#34;&#62;&#60;/param&#62;public void ClearAllExcept(string except){//calls the method to clear except ClearAllExcept(new string[] { except });}/// &#60;summary&#62;/// this is the usual method which has to call clear all exceptions/// &#60;/summary&#62;/// &#60;param name=&#34;except&#34;&#62;&#60;/param&#62;public void ClearAllExcept(string[] except){//take an arrayList ArrayList toRemove = new ArrayList();foreach (string s in this.AllKeys){foreach (string e in except){if (s.ToLower() == e.ToLower())if(!toRemove.Contains(s))toRemove.Add(s);}}foreach (string s in toRemove)this.Remove(s);}/// &#60;summary&#62;/// this method adds the key value pairs in QueryString of the URL/// &#60;/summary&#62;/// &#60;param name=&#34;name&#34;&#62;&#60;/param&#62;/// &#60;param name=&#34;value&#34;&#62;&#60;/param&#62;public override void Add(string name, string value){//checks nullability of the name if (this[name] != null)//if not null then assign value to itthis[name] = value;elsebase.Add(name, value);} public override string ToString(){return ToString(false);}/// &#60;summary&#62;/// this ethod has been used to join all the characters array to the URL /// &#60;/summary&#62;/// &#60;param name=&#34;includeUrl&#34;&#62;&#60;/param&#62;/// &#60;returns&#62;&#60;/returns&#62;public string ToString(bool includeUrl){string[] parts = new string[this.Count];string[] keys = this.AllKeys;//for each keys breaks the URL into chunksfor (int i = 0; i &#60; keys.Length; i++)parts = keys + &#34;=&#34; + HttpContext.Current.Server.UrlEncode(this[keys]);string url = String.Join(&#34;&#38;&#34;, parts);if ((url != null || url != String.Empty) &#38;&#38; !url.StartsWith(&#34;?&#34;))url = &#34;?&#34; + url;if (includeUrl)url = this.document + url;return url;}}} Software Development India
</description>
<pubDate>Mon, 02 Jul 2007 23:03:30 -0700</pubDate>
</item>
<item>
<title>Connect with Access Database in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=3372#3372</link>
<guid isPermaLink="false">3372@http://www.w3exchange.com</guid>
<description>Topic: Connect with Access Database

Message: May be following information will help you.First, import the &#34;System.Data.OleDb&#34; namespace.&#60;%@ Import Namespace=&#34;System.Data.OleDb&#34; %&#62;Then create the connection to the database using a variable with a connection string which identifies the OLE DB provider and the location of the database.db=New OleDbConnection(&#34;Provider=Microsoft.Jet.OLEDB.4.0;data source=&#34; &#38; server.mappath(&#34;xtest.mdb&#34;))it work in ASP.Net. You can try this.thanks
</description>
<pubDate>Wed, 25 Apr 2007 22:20:09 -0700</pubDate>
</item>
<item>
<title>Connect with Access Database in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=3352#3352</link>
<guid isPermaLink="false">3352@http://www.w3exchange.com</guid>
<description>Topic: Connect with Access Database

Message: I am developing a website, which updates an MS-Access 2000 database located in client's Harddisk, apart from maintaining data in the web-server.The server database is updating properly(specified thru server.mappath).How to specify connection parameters for the local database(MS Access-2000)?How to connect using ASP 3.0 or ASP.net 2003.
</description>
<pubDate>Mon, 23 Apr 2007 23:53:17 -0700</pubDate>
</item>
<item>
<title>File attachment with asp in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=150#150</link>
<guid isPermaLink="false">150@http://www.w3exchange.com</guid>
<description>Topic: File attachment with asp

Message: How is your form being set up. I don't see where it says: &#60;form action...&#62;That is what I am looking for, and almost definitely the problem. Post that line and I will set you straight.
</description>
<pubDate>Fri, 18 Aug 2006 23:05:41 -0700</pubDate>
</item>
<item>
<title>File attachment with asp in Script Forums : ASP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=86#86</link>
<guid isPermaLink="false">86@http://www.w3exchange.com</guid>
<description>Topic: File attachment with asp

Message: Hi all,I need to send a file attachment with my email to the selected users here mail sending works properly but i can't send the attached file with that can anyone help me on thishere is my coding :
Code::Dim obj
subject = Request.Form("subject")
body = Request.Form("body")

if subject &#60;&#62; "" then

str3=split(session("data"),",")
response.write(session("data"))
for i =0 to ubound(str3) 
set obj = server.CreateObject("Cdonts.Newmail") 
obj.To = str3(i)
obj.From ="mahesha@webcaresys.net" 
obj.Subject = subject
obj.Body = body 
'FreeTools = Request.Form("T2")
'obj.AttachFile(FreeTools)
obj.Send

Next 

end if

//-----------------
this is the field to fasilitate the file attachment

//-----------------------
&#60;td width="115" bgcolor="#fffdf0"&#62;&#60;font class="smalltxt"&#62;&#160;&#60;/font&#62;&#60;font class="smalltxt"&#62;Attach File&#60;/font&#62;&#60;/td&#62;
&#60;td width="495" bgcolor="#fffdf0"&#62;&#160; &#60;input type="file" name="T2" size="23" class="design"&#62;&#60;/td&#62;
//---------------------------------
Need ur help
</description>
<pubDate>Sun, 13 Aug 2006 05:41:43 -0700</pubDate>
</item>
</channel>
</rss>
