<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>ASP.net web development's topics - tribe.net</title>
  <link rel="alternate" href="http://aspnet.tribe.net/threads/atom" />
  <subtitle>Tribe.net. Local Connections</subtitle>
  <entry>
    <title>graphics in asp</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/a5d6d0a9-c84c-46c5-8535-cfa4193b7dc9" />
    <author>
      <name>inchoate</name>
    </author>
    <id>http://aspnet.tribe.net/thread/a5d6d0a9-c84c-46c5-8535-cfa4193b7dc9</id>
    <updated>2008-08-09T07:49:21Z</updated>
    <published>2008-08-09T07:49:21Z</published>
    <summary type="html">&lt;div&gt;I followed a tutorial for drawing graphics in an asp page but there is an error.(may look familiar)
&lt;br/&gt;
&lt;br/&gt;Here's my page_Load code:
&lt;br/&gt;
&lt;br/&gt;            Response.ContentType = "image/jpeg";    
&lt;br/&gt;            
&lt;br/&gt;            Bitmap objBitmap;
&lt;br/&gt;            Graphics objGraphics;
&lt;br/&gt;            
&lt;br/&gt;            objBitmap = new Bitmap(200, 200);
&lt;br/&gt;            objGraphics = Graphics.FromImage(objBitmap);
&lt;br/&gt;
&lt;br/&gt;            objGraphics.DrawLine(new Pen(System.Drawing.Color.Red), 0, 0, 200, 200);
&lt;br/&gt;
&lt;br/&gt;            objBitmap.Save(Response.OutputStream, ImageFormat.Gif);
&lt;br/&gt;
&lt;br/&gt;            objBitmap.Dispose();
&lt;br/&gt;            objGraphics.Dispose();
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;the error is :   the image " http://localhost:1653/Default.aspx \" cannot be displayed because of an error.
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;What is missing that is causing the problem?
&lt;br/&gt;Do I actually have to have an image load from someplace?   
&lt;br/&gt;I'm not trying to do html text at the same time.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>inchoate</dc:creator>
    <dc:date>2008-08-09T07:49:21Z</dc:date>
  </entry>
  <entry>
    <title>Does anybody know?</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/0f1a678a-d07c-4d2e-9a88-8e9b3d256074" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/0f1a678a-d07c-4d2e-9a88-8e9b3d256074</id>
    <updated>2008-01-03T02:15:49Z</updated>
    <published>2006-06-06T15:35:47Z</published>
    <summary type="html">&lt;div&gt;Does anyone know the answer to my last question? 
&lt;br/&gt;
&lt;br/&gt;Has anyone ever used the FreeTextBox control?  If so ...how can you use it with a database?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-06-06T15:35:47Z</dc:date>
  </entry>
  <entry>
    <title>How to create asp.net pages dynamically?</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/e57532e2-4bcf-4e50-b11e-46d52dc97158" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/e57532e2-4bcf-4e50-b11e-46d52dc97158</id>
    <updated>2008-01-03T02:14:10Z</updated>
    <published>2007-03-01T20:31:17Z</published>
    <summary type="html">&lt;div&gt;Does anyone know how to give a user the option to create new pages to their website and then have that page then be reflected in the sitemap?
&lt;br/&gt;
&lt;br/&gt;Thanks,
&lt;br/&gt;
&lt;br/&gt;Grant&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2007-03-01T20:31:17Z</dc:date>
  </entry>
  <entry>
    <title>question about isPostBack</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/cb700375-eb6b-4674-81ee-90fd7cece4a1" />
    <author>
      <name>Namzu</name>
    </author>
    <id>http://aspnet.tribe.net/thread/cb700375-eb6b-4674-81ee-90fd7cece4a1</id>
    <updated>2007-11-02T10:32:54Z</updated>
    <published>2007-10-29T09:28:55Z</published>
    <summary type="html">&lt;div&gt;I'm working on an application where a login is required (our classes with asp.net hasn't started yet so this project is a bit weird). when i send the information by pressing the button with a onclick event the information gets sent and the login is correct, _but_ to get back to page_load i need to send the infortmation once again and that makes me feel that i've been missing something. do i have to add something in the method for my button so the page loads again or should i just post all code to make some sense? ;) 
&lt;br/&gt;
&lt;br/&gt;in page_load:
&lt;br/&gt;
&lt;br/&gt;if(isPostBack)
&lt;br/&gt;  {
&lt;br/&gt;    //some code
&lt;br/&gt;  }
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 3 replies
		&lt;/div&gt;</summary>
    <dc:creator>Namzu</dc:creator>
    <dc:date>2007-10-29T09:28:55Z</dc:date>
  </entry>
  <entry>
    <title>Need front end developer - CSS, Javascript, xhtml</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/ec5348e3-cd15-4bce-8a1e-e66d30d2a61f" />
    <author>
      <name>tristram</name>
    </author>
    <id>http://aspnet.tribe.net/thread/ec5348e3-cd15-4bce-8a1e-e66d30d2a61f</id>
    <updated>2007-04-10T17:19:17Z</updated>
    <published>2007-04-10T17:19:17Z</published>
    <summary type="html">&lt;div&gt;I am looking for someone to work on a project with me that includes coding front end using CSS, Javascript, XHTML etc to work seamlessly with dynamically generated content from a .NET architecture.
&lt;br/&gt;
&lt;br/&gt;Please no beginners or novice skills.
&lt;br/&gt;
&lt;br/&gt;The overview of tasks include;
&lt;br/&gt;
&lt;br/&gt;Cutting up PS file and building it using XHTML/HTML/CSS
&lt;br/&gt;Working directly with Designer to adhere to established look and feel
&lt;br/&gt;Optimizing CSS style implementation utilizing global CSS files as well as custom isolated CSS files - whichever works best.
&lt;br/&gt;Making sure front end is rendering .NET content properly and playing nice.
&lt;br/&gt;Some SEO skills would be really great as well.
&lt;br/&gt;
&lt;br/&gt;please send email to tris@strategybase.com
&lt;br/&gt;
&lt;br/&gt;Thanks,
&lt;br/&gt;
&lt;br/&gt;Tris &lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>tristram</dc:creator>
    <dc:date>2007-04-10T17:19:17Z</dc:date>
  </entry>
  <entry>
    <title>ASP.NET</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/05662e9b-cc20-4895-bf3b-3b1ed2716999" />
    <author>
      <name>vikram</name>
    </author>
    <id>http://aspnet.tribe.net/thread/05662e9b-cc20-4895-bf3b-3b1ed2716999</id>
    <updated>2006-10-13T01:56:09Z</updated>
    <published>2006-10-06T11:03:54Z</published>
    <summary type="html">&lt;div&gt;HI.
&lt;br/&gt;I am an Asp.Net developer. Working in asp.net 2.0 Here is my WEBSITE
&lt;br/&gt;http://www.vikramlakhotia.com/HomePage.aspx
&lt;br/&gt;
&lt;br/&gt;Hope this helps
&lt;br/&gt;Thanks
&lt;br/&gt;Vikram&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>vikram</dc:creator>
    <dc:date>2006-10-06T11:03:54Z</dc:date>
  </entry>
  <entry>
    <title>nothing appears</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/78b778f2-7e9d-45e1-913a-064a3e296c91" />
    <author>
      <name>Joe</name>
    </author>
    <id>http://aspnet.tribe.net/thread/78b778f2-7e9d-45e1-913a-064a3e296c91</id>
    <updated>2006-08-26T13:39:32Z</updated>
    <published>2006-08-14T18:14:20Z</published>
    <summary type="html">&lt;div&gt;Ok so its been 3 years since i've done any asp and it seems I have forgotten even how to set it up on my computer so I can run the pages.  I've gotten my computer at home to at least let me create a new blank asp.net web app using visual studio.net 2003.  But when I go to add anything on the form besides text it doesn't show when I go to view the page.  My first question is why are my controls not showing up?  Second would be, does anybody know of a site or a resource I would look at to tell me what I need to install/configure on my computer to be able to create these pages?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Joe</dc:creator>
    <dc:date>2006-08-14T18:14:20Z</dc:date>
  </entry>
  <entry>
    <title>Login doesn't work</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/628e81d8-6a77-4687-ac16-085d54a376f2" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/628e81d8-6a77-4687-ac16-085d54a376f2</id>
    <updated>2006-07-11T20:41:31Z</updated>
    <published>2006-05-08T18:44:59Z</published>
    <summary type="html">&lt;div&gt;Hi,
&lt;br/&gt;
&lt;br/&gt;I created a simple login form and when I run it on my local machine it works ...but when I upload it to my web host it doesn't work.  This is the error I get:
&lt;br/&gt;
&lt;br/&gt;An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
&lt;br/&gt;
&lt;br/&gt;I was told that I get this because the web host doesn't have sql express on their server.  Does anyone have any ideas how to fix this....and should I just abandon using sql express in the future, or can I use sql express to make my databases and then just convert them to sql 2000 afterward?
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 3 replies
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-05-08T18:44:59Z</dc:date>
  </entry>
  <entry>
    <title>User Profile</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/11f3a57a-748d-4a5b-bf75-f8d6e7b14b0c" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/11f3a57a-748d-4a5b-bf75-f8d6e7b14b0c</id>
    <updated>2006-05-22T20:27:22Z</updated>
    <published>2006-05-22T20:27:22Z</published>
    <summary type="html">&lt;div&gt;I have a database that stores users profiles...just one admin and the rest are anonymous.
&lt;br/&gt;Is there a way to Load the admin settings so that anonymous users can see them?
&lt;br/&gt;
&lt;br/&gt;I have a theme button that shows up only when admin is logged in ....it changes the theme but when I log out nothing is changed.
&lt;br/&gt;
&lt;br/&gt;How do I fix this?
&lt;br/&gt;
&lt;br/&gt;Thanks,
&lt;br/&gt;Grant&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-05-22T20:27:22Z</dc:date>
  </entry>
  <entry>
    <title>Using Themes in dot net</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/c58976f3-b608-4bb1-adbf-40f90f6b5829" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/c58976f3-b608-4bb1-adbf-40f90f6b5829</id>
    <updated>2006-05-18T19:40:07Z</updated>
    <published>2006-05-17T22:03:00Z</published>
    <summary type="html">&lt;div&gt;I am trying to figure out how to implement themes on a site so that an admin user can login, select a different theme and save that choice so that the entire site will change.  Of course anonymous users can't change anything but they must be able to view the changes made by admin....any suggestions....would I still use profile?
&lt;br/&gt;
&lt;br/&gt;Thanks for the help&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-05-17T22:03:00Z</dc:date>
  </entry>
  <entry>
    <title>How to logout a user that navigates to another link or site.</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/42023fec-e2b1-4c81-af4f-e417d1e5fd7c" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/42023fec-e2b1-4c81-af4f-e417d1e5fd7c</id>
    <updated>2006-05-10T19:32:07Z</updated>
    <published>2006-05-09T17:50:38Z</published>
    <summary type="html">&lt;div&gt;I have managed to figure out which database I can use with roles, membership etc.  I can login as admin and then when I click another link or go to another site and come back to the page I am still logged in ....how do you fix this?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-05-09T17:50:38Z</dc:date>
  </entry>
  <entry>
    <title>Contact form using asp.net 2.0</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/20382ca7-b3ef-4d32-832a-f41b8cca2435" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/20382ca7-b3ef-4d32-832a-f41b8cca2435</id>
    <updated>2006-05-04T12:22:13Z</updated>
    <published>2006-05-03T14:09:11Z</published>
    <summary type="html">&lt;div&gt;I have figured out how to send the info from my form to my email but I get 2 emails in my inbox.  Is this from postback and how would I fix this.  My other problem is I don't even know where to start with getting that same info to insert into my database.  
&lt;br/&gt;
&lt;br/&gt;My code for sendmail is:
&lt;br/&gt;
&lt;br/&gt; Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
&lt;br/&gt;
&lt;br/&gt;        'create the mail message
&lt;br/&gt;
&lt;br/&gt;        Dim message As New MailMessage()
&lt;br/&gt;
&lt;br/&gt;        'set the addresses
&lt;br/&gt;
&lt;br/&gt;        message.To.Add("myemail@mysite.com")
&lt;br/&gt;
&lt;br/&gt;        'set the content
&lt;br/&gt;
&lt;br/&gt;        message.Subject = " Website Contact Form"
&lt;br/&gt;
&lt;br/&gt;        message.Body = ("Name: ") &amp;amp; (txtName.Text) &amp;amp; ("&amp;amp;lt;br&gt;") &amp;amp; ("Email: ") &amp;amp; (txtEmail.Text) &amp;amp; ("&amp;amp;lt;br&gt;") &amp;amp; ("How they found us: ") &amp;amp; (txtReferer.Text) &amp;amp; ("&amp;amp;lt;br&gt;") &amp;amp; ("Comments: ") &amp;amp; (txtComments.Text)
&lt;br/&gt;        
&lt;br/&gt;        
&lt;br/&gt;
&lt;br/&gt;        'Set the format of the mail message body as HTML
&lt;br/&gt;
&lt;br/&gt;        message.IsBodyHtml = True
&lt;br/&gt;
&lt;br/&gt;        'Set the priority of the mail message to normal
&lt;br/&gt;
&lt;br/&gt;        message.Priority = MailPriority.Normal
&lt;br/&gt;
&lt;br/&gt;        'set a new instance of SmtpClient
&lt;br/&gt;
&lt;br/&gt;        Dim smtp As New SmtpClient()
&lt;br/&gt;
&lt;br/&gt;        'send the message
&lt;br/&gt;
&lt;br/&gt;        smtp.Send(message)
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;        pnlForm.Visible = False
&lt;br/&gt;        pnlSuccess.Visible = True
&lt;br/&gt;    End Sub
&lt;br/&gt;
&lt;br/&gt;If someone could help that would be great.  Thanks.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-05-03T14:09:11Z</dc:date>
  </entry>
  <entry>
    <title>Two Jobs in Orange County, CA</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/59f3fa64-ef61-4f7c-8408-87c2bb96a777" />
    <author>
      <name>laney</name>
    </author>
    <id>http://aspnet.tribe.net/thread/59f3fa64-ef61-4f7c-8408-87c2bb96a777</id>
    <updated>2006-05-04T00:28:04Z</updated>
    <published>2006-05-04T00:28:04Z</published>
    <summary type="html">&lt;div&gt;My company is hiring the following jobs. Send me a message if interested.
&lt;br/&gt;
&lt;br/&gt;-----------------------------------------------------
&lt;br/&gt;FieldConnect Systems Consultant
&lt;br/&gt;
&lt;br/&gt;Description:
&lt;br/&gt; FieldConnect is a rapidly-growing market leader in wireless software solutions integrated to applications from Microsoft Great Plains, Solomon, S2000, Timberline, and others.   We offer a supportive and customer-focused team environment and are looking for talented people with the skills, energy, and imagination to grow with us! 
&lt;br/&gt; 
&lt;br/&gt;The successful Systems Consultant (SC) candidate will be responsible for pre-sales consulting, software solution implementation, customization, and post-sales support services to customers of FieldConnect service management and wireless products. 
&lt;br/&gt;
&lt;br/&gt;The SC will define project parameters, estimate time frames, manage, install, configure, customize, test, train, and generally satisfy all customer acceptance criteria requirements for small-to-medium sized technical implementation projects.  Project scope generally ranges from a few days to a few weeks.  Most projects will involve a combination of time spent at the FieldConnect Irvine offices and at local customer sites throughout North America. 
&lt;br/&gt; 
&lt;br/&gt;
&lt;br/&gt;FieldConnect is a creative and fast paced team environment that at times depends on the leadership initiative and personal flexibility of team members to meet the important needs of our customers.  With a broad line of products and an explosion of customer demand, the work is very challenging, however the opportunities for learning and potential for sharing in the company’s success are great! 
&lt;br/&gt; 
&lt;br/&gt;Position is based in Irvine, California. Extensive travel (up to 50%) may be required. 
&lt;br/&gt; 
&lt;br/&gt;Skills: 
&lt;br/&gt; 
&lt;br/&gt;Impeccable professionalism and personal integrity are required for this customer-focused position. Excellent verbal and written communications skills are required.
&lt;br/&gt; 
&lt;br/&gt;Requires solid expertise with Microsoft products such as SQL, Win2003 server, ASP.net., web server configurations and networking. Experience with Great Plains, Timberline, Solomon, MiniTrak, or S2000 applications or MCSE certification a plus. Excellent verbal and written communication skills required; strong project management and customer relations skills required; BS or equivalent in technical field required.
&lt;br/&gt; 
&lt;br/&gt;Experience: 
&lt;br/&gt; 
&lt;br/&gt;A minimum of 3 years technical support and customer-facing project implementation experience is required. 
&lt;br/&gt;
&lt;br/&gt;-------------------------------------------------------
&lt;br/&gt;FieldConnect Engineering Senior Developer
&lt;br/&gt;
&lt;br/&gt;Description: 
&lt;br/&gt;FieldConnect is a rapidly-growing market leader in wireless software solutions integrated to applications from Microsoft Great Plains, Solomon, S2000, Timberline, and others. We offer a supportive and customer-focused team environment and are looking for talented people with the skills, energy, and imagination to grow with us! 
&lt;br/&gt;
&lt;br/&gt;The successful Senior Developer candidate will provide solid technical insight and leadership in areas of requirements definition, product architecture, functional design, integration strategies, system performance and scalability, Pocket PC usability design, and overall corporate development practices. Candidate must have experience developing commercial software products and/or enterprise level solutions. 
&lt;br/&gt;
&lt;br/&gt;Quality of communications is a key aspect of the job. The FieldConnect Development Engineering group is a highly-collaborative team. The successful Senior Developer candidate will be a credible technical mentor who is able to effectively use verbal and written communications as a catalyst for the team's design, documentation, coding, and problem-solving efforts. 
&lt;br/&gt;
&lt;br/&gt;FieldConnect is a creative and fast paced team environment that at times depends on the leadership initiative and personal flexibility of team members to meet the important needs of our customers. With a broad line of products and an explosion of customer demand, the work is challenging, however the opportunities for learning and potential for sharing in the company's success are great! 
&lt;br/&gt;
&lt;br/&gt;Position is based in Irvine, California.
&lt;br/&gt;
&lt;br/&gt;Skills:
&lt;br/&gt;
&lt;br/&gt;o Strong analytical, communications, and problem-solving ability
&lt;br/&gt;o Web application development 
&lt;br/&gt;o Advanced database design 
&lt;br/&gt;o Solid working knowledge of SQL Server, Windows, and team development practices 
&lt;br/&gt;o Working knowledge of database normalization concepts 
&lt;br/&gt;o Proficiency developing the major SQL Server database objects 
&lt;br/&gt;o Prior experience in creating Stored Procedures, SQL scripts, and DTS Packages 
&lt;br/&gt;o Ability to prioritize and handle multiple tasks and projects concurrently
&lt;br/&gt;o Highly organized
&lt;br/&gt;
&lt;br/&gt;Environment: (Required Skills): VB.NET, SQL Server, Microsoft .Net,
&lt;br/&gt;Visual Studio 2003 
&lt;br/&gt;
&lt;br/&gt;Excellent verbal and written communication skills required; BS or equivalent in technical field required. Microsoft certifications a plus.
&lt;br/&gt;
&lt;br/&gt;Experience: 
&lt;br/&gt;
&lt;br/&gt;5+ Years programming
&lt;br/&gt;2+ Years Experience in Microsoft .Net
&lt;br/&gt;Commercial software products and/or enterprise solutions
&lt;br/&gt;
&lt;br/&gt;Experience with Great Plains, Timberline, Solomon, MiniTrak, or S2000 applications a plus.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>laney</dc:creator>
    <dc:date>2006-05-04T00:28:04Z</dc:date>
  </entry>
  <entry>
    <title>Is is possible?</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/3a98b2dc-80bf-4cc4-bb6b-0117180a4ebf" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/3a98b2dc-80bf-4cc4-bb6b-0117180a4ebf</id>
    <updated>2006-05-02T18:41:21Z</updated>
    <published>2006-05-02T15:16:21Z</published>
    <summary type="html">&lt;div&gt;I was wondering if it is possible to make a contact form that emails me the information the person inputs in the form and then saves that information as well in a database?
&lt;br/&gt;
&lt;br/&gt;If so could someone help me?
&lt;br/&gt;
&lt;br/&gt;Should I make databound fields or use the normal &amp;amp;lt;asp:textbox id="name" ...&gt; and then try somehow to make that information insert into a database?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-05-02T15:16:21Z</dc:date>
  </entry>
  <entry>
    <title>ASP / DB2 / JAVA / COBOL programming jobs in Minneapolis</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/8e0e586d-1231-4fe6-83f4-3d629014fac9" />
    <author>
      <name>Mike</name>
    </author>
    <id>http://aspnet.tribe.net/thread/8e0e586d-1231-4fe6-83f4-3d629014fac9</id>
    <updated>2006-04-06T19:49:35Z</updated>
    <published>2006-04-06T19:49:35Z</published>
    <summary type="html">&lt;div&gt;I have 40, well paying, $75,000-$100,000, permanent jobs in Minneapolis for a financial company that is converting COBOL to Java. Send me your resume and your phone number so we can talk. 2 interviews next week and an offer could be yours. They want 40 people to start in the next month. Paid relocation if needed and great benefits. Tell all your friends. If you only have COBOL that is OK, they may want them! They would like DB2 and ASP too. For this my email address is: mmurphy@mrtampanorth.com 
&lt;br/&gt;Thanks. 
&lt;br/&gt;Mike &lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Mike</dc:creator>
    <dc:date>2006-04-06T19:49:35Z</dc:date>
  </entry>
  <entry>
    <title>Finally - multiple field validator</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/e91b2241-097f-4fdc-bad8-ab54cd34e5ec" />
    <author>
      <name>kheiligh</name>
    </author>
    <id>http://aspnet.tribe.net/thread/e91b2241-097f-4fdc-bad8-ab54cd34e5ec</id>
    <updated>2006-03-31T19:06:06Z</updated>
    <published>2006-03-31T19:06:06Z</published>
    <summary type="html">&lt;div&gt;I've been looking for one of these for a long time.  .Net 2.0 makes it much easier apparently...
&lt;br/&gt;
&lt;br/&gt;http://www.codeproject.com/aspnet/MultipleFieldsValidator.asp
&lt;br/&gt;
&lt;br/&gt;I didn't write this, by the way... I just found it massively useful for validating phone/mobile/email fields when at least 1 is required, and not having to write a bunch of custom script every time to do it.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>kheiligh</dc:creator>
    <dc:date>2006-03-31T19:06:06Z</dc:date>
  </entry>
  <entry>
    <title>unique files for unique users</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/5dfbb8d8-53b6-4145-80fc-8e6334370079" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/5dfbb8d8-53b6-4145-80fc-8e6334370079</id>
    <updated>2006-03-28T15:28:07Z</updated>
    <published>2006-03-27T23:18:29Z</published>
    <summary type="html">&lt;div&gt;I am trying to create a database driven site that the admin only can upload to the database....then when a user logs in they can only see the files that are for them and no one else....how do you do this...I understand that I have a database for login information and then another database for uploading files to.  How do I go about getting just the unique users info to come up and no one elses? Oh yea the users need to be able to download the files as well and that is it.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-03-27T23:18:29Z</dc:date>
  </entry>
  <entry>
    <title>UPDATE command</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/840338ae-199b-4c84-a010-1a6e32df3eb4" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/840338ae-199b-4c84-a010-1a6e32df3eb4</id>
    <updated>2006-03-23T19:43:06Z</updated>
    <published>2006-03-23T15:30:50Z</published>
    <summary type="html">&lt;div&gt;I am trying to use the update command for updating fields in a database.   When I push the update button the original values are still there any ideas on why this is.....
&lt;br/&gt;
&lt;br/&gt;I am using a details view and specifying update parameters.  I don't have anything for pageLoad ....anyway here is the code
&lt;br/&gt;
&lt;br/&gt;&amp;amp;lt;script runat="server"&gt;
&lt;br/&gt;
&lt;br/&gt;    Protected Sub DetailsView1_ItemUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewUpdatedEventArgs)
&lt;br/&gt;        
&lt;br/&gt;    End Sub
&lt;br/&gt;
&lt;br/&gt;    Protected Sub DetailsView1_ItemDeleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewDeletedEventArgs)
&lt;br/&gt;       Response.Redirect("default.aspx")
&lt;br/&gt;    End Sub
&lt;br/&gt;
&lt;br/&gt;    Protected Sub DetailsView1_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewCommandEventArgs)
&lt;br/&gt;        If e.CommandName = "Cancel" Then
&lt;br/&gt;            Response.Redirect("default.aspx")
&lt;br/&gt;        End If
&lt;br/&gt;    End Sub
&lt;br/&gt;&amp;amp;lt;/script&gt;
&lt;br/&gt;
&lt;br/&gt;    To make changes, click Edit, make your changes, then click Update. To delete
&lt;br/&gt;    this ad, just click the Delete button.
&lt;br/&gt;    &amp;amp;lt;br /&gt;
&lt;br/&gt;    &amp;amp;lt;br /&gt;
&lt;br/&gt;&amp;amp;lt;asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="100%" AutoGenerateRows="False" DataKeyNames="AdNum" DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333" GridLines="None" OnItemUpdated="DetailsView1_ItemUpdated" OnItemDeleted="DetailsView1_ItemDeleted" OnItemCommand="DetailsView1_ItemCommand"&gt;
&lt;br/&gt;    &amp;amp;lt;Fields&gt;
&lt;br/&gt;        &amp;amp;lt;asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" /&gt;
&lt;br/&gt;        &amp;amp;lt;asp:BoundField DataField="Category" HeaderText="Category" SortExpression="Category" /&gt;
&lt;br/&gt;        &amp;amp;lt;asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" /&gt;
&lt;br/&gt;        &amp;amp;lt;asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" /&gt;
&lt;br/&gt;        &amp;amp;lt;asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" /&gt;
&lt;br/&gt;        &amp;amp;lt;asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" /&gt;
&lt;br/&gt;        &amp;amp;lt;asp:BoundField DataField="State" HeaderText="State" SortExpression="State" /&gt;
&lt;br/&gt;        &amp;amp;lt;asp:BoundField DataField="UserPassword" HeaderText="UserPassword" SortExpression="UserPassword" /&gt;
&lt;br/&gt;        &amp;amp;lt;asp:CommandField ButtonType="Button" ShowDeleteButton="True" ShowEditButton="True" /&gt;
&lt;br/&gt;    &amp;amp;lt;/Fields&gt;
&lt;br/&gt;    &amp;amp;lt;RowStyle BackColor="#FFFBD6" /&gt;
&lt;br/&gt;    &amp;amp;lt;FieldHeaderStyle BackColor="#FFFF99" Font-Bold="True" /&gt;
&lt;br/&gt;&amp;amp;lt;/asp:DetailsView&gt;
&lt;br/&gt;&amp;amp;nbsp;
&lt;br/&gt;&amp;amp;lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues"
&lt;br/&gt;        ConnectionString="&amp;amp;lt;%$ ConnectionStrings:classydbConnectionString %&gt;" 
&lt;br/&gt;        DeleteCommand="DELETE FROM [Ads] WHERE [AdNum] = ? AND [Title] = ? AND [Category] = ? AND [Description] = ? AND [Price] = ? AND [Phone] = ? AND [Email] = ? AND [State] = ? AND [UserPassword] = ?"
&lt;br/&gt;        ProviderName="&amp;amp;lt;%$ ConnectionStrings:classydbConnectionString.ProviderName %&gt;"
&lt;br/&gt;        SelectCommand="SELECT [AdNum], [Title], [Category], [Description], [Price], [Phone], [Email], [State], [UserPassword] FROM [Ads] WHERE ([AdNum] = ?)"
&lt;br/&gt;        UpdateCommand="UPDATE [Ads] SET [Title] = ?, [Category] = ?, [Description] = ?, [Price] = ?, [Phone] = ?, [Email] = ?, [State] = ?, [UserPassword] = ? WHERE [AdNum] = ? AND [Title] = ? AND [Category] = ? AND [Description] = ? AND [Price] = ? AND [Phone] = ? AND [Email] = ? AND [State] = ? AND [UserPassword] = ?"
&lt;br/&gt;        &gt;
&lt;br/&gt;        &amp;amp;lt;SelectParameters&gt;
&lt;br/&gt;            &amp;amp;lt;asp:QueryStringParameter Name="AdNum" QueryStringField="AdNum" Type="Int32" /&gt;
&lt;br/&gt;        &amp;amp;lt;/SelectParameters&gt;
&lt;br/&gt;        &amp;amp;lt;DeleteParameters&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="AdNum" Type="Int32" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Title" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Category" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Description" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Price" Type="Decimal" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Phone" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Email" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="State" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="UserPassword" Type="String" /&gt;
&lt;br/&gt;        &amp;amp;lt;/DeleteParameters&gt;
&lt;br/&gt;        &amp;amp;lt;UpdateParameters&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Title" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Category" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Description" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Price" Type="Decimal" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Phone" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="Email" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="State" Type="String" /&gt;
&lt;br/&gt;            &amp;amp;lt;asp:Parameter Name="UserPassword" Type="String" /&gt;
&lt;br/&gt;        &amp;amp;lt;/UpdateParameters&gt;
&lt;br/&gt;
&lt;br/&gt;    &amp;amp;lt;/asp:SqlDataSource&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-03-23T15:30:50Z</dc:date>
  </entry>
  <entry>
    <title>BC30002: Type 'System.Net.Mail.StmpClient' is not defined.</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/32fa62f4-d828-42cb-bd3d-194fd0fbc76b" />
    <author>
      <name>Grant</name>
    </author>
    <id>http://aspnet.tribe.net/thread/32fa62f4-d828-42cb-bd3d-194fd0fbc76b</id>
    <updated>2006-03-21T17:02:26Z</updated>
    <published>2006-03-21T15:55:48Z</published>
    <summary type="html">&lt;div&gt;I am following a book and I used this code and get the error in the subject line.
&lt;br/&gt;
&lt;br/&gt;&amp;amp;lt;%@ Page Language="VB" Debug="True" %&gt;
&lt;br/&gt;&amp;amp;lt;html&gt;
&lt;br/&gt;&amp;amp;lt;head&gt;
&lt;br/&gt;&amp;amp;lt;title&gt;Untitled Document&amp;amp;lt;/title&gt;
&lt;br/&gt;&amp;amp;lt;body&gt;
&lt;br/&gt;&amp;amp;lt;%
&lt;br/&gt;Dim EMailFrom As String = "bill@edgequest.com"
&lt;br/&gt;Dim EMailTo As String = "grantb@omnigraphix.com"
&lt;br/&gt;Dim EMailSubject As String = "Important Message!"
&lt;br/&gt;Dim EMailBody As String = "Thanks for reading this " &amp;amp; "message but I must admit, I lied.  There's " &amp;amp; "nothing important about this message at all."
&lt;br/&gt;Dim MySmtpClient As New System.Net.Mail.StmpClient("localhost")
&lt;br/&gt;MyStmpClient.Send(EmailFrom, EmailTo, EmailSubject, EmailBody)
&lt;br/&gt;%&gt;
&lt;br/&gt;&amp;amp;lt;/body&gt;
&lt;br/&gt;&amp;amp;lt;/html&gt;
&lt;br/&gt;
&lt;br/&gt;What am I doing wrong?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>Grant</dc:creator>
    <dc:date>2006-03-21T15:55:48Z</dc:date>
  </entry>
  <entry>
    <title>ASP.NET  pda website</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/a78dcbd1-9ead-480d-a87c-bbdd0c8dd294" />
    <author>
      <name>bert</name>
    </author>
    <id>http://aspnet.tribe.net/thread/a78dcbd1-9ead-480d-a87c-bbdd0c8dd294</id>
    <updated>2006-03-18T17:54:18Z</updated>
    <published>2005-12-29T13:37:11Z</published>
    <summary type="html">&lt;div&gt;Hi everyone,
&lt;br/&gt;For my final school project i have to make an asp.net pda website, but i can't really start. I don't know where i have to adjust the screen resolution etc. Are there restrictions for pda's? it's hard to find sites on this one. 
&lt;br/&gt;Thanks in advance.
&lt;br/&gt;Greetz 
&lt;br/&gt;Bert &lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>bert</dc:creator>
    <dc:date>2005-12-29T13:37:11Z</dc:date>
  </entry>
  <entry>
    <title>Favorite Books for a ASP.NET Newbie</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/318cd99e-6b81-40f7-9d97-4b272d46394e" />
    <author>
      <name>Anthony</name>
    </author>
    <id>http://aspnet.tribe.net/thread/318cd99e-6b81-40f7-9d97-4b272d46394e</id>
    <updated>2006-03-17T18:41:07Z</updated>
    <published>2006-03-16T19:08:56Z</published>
    <summary type="html">&lt;div&gt;My new boss wants me to learn ASP.NET and SQL Server 2005. I guess it it time for me to get started.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Anthony</dc:creator>
    <dc:date>2006-03-16T19:08:56Z</dc:date>
  </entry>
  <entry>
    <title>ADODB.Field (0x800A0BCD) Help!!!!</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/b3f350ba-23c9-45ea-aa2f-8ae5430e77b9" />
    <author>
      <name>mustafa</name>
    </author>
    <id>http://aspnet.tribe.net/thread/b3f350ba-23c9-45ea-aa2f-8ae5430e77b9</id>
    <updated>2006-03-13T17:35:31Z</updated>
    <published>2006-03-05T07:22:49Z</published>
    <summary type="html">&lt;div&gt;i face this proplem when i'm trying to compair a requist form and the recordset 
&lt;br/&gt;this is the code
&lt;br/&gt;  
&lt;br/&gt;
&lt;br/&gt;RsUsers.Open MySQL, DBConn,1,3
&lt;br/&gt;    Do while ( (not RsUsers.EOF) or (exist=0) )
&lt;br/&gt;          rsemail = RsUsers("User_email")
&lt;br/&gt;          if(rsemail = Request.Form("email") ) then
&lt;br/&gt;	exist=1
&lt;br/&gt;         else
&lt;br/&gt;                    RsUsers.MoveNext
&lt;br/&gt;       end if
&lt;br/&gt;Loop
&lt;br/&gt;
&lt;br/&gt;anyone can help!!!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>mustafa</dc:creator>
    <dc:date>2006-03-05T07:22:49Z</dc:date>
  </entry>
  <entry>
    <title>welcome</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/70201684-9006-48ef-9e3f-a65cbb270d36" />
    <author>
      <name>CharlesMarkCarroll</name>
    </author>
    <id>http://aspnet.tribe.net/thread/70201684-9006-48ef-9e3f-a65cbb270d36</id>
    <updated>2006-02-28T19:15:00Z</updated>
    <published>2005-05-20T06:13:50Z</published>
    <summary type="html">&lt;div&gt;Ask any ASP.net questions you have
&lt;br/&gt;
&lt;br/&gt;I will answer them myself, or if I can't I will invite a few friends to join and make them answer you.
&lt;br/&gt;
&lt;br/&gt;Thanks for being here.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>CharlesMarkCarroll</dc:creator>
    <dc:date>2005-05-20T06:13:50Z</dc:date>
  </entry>
  <entry>
    <title>Page Refreshing</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/cbd3eee9-c852-49c4-8543-cac74daf642d" />
    <author>
      <name>Mike</name>
    </author>
    <id>http://aspnet.tribe.net/thread/cbd3eee9-c852-49c4-8543-cac74daf642d</id>
    <updated>2006-01-24T14:31:32Z</updated>
    <published>2006-01-20T16:24:37Z</published>
    <summary type="html">&lt;div&gt;Newbie ASP C# programmer here.
&lt;br/&gt;
&lt;br/&gt;I'm putting a web form/page together and want to know how I can manually force a page to reload/refresh??
&lt;br/&gt;
&lt;br/&gt;For example, I load an image on startup of the web page.  The user makes some selections to change the image.  However, I cannot get the image to change unless you click the reload button on the browser.
&lt;br/&gt;
&lt;br/&gt;How can I force the reload in my code instead of making the user press this button???
&lt;br/&gt;
&lt;br/&gt;Any suggestions are appreciated.
&lt;br/&gt;
&lt;br/&gt;R,
&lt;br/&gt;mheese@inebraska.com&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>Mike</dc:creator>
    <dc:date>2006-01-20T16:24:37Z</dc:date>
  </entry>
  <entry>
    <title>Encryption</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/0e3a568e-29d4-4616-adbf-82bba48dcf9d" />
    <author>
      <name>chitta ranjan</name>
    </author>
    <id>http://aspnet.tribe.net/thread/0e3a568e-29d4-4616-adbf-82bba48dcf9d</id>
    <updated>2005-12-19T13:00:33Z</updated>
    <published>2005-12-01T07:00:23Z</published>
    <summary type="html">&lt;div&gt;hi
&lt;br/&gt;
&lt;br/&gt;  i am encrypting my password using MD5 with one way hashing but the requirement is coming for a user to show the password in frontend but in the database it stores the encrypted password
&lt;br/&gt;but decryption is not possible with MD5(message digest)
&lt;br/&gt;
&lt;br/&gt;what  shall i do with this case help me..&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>chitta ranjan</dc:creator>
    <dc:date>2005-12-01T07:00:23Z</dc:date>
  </entry>
  <entry>
    <title>help help please</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/65e6da40-dd5f-483d-a003-fad335889e38" />
    <author>
      <name>James</name>
    </author>
    <id>http://aspnet.tribe.net/thread/65e6da40-dd5f-483d-a003-fad335889e38</id>
    <updated>2005-11-29T19:56:31Z</updated>
    <published>2005-11-29T19:56:31Z</published>
    <summary type="html">&lt;div&gt;So ive been out sick from school for the last two and a half weeks and the last thing in my CS class I mamaged to get was the basics of HTML and now they are onto ASP and I have this big assignment and havent got a clue. The teacher of course is no help so I resort to the public forhelp...
&lt;br/&gt;Maximum Points: 40
&lt;br/&gt;In this assignment, you are asked to first create an HTML file called “quiz.htm” that can present a quiz about HTML or ASP containing at least the following:
&lt;br/&gt;1.	Two Fill-in-the-blank questions, each is worth 1 point. Use text boxes to allow visitors to enter their answers for this type of questions.
&lt;br/&gt;2.	Two True/False questions, each is worth 1 point. Use radio buttons to allow visitors to select either True or False.
&lt;br/&gt;3.	One Multiple-Choices question that has only one correct answer and worth 2 points. Use radio buttons to allow visitors to select their answers for this question.
&lt;br/&gt;4.	One Multiple-Choices question that has more than one correct answer and worth 4 points if the answer is perfect. Use check boxes to allow visitors to select all answers that apply to each question. When grading this question, give partial credit for partially correct answers.
&lt;br/&gt;In addition, create an ASP file called “evaluate.asp” so that when a visitor completes the quiz and click the “Grade Me” button on the quiz page, he/she will see a web page that shows what he/she has entered/selected for each question, whether the answer is correct, and the total score of the quiz. &lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>James</dc:creator>
    <dc:date>2005-11-29T19:56:31Z</dc:date>
  </entry>
  <entry>
    <title>Inserting Access Records in ASP.Net code</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/0518c6f9-dd06-428f-a9c6-9ceb8cd48f7b" />
    <author>
      <name>James</name>
    </author>
    <id>http://aspnet.tribe.net/thread/0518c6f9-dd06-428f-a9c6-9ceb8cd48f7b</id>
    <updated>2005-11-24T14:17:32Z</updated>
    <published>2005-11-17T04:37:01Z</published>
    <summary type="html">&lt;div&gt;Hi, I'm new at ASP and very frustrated.  I'm trying to do some very basic database access in ASP.Net.  I'm doing an insert statement into an MS Access database.  
&lt;br/&gt;
&lt;br/&gt;Insert Into Subscriptions (Name,Email) Select "test" as expr1, "test" as expr2
&lt;br/&gt;
&lt;br/&gt;I continue to get an error stating "Operation must use an updateable query"
&lt;br/&gt;
&lt;br/&gt;I can pull the data out just fine, I just can't seem to insert.  This suggests rights, but I've tried everything I can think of and I just can't get this to work.
&lt;br/&gt;
&lt;br/&gt;Any assistance would be greatly appreciated.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>James</dc:creator>
    <dc:date>2005-11-17T04:37:01Z</dc:date>
  </entry>
  <entry>
    <title>online magazine</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/9f16b831-0d11-4941-83eb-6d48571d4d45" />
    <author>
      <name>hallelujahv</name>
    </author>
    <id>http://aspnet.tribe.net/thread/9f16b831-0d11-4941-83eb-6d48571d4d45</id>
    <updated>2005-10-24T23:43:35Z</updated>
    <published>2005-10-24T23:43:35Z</published>
    <summary type="html">&lt;div&gt;Hi everyone,
&lt;br/&gt;I noticed that questions are encouraged here...great!
&lt;br/&gt;I'm working on getting a website up for our magazine THE B-SIDE (feel free to join the tribe!) and getting an online version up. I'm really looking for someone I can email questions to....anyone have a little free time for web correspondance?  I pretty resourseful so I won't need tons of attention...
&lt;br/&gt;Thanks!
&lt;br/&gt;&amp;amp;lt;3  Veronica&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>hallelujahv</dc:creator>
    <dc:date>2005-10-24T23:43:35Z</dc:date>
  </entry>
  <entry>
    <title>Is it possible?</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/6ca5c889-72ed-46dc-baf2-f9af12f3bedf" />
    <author>
      <name>Gattsu</name>
    </author>
    <id>http://aspnet.tribe.net/thread/6ca5c889-72ed-46dc-baf2-f9af12f3bedf</id>
    <updated>2005-10-16T14:59:05Z</updated>
    <published>2005-10-16T14:59:05Z</published>
    <summary type="html">&lt;div&gt;I am new to asp and I want to learn from scratch.I wish to build a system with flash mx 2004 and using asp to link my application build on flash with ms access as database but I have no idea where to headstart.I need some help how to start things off.Thanks~&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Gattsu</dc:creator>
    <dc:date>2005-10-16T14:59:05Z</dc:date>
  </entry>
  <entry>
    <title>Problems with SELECT/WHERE coding</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/3a0c6b41-df91-4237-b3b5-7097548c70d2" />
    <author>
      <name>Kevin</name>
    </author>
    <id>http://aspnet.tribe.net/thread/3a0c6b41-df91-4237-b3b5-7097548c70d2</id>
    <updated>2005-10-15T23:21:24Z</updated>
    <published>2005-10-15T23:21:24Z</published>
    <summary type="html">&lt;div&gt;Greetings! I'm developing a website for a friend. This involves reading from a database to load dropdown lists. Once the user submits choices, the Click event triggers code to search the database tables to decide which products meet the user's criteria. 
&lt;br/&gt;
&lt;br/&gt;The intent behind this code was to "cascade" the filtering. One table is created with a filter, then the next is dependent upon that filtering to create another table that shows only those criteria that match the user's selection. 
&lt;br/&gt;
&lt;br/&gt;The first query in the code below works -- it returns the correct number of records (as per the trace.write method). However, the rest of the queries return the complete recordsets without any regard to the "WHERE" clauses. Can someone help? 
&lt;br/&gt;
&lt;br/&gt;Sub Button1_Click(sender As Object, e As EventArgs) 
&lt;br/&gt;trace.write("Beginning of the Button_Click event.") 
&lt;br/&gt;If Page.IsPostBack = True Then 
&lt;br/&gt;
&lt;br/&gt;'Initialize and fill the variables that read from the dropdownlist 
&lt;br/&gt;dim mat as string 
&lt;br/&gt;dim drill as string 
&lt;br/&gt;dim thick as string 
&lt;br/&gt;dim stroke as string 
&lt;br/&gt;mat = dropdownlist1.selecteditem.value 
&lt;br/&gt;drill = dropdownlist3.selecteditem.value 
&lt;br/&gt;thick = dropdownlist4.selecteditem.value 
&lt;br/&gt;stroke = dropdownlist2.selecteditem.value 
&lt;br/&gt;trace.write("Mat = " &amp;amp; mat) 
&lt;br/&gt;trace.write("Drill = " &amp;amp; drill) 
&lt;br/&gt;trace.write("Thick = " &amp;amp; thick) 
&lt;br/&gt;trace.write("Stroke = " &amp;amp; stroke) 
&lt;br/&gt;
&lt;br/&gt;' Setup the connection to the database 
&lt;br/&gt;trace.write("Setup the connection to the database") 
&lt;br/&gt;dim connectionstring as string = "Provider=Microsoft.jet.oledb.4.0; Data Source=c:\inetpub\wwwroot\andrewstool\ToolSpecs.mdb" 
&lt;br/&gt;dim dbconnection as new OleDbConnection(connectionstring) 
&lt;br/&gt;dim data2 as dataset = new system.data.dataset 
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;' Load the main SeriesStats table with filter 
&lt;br/&gt;trace.write("Load the main SeriesStats table") 
&lt;br/&gt;dim tablestring5 as string = "tblSeriesStats" 
&lt;br/&gt;dim querystring5 as string = "SELECT * from " &amp;amp; tablestring5 &amp;amp; " WHERE [tblSeriesStats].[MaxThick] = '" &amp;amp; Thick &amp;amp; "' AND [tblSeriesStats].[MaxStroke] = '" &amp;amp; Stroke &amp;amp; "' AND [tblSeriesStats].[MaxDrillSize] = '" &amp;amp; Drill &amp;amp; "'" 
&lt;br/&gt;dim dbcommand5 as new oledbcommand 
&lt;br/&gt;dbcommand5.commandtext = querystring5 
&lt;br/&gt;dbcommand5.connection = dbconnection 
&lt;br/&gt;
&lt;br/&gt;dim dataadapter2 as new oledbdataadapter 
&lt;br/&gt;dataadapter2.selectcommand = dbcommand5 
&lt;br/&gt;dataadapter2.fill(data2, tablestring5) 
&lt;br/&gt;dim SeriesStats as datatable = data2.tables("tblSeriesStats") 
&lt;br/&gt;trace.write("SeriesStats Record Count = " &amp;amp; SeriesStats.Rows.Count) 
&lt;br/&gt;
&lt;br/&gt;' Load the SeriesMaterial table with filter 
&lt;br/&gt;trace.write("Load the SeriesMaterial table") 
&lt;br/&gt;dim tablestring6 as string = "tblSeriesMaterial" 
&lt;br/&gt;dim querystring6 as string = "SELECT * from " &amp;amp; tablestring6 &amp;amp; " WHERE '[tblSeriesMaterial].[CodeSeries] = [SeriesStats].[CodeSeries]'" 
&lt;br/&gt;'&amp;amp; " WHERE [tblSeriesMaterial].[CodeMaterial] = '" &amp;amp; mat &amp;amp; "'" 
&lt;br/&gt;dim dbcommand6 as new oledbcommand 
&lt;br/&gt;dbcommand6.commandtext = querystring6 
&lt;br/&gt;dbcommand6.connection = dbconnection 
&lt;br/&gt;dataadapter2.selectcommand = dbcommand6 
&lt;br/&gt;dataadapter2.fill(data2, tablestring6) 
&lt;br/&gt;dim SeriesMaterial as datatable = data2.tables("tblSeriesMaterial") 
&lt;br/&gt;trace.write("SeriesMaterial Record Count = " &amp;amp; SeriesMaterial.Rows.Count) 
&lt;br/&gt;
&lt;br/&gt;'Load the SeriesAttachments table with filter 
&lt;br/&gt;trace.write("Load the SeriesAttachments table") 
&lt;br/&gt;dim tablestring7 as string = "tblSeriesAttachments" 
&lt;br/&gt;dim querystring7 as string = "SELECT * from " &amp;amp; tablestring7 &amp;amp; " WHERE '[tblSeriesAttachments].[CodeSeries] = [SeriesStats].[CodeSeries]'" 
&lt;br/&gt;dim dbcommand7 as new oledbcommand 
&lt;br/&gt;dbcommand7.commandtext = querystring7 
&lt;br/&gt;dbcommand7.connection = dbconnection 
&lt;br/&gt;dataadapter2.selectcommand = dbcommand7 
&lt;br/&gt;dataadapter2.fill(data2, tablestring7) 
&lt;br/&gt;dim SeriesAttachments as datatable = data2.tables("tblSeriesAttachments") 
&lt;br/&gt;trace.write("SeriesAttachments Record Count = " &amp;amp; SeriesAttachments.Rows.Count) 
&lt;br/&gt;
&lt;br/&gt;'Load the LookupMaterial table with filter 
&lt;br/&gt;dim tablestring1 as string = "tblLookupMaterial" 
&lt;br/&gt;dim querystring1 as string = "SELECT * from " &amp;amp; tablestring1 &amp;amp; " WHERE '[tblLookupMaterial].[CodeMaterial] = [SeriesMaterial].[CodeMaterial]'" 
&lt;br/&gt;dim dbcommand1 as new oledbcommand 
&lt;br/&gt;dbcommand1.commandtext = querystring1 
&lt;br/&gt;dbcommand1.connection = dbconnection 
&lt;br/&gt;dataadapter2.selectcommand = dbcommand1 
&lt;br/&gt;dataadapter2.fill(data2, tablestring1) 
&lt;br/&gt;dim LookupMaterial as datatable = data2.tables("tblLookupMaterial") 
&lt;br/&gt;trace.write("LookupMaterial Record Count = " &amp;amp; LookupMaterial.Rows.Count) 
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;'Load the LookupAttachments table with filter 
&lt;br/&gt;trace.write("Load the LookupAttachments table") 
&lt;br/&gt;dim tablestring8 as string = "tblLookupAttachments" 
&lt;br/&gt;dim querystring8 as string = "SELECT * from " &amp;amp; tablestring8 &amp;amp; " WHERE '[tblLookupAttachments].[CodeAttachments] = [SeriesAttachments].[CodeAttachments]'" 
&lt;br/&gt;dim dbcommand8 as new oledbcommand 
&lt;br/&gt;dbcommand8.commandtext = querystring8 
&lt;br/&gt;dbcommand8.connection = dbconnection 
&lt;br/&gt;dataadapter2.selectcommand = dbcommand8 
&lt;br/&gt;dataadapter2.fill(data2, tablestring8) 
&lt;br/&gt;dim LookupAttachments as datatable = data2.tables("tblLookupAttachments") 
&lt;br/&gt;trace.write("LookupAttachments Record Count = " &amp;amp; LookupAttachments.Rows.Count) 
&lt;br/&gt;
&lt;br/&gt;' Close the database connection 
&lt;br/&gt;dbconnection.close 
&lt;br/&gt;
&lt;br/&gt;Thanks 
&lt;br/&gt;
&lt;br/&gt;Kevin &lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Kevin</dc:creator>
    <dc:date>2005-10-15T23:21:24Z</dc:date>
  </entry>
  <entry>
    <title>asp.net page creation</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/c3d360fa-329d-4ee5-8363-39103938aee0" />
    <author>
      <name>candy</name>
    </author>
    <id>http://aspnet.tribe.net/thread/c3d360fa-329d-4ee5-8363-39103938aee0</id>
    <updated>2005-10-11T22:00:47Z</updated>
    <published>2005-10-10T20:46:45Z</published>
    <summary type="html">&lt;div&gt;Hi;
&lt;br/&gt;
&lt;br/&gt;Iam a beginner in asp.net. 
&lt;br/&gt;
&lt;br/&gt;I want to create a homepage which contains a link "New user Register".On the click of this link ,it should display another form with 
&lt;br/&gt;details like:
&lt;br/&gt;
&lt;br/&gt;1.Name
&lt;br/&gt;2.password
&lt;br/&gt;3.Confirm password
&lt;br/&gt;4.Date of birth
&lt;br/&gt;5. Country
&lt;br/&gt;6.postal code
&lt;br/&gt;7.email address
&lt;br/&gt;8.phone number
&lt;br/&gt;
&lt;br/&gt;and with button "submit"
&lt;br/&gt;
&lt;br/&gt;Pls create a asp.net page with c# for the above details.
&lt;br/&gt;
&lt;br/&gt;thanks in advance.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://aspnet.tribe.net"&gt;ASP.net web development&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>candy</dc:creator>
    <dc:date>2005-10-10T20:46:45Z</dc:date>
  </entry>
  <entry>
    <title>Jiminy Crickets! Running in Circles with Syntax error</title>
    <link rel="alternate" href="http://aspnet.tribe.net/thread/7d32bbf8-5363-49fd-9ec0-9e695b098b2a" />
    <author>
      <name>Sandy</name>
    </author>
    <id>http://aspnet.tribe.net/thread/7d32bbf8-5363-49fd-9ec0-9e695b098b2a</id>
    <updated>2005-10-11T17:21:15Z</updated>
    <published>2005-10-11T15:27:51Z</published>
    <summary type="html">&lt;div&gt;I'm a newbie looking for some assistance.  
&lt;br/&gt;
&lt;br/&gt;I purchased a program called asp-generator to develop a web page to post a customer database on our company intranet.  The code is generated by the program and I've been able to tweak it to do some simple stuff, but I'm running into a problem with one project.
&lt;br/&gt;
&lt;br/&gt;I have two databases: Companys and Contacts.  What I would like to do is be able to click on a company and get to a page that lists all the contacts for that company.
&lt;br/&gt;
&lt;br/&gt;I was able to figure out how to pass the CompanyID in the URL from the Company page the Contacts index page.  Then I figured out how to grab the CompanyID and display only the Contacts for that ID.  Perfect.  It worked.
&lt;br/&gt;
&lt;br/&gt;The problem comes when I try to edit the Contact information.
&lt;br/&gt;Theres a seperate .asp file to edit the Contact's name, etc.  When I click on edit, I'm taken to the edit screen, see all the contacts information.  Then I update something &amp;amp; click 'submit' and get this error:
&lt;br/&gt;
&lt;br/&gt;Error number: -2147217900 
&lt;br/&gt;Error description: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'CompanyID='. 
&lt;br/&gt;
&lt;br/&gt;URL: /magnews/Accounts/Contacts/tblcontacts_index.asp 
&lt;br/&gt;SQL query: SELECT [CustID], [CompanyID], [AcctType], [AccountMgr], [Company], [CustCode], [Product], [Sal], [ContactType], [FullName], [FirstName], [Middle], [LastName], [Nickname], [Title], [Department], [Address1], [Address2], [CIMS/MailCode], [Address3], [Address4], [City], [State], [Zip], [Country], [Phone], [Ext], [Fax], [Mobile], [Pager], [Email], [Web], [Industry], [CustSupplierCompResearch], [ShowInvitees], [ShowAttendees], [PresentationRequests], [Notes], [LastContactDate], [FirstContactType] FROM tblContacts Where CompanyID= ORDER BY [LastName] ASC, [FullName] ASC 
&lt;br/&gt;
&lt;br/&gt;I also get the same error message if click the 'Return to Contacts' page.
&lt;br/&gt;
&lt;br/&gt;I think what's happening is when I get redirected from my edit.asp page to the contacts.asp page, it's looking for the CompanyID.  And that's where I've been trying all kinds of things to make it work....to no avail.
&lt;br/&gt;
&lt;br/&gt;Here's the code for the Contact page (the include file with variables.asp and the edit.asp file follows):
&lt;br/&gt;
&lt;br/&gt;tblcontacts_index.asp file:
&lt;br/&gt;
&lt;br/&gt;&amp;amp;lt;%@ Language=VBScript %&gt;
&lt;br/&gt;
&lt;br/&gt;&amp;amp;lt;!--#include file = "include/tblcontacts_variables.asp"--&gt;
&lt;br/&gt;&amp;amp;lt;!--#include file = "include/functions.asp"--&gt;
&lt;br/&gt;&amp;amp;lt;!--#include file = "include/tblcontacts_dynamicfunctions.asp"--&gt;
&lt;br/&gt;
&lt;br/&gt;&amp;amp;lt;link rel = "stylesheet" href = "include/style.css" type = "text/css"&gt;
&lt;br/&gt;
&lt;br/&gt;&amp;amp;lt;%
&lt;br/&gt;    Dim lPageSize
&lt;br/&gt;    Dim lMaxRecords
&lt;br/&gt;    Dim lMaxPages
&lt;br/&gt;    Dim lMyPage
&lt;br/&gt;    Dim lTargetPageNumber
&lt;br/&gt;
&lt;br/&gt;    Dim sSQLQuery
&lt;br/&gt;    Dim sAction
&lt;br/&gt;    Dim sOrderBy
&lt;br/&gt;    Dim sOrderColumn
&lt;br/&gt;    Dim sOrderImage
&lt;br/&gt;    Dim bInitalOrder
&lt;br/&gt;    
&lt;br/&gt;
&lt;br/&gt;    'Session.LCID = 1033
&lt;br/&gt;
&lt;br/&gt;    lPageSize = 100
&lt;br/&gt;    sSQLQuery = Request.Form("sqlquery")
&lt;br/&gt;    sAction = Request.Form("action")
&lt;br/&gt;
&lt;br/&gt;    lTargetPageNumber = Request.Form("targetpagenumber")
&lt;br/&gt;
&lt;br/&gt;    If (lTargetPageNumber = "" Or Request.Form("action") = "search") Then
&lt;br/&gt;        lTargetPageNumber = 1
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    If (Request.Form("pagesize") &amp;amp;lt;&gt; "") Then
&lt;br/&gt;        Session("PageSize") = Request.Form("pagesize")
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    If (Session("PageSize") &amp;amp;lt;&gt; "") Then
&lt;br/&gt;        lPageSize = CLng(Session("PageSize"))
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    Session("PageSize") = lPageSize
&lt;br/&gt;
&lt;br/&gt;    sOrderBy = ""
&lt;br/&gt;    sOrderImage = ""
&lt;br/&gt;
&lt;br/&gt;    Call CalculateOrderBy
&lt;br/&gt;
&lt;br/&gt;    If (sAction &amp;amp;lt;&gt; "Search" And sSQLQuery &amp;amp;lt;&gt; "") Then
&lt;br/&gt;        If (sOrderBy &amp;amp;lt;&gt; "") Then
&lt;br/&gt;            If (InStr(1, sSQLQuery, "ORDER BY") &gt; 0) Then
&lt;br/&gt;                sSQLQuery = Left(sSQLQuery,InStr(1, sSQLQuery, "ORDER BY") - 1) &amp;amp; sOrderBy
&lt;br/&gt;            Else
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; sOrderBy
&lt;br/&gt;            End If
&lt;br/&gt;        End If
&lt;br/&gt;    Else
&lt;br/&gt;        If (sDBQuery = "") Then
&lt;br/&gt;            sSQLQuery = "SELECT * FROM " &amp;amp; sTableName
&lt;br/&gt;        Else
&lt;br/&gt;            sSQLQuery = sDBQuery
&lt;br/&gt;
&lt;br/&gt;            If LCase(Left(sSQLQuery, 7)) = "SELECT " Then
&lt;br/&gt;                If InStr(1, LCase(sDBQuery), LCase(sKeyField1) &amp;amp; ",") &amp;lt; 1 Then sSQLQuery = "SELECT " &amp;amp; AddWrappers(sKeyField1) &amp;amp; ", " &amp;amp; Mid(sSQLQuery, 8)
&lt;br/&gt;                If InStr(1, LCase(sDBQuery), LCase(sKeyField2) &amp;amp; ",") &amp;lt; 1 Then sSQLQuery = "SELECT " &amp;amp; AddWrappers(sKeyField2) &amp;amp; ", " &amp;amp; Mid(sSQLQuery, 8)
&lt;br/&gt;                If InStr(1, LCase(sDBQuery), LCase(sKeyField3) &amp;amp; ",") &amp;lt; 1 Then sSQLQuery = "SELECT " &amp;amp; AddWrappers(sKeyField3) &amp;amp; ", " &amp;amp; Mid(sSQLQuery, 8)
&lt;br/&gt;                If InStr(1, LCase(sDBQuery), LCase(",")) &amp;lt; 1 Then sSQLQuery = "SELECT " &amp;amp; AddWrappers("") &amp;amp; ", " &amp;amp; Mid(sSQLQuery, 8)
&lt;br/&gt;            End If
&lt;br/&gt;        End If
&lt;br/&gt;
&lt;br/&gt;        If (Request.Form("action") = "Search" And Request.Form("searchfor") &amp;amp;lt;&gt; "") Then
&lt;br/&gt;            sSearchFor = Trim(Request.Form("searchfor"))
&lt;br/&gt;            sSearchOption = Trim(Request.Form("searchoption"))
&lt;br/&gt;
&lt;br/&gt;            If (Request.Form("searchfield") &amp;amp;lt;&gt; "AnyField") Then
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " WHERE " &amp;amp; AddWrappers(Request.Form("searchfield")) &amp;amp; StrWhere(Request.Form("searchfield"), sSearchFor, sSearchOption)
&lt;br/&gt;            Else
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " WHERE 1 = 0"
&lt;br/&gt;
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("CustID") &amp;amp; StrWhere("CustID", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("ContactType") &amp;amp; StrWhere("ContactType", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("FullName") &amp;amp; StrWhere("FullName", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Sal") &amp;amp; StrWhere("Sal", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("FirstName") &amp;amp; StrWhere("FirstName", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Middle") &amp;amp; StrWhere("Middle", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("LastName") &amp;amp; StrWhere("LastName", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Nickname") &amp;amp; StrWhere("Nickname", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Title") &amp;amp; StrWhere("Title", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("AcctType") &amp;amp; StrWhere("AcctType", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("AccountMgr") &amp;amp; StrWhere("AccountMgr", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("CompanyID") &amp;amp; StrWhere("CompanyID", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Company") &amp;amp; StrWhere("Company", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("CustCode") &amp;amp; StrWhere("CustCode", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Product") &amp;amp; StrWhere("Product", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Industry") &amp;amp; StrWhere("Industry", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Department") &amp;amp; StrWhere("Department", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("CIMS/MailCode") &amp;amp; StrWhere("CIMS/MailCode", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Address1") &amp;amp; StrWhere("Address1", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Address2") &amp;amp; StrWhere("Address2", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Address3") &amp;amp; StrWhere("Address3", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Address4") &amp;amp; StrWhere("Address4", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("City") &amp;amp; StrWhere("City", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("State") &amp;amp; StrWhere("State", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Zip") &amp;amp; StrWhere("Zip", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Country") &amp;amp; StrWhere("Country", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Phone") &amp;amp; StrWhere("Phone", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Ext") &amp;amp; StrWhere("Ext", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Fax") &amp;amp; StrWhere("Fax", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Mobile") &amp;amp; StrWhere("Mobile", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Pager") &amp;amp; StrWhere("Pager", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Email") &amp;amp; StrWhere("Email", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Web") &amp;amp; StrWhere("Web", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("CustSupplierCompResearch") &amp;amp; StrWhere("CustSupplierCompResearch", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("ShowInvitees") &amp;amp; StrWhere("ShowInvitees", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("ShowAttendees") &amp;amp; StrWhere("ShowAttendees", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("PresentationRequests") &amp;amp; StrWhere("PresentationRequests", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("Notes") &amp;amp; StrWhere("Notes", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("LastContactDate") &amp;amp; StrWhere("LastContactDate", sSearchFor, sSearchOption)
&lt;br/&gt;                sSQLQuery = sSQLQuery &amp;amp; " Or " &amp;amp; AddWrappers("") &amp;amp; StrWhere("", sSearchFor, sSearchOption)
&lt;br/&gt;            End If
&lt;br/&gt;        End If
&lt;br/&gt;
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    If (Request.Form("keyfield1") &amp;amp;lt;&gt; "") Then
&lt;br/&gt;        Dim sQuote1
&lt;br/&gt;        Dim sQuote2
&lt;br/&gt;        Dim sQuote3
&lt;br/&gt;        Dim sSQLDelete
&lt;br/&gt;
&lt;br/&gt;        If (Request.Form("needquotes" &amp;amp; BuildFieldName(sKeyField1))) = "True" Then
&lt;br/&gt;           sQuote1 = "'"
&lt;br/&gt;        Else
&lt;br/&gt;           sQuote1 = ""
&lt;br/&gt;        End If
&lt;br/&gt;        If (Request.Form("needquotes" &amp;amp; BuildFieldName(sKeyField2))) = "True" Then
&lt;br/&gt;           sQuote2 = "'"
&lt;br/&gt;        Else
&lt;br/&gt;           sQuote2 = ""
&lt;br/&gt;        End If
&lt;br/&gt;        If (Request.Form("needquotes" &amp;amp; BuildFieldName(sKeyField3))) = "True" Then
&lt;br/&gt;           sQuote3 = "'"
&lt;br/&gt;        Else
&lt;br/&gt;           sQuote3 = ""
&lt;br/&gt;        End If
&lt;br/&gt;
&lt;br/&gt;        sSQLDelete = "DELETE FROM " &amp;amp; sTableName &amp;amp; " WHERE " &amp;amp; AddWrappers(sKeyField1) &amp;amp; " = " &amp;amp; sQuote1 &amp;amp; Replace(Request.Form("keyfield1"), "'", "''") &amp;amp; sQuote1
&lt;br/&gt;        If sKeyField2 &amp;amp;lt;&gt; "" Then sSQLDelete = sSQLDelete &amp;amp; " and " &amp;amp; AddWrappers(sKeyField2) &amp;amp; " = " &amp;amp; sQuote2 &amp;amp; Replace(Request.Form("keyfield2"), "'", "''") &amp;amp; sQuote2
&lt;br/&gt;        If sKeyField3 &amp;amp;lt;&gt; "" Then sSQLDelete = sSQLDelete &amp;amp; " and " &amp;amp; AddWrappers(sKeyField3) &amp;amp; " = " &amp;amp; sQuote3 &amp;amp; Replace(Request.Form("keyfield3"), "'", "''") &amp;amp; sQuote3
&lt;br/&gt;
&lt;br/&gt;        Call UpdateRecordSet(sConnectionString, sSQLDelete)
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    If Request.Form("action") = "AdvancedSearch" Then
&lt;br/&gt;        sWhere = ""
&lt;br/&gt;
&lt;br/&gt;        For lIndex = 1 To Request.Form("searchfor").Count
&lt;br/&gt;            sSearchFor = Trim(Request.Form("searchfor")(lIndex))
&lt;br/&gt;
&lt;br/&gt;            If (sSearchFor &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                If (sWhere = "") Then
&lt;br/&gt;                    sWhere = " WHERE 1 = 1"
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                sSearchOption = Trim(Request.Form("searchoption")(lIndex))
&lt;br/&gt;                sWhere = sWhere &amp;amp; " AND " &amp;amp; AddWrappers(Request.Form("FieldName")(lIndex)) &amp;amp; StrWhere(Request.Form("FieldName")(lIndex), sSearchFor, sSearchOption)
&lt;br/&gt;            End If
&lt;br/&gt;        Next
&lt;br/&gt;
&lt;br/&gt;        sSQLQuery = sSQLQuery &amp;amp; sWhere
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    If (InStr(1, sSQLQuery, "ORDER BY") = 0) Then
&lt;br/&gt;        If (bInitalOrder = True) Then
&lt;br/&gt;            sSQLQuery = sSQLQuery &amp;amp; " " &amp;amp; Trim(sDBQueryInitialOrder)
&lt;br/&gt;        Else
&lt;br/&gt;            sSQLQuery = sSQLQuery &amp;amp; " " &amp;amp; Trim(sOrderBy)
&lt;br/&gt;        End If
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    If (Request.Form("orderby") = "") Then
&lt;br/&gt;        sOrderColumn = sOrderBy
&lt;br/&gt;        sOrderColumn = Replace(sOrderColumn, "ORDER BY", "")
&lt;br/&gt;        sOrderColumn = Replace(sOrderColumn, "[", "")
&lt;br/&gt;        sOrderColumn = Replace(sOrderColumn, "]", "")
&lt;br/&gt;        sOrderColumn = Replace(sOrderColumn, "ASC", "")
&lt;br/&gt;        sOrderColumn = Replace(sOrderColumn, "DESC", "")
&lt;br/&gt;        sOrderColumn = Trim(sOrderColumn)
&lt;br/&gt;    Else
&lt;br/&gt;        sOrderColumn = Request.Form("orderby")
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    lMaxRecords = 0
&lt;br/&gt;    lMaxPages = 0
&lt;br/&gt;    lMyPage = lTargetPageNumber
&lt;br/&gt;
&lt;br/&gt;    If (Trim(lMyPage) = "") Then
&lt;br/&gt;        lMyPage = 1
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    If (CLng(lMyPage) &amp;amp;lt;= 0) Then
&lt;br/&gt;        lMyPage = 1
&lt;br/&gt;    End If
&lt;br/&gt;
&lt;br/&gt;    Set rsDetails = OpenRecordSet(sConnectionString, sSQLQuery, lPageSize)
&lt;br/&gt;
&lt;br/&gt;    If (lMaxPages = 0) Then lMyPage = 0 %&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;!-- log out form --&gt;
&lt;br/&gt;        &amp;amp;lt;form method = "post" action = "login.asp" name = "logout"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" name = "action" value = "logout"&gt;
&lt;br/&gt;        &amp;amp;lt;/form&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;!-- edit form --&gt;
&lt;br/&gt;        &amp;amp;lt;form method = "post" action = "tblcontacts_edit.asp" name = "editform"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "sourceid" name = "sourceid" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "keyfield1" name = "keyfield1" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "keyfield2" name = "keyfield2" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "keyfield3" name = "keyfield3" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField1)%&gt;" name = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField1)%&gt;" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField2)%&gt;" name = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField2)%&gt;" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField3)%&gt;" name = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField3)%&gt;" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "targetpagenumber" name = "targetpagenumber" value = "1"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "sqlquery" name = "sqlquery" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "action" name = "action" value = "view"&gt;
&lt;br/&gt;        &amp;amp;lt;/form&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;!-- delete form --&gt;
&lt;br/&gt;        &amp;amp;lt;form method = "post" action = "tblcontacts_index.asp" name = "deleteform"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "sourceid" name = "sourceid" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "keyfield1" name = "keyfield1" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "keyfield2" name = "keyfield2" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "keyfield3" name = "keyfield3" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField1)%&gt;" name = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField1)%&gt;" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField2)%&gt;" name = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField2)%&gt;" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField3)%&gt;" name = "needquotes&amp;amp;lt;%=BuildFieldName(sKeyField3)%&gt;" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "targetpagenumber" name = "targetpagenumber" value = "1"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "sqlquery" name = "sqlquery" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "action" name = "action" value = "delete"&gt;
&lt;br/&gt;        &amp;amp;lt;/form&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;!-- search form --&gt;
&lt;br/&gt;        &amp;amp;lt;form method = "post" action = "tblcontacts_index.asp" name = "mainform"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "sourceid" name = "sourceid" value = ""&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "gotopage" name = "gotopage"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "targetpagenumber" name = "targetpagenumber" value = "1"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "sqlquery" name = "sqlquery" value = "&amp;amp;lt;%=sSQLQuery%&gt;"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "orderby" name = "orderby" value = "&amp;amp;lt;%=sOrderBy%&gt;"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "action" name = "action" value = "Search"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "pagesize" name = "pagesize" value = "&amp;amp;lt;%=lPageSize%&gt;"&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;script language = "javascript"&gt;
&lt;br/&gt;                var rowWithMouse = null;
&lt;br/&gt;
&lt;br/&gt;                function rowUpdateBg(row, myId)
&lt;br/&gt;                {
&lt;br/&gt;                    row.className = (row ==  rowWithMouse) ? 'rowselected' : ( (myId&amp;amp;1) ? '' : 'alt3' );
&lt;br/&gt;                }
&lt;br/&gt;
&lt;br/&gt;                function rowRollover(myId, isInRow)
&lt;br/&gt;                {
&lt;br/&gt;                    var row = document.getElementById('tr_' + myId);
&lt;br/&gt;                    rowWithMouse = (isInRow) ? row : null;
&lt;br/&gt;                    rowUpdateBg(row, myId);
&lt;br/&gt;                }
&lt;br/&gt;
&lt;br/&gt;                function GotoPage(lPageNumber)
&lt;br/&gt;                {
&lt;br/&gt;                    document.forms.mainform.gotopage.value = 'gotopage';
&lt;br/&gt;                    document.forms.mainform.action.value = 'Goto';
&lt;br/&gt;                    document.forms.mainform.targetpagenumber.value = lPageNumber;
&lt;br/&gt;                    document.forms.mainform.submit();
&lt;br/&gt;                }
&lt;br/&gt;            &amp;amp;lt;/script&gt;
&lt;br/&gt;
&lt;br/&gt;&amp;amp;lt;html&gt;
&lt;br/&gt;&amp;amp;lt;title&gt;Contact Detail&amp;amp;lt;/title&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;&amp;amp;lt;a href = "../AccountEdit/tblaccountinfo_index.asp"&gt;Return to Contacts Page&amp;amp;lt;/a&gt;&amp;amp;lt;br&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;br&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;table style = "margin-bottom: 3px" cellpadding = "0" cellspacing = "1" border = "0" width = "95%" align = "center"&gt;
&lt;br/&gt;            &amp;amp;lt;tr valign = "bottom"&gt;
&lt;br/&gt;                &amp;amp;lt;td&gt;&amp;amp;nbsp;
&lt;br/&gt;                &amp;amp;lt;td class = "smallfont" align = "left"&gt;
&lt;br/&gt;                    &amp;amp;lt;div class = "pagenav" align = "left"&gt;
&lt;br/&gt;                        &amp;amp;lt;table class = "tborder" cellspacing = "1" cellpadding = "3" border = "0"&gt;
&lt;br/&gt;                        &amp;amp;lt;tr&gt;
&lt;br/&gt;
&lt;br/&gt;                        &amp;amp;lt;td class = "menu_control" style = "font-weight: normal" title = "Click here to add new record"&gt;&amp;amp;lt;a href = "add.asp" onClick = "javascript:document.forms.editform.action.value = 'Add'; document.forms.editform.targetpagenumber.value = &amp;amp;lt;%=lMyPage%&gt;; document.forms.editform.submit(); return false;"&gt;&amp;amp;lt;strong&gt;Add Record&amp;amp;lt;/strong&gt;&amp;amp;lt;/a&gt;&amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;                        &amp;amp;lt;/tr&gt;
&lt;br/&gt;                        &amp;amp;lt;/table&gt;
&lt;br/&gt;                    &amp;amp;lt;/div&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;                &amp;amp;lt;td&gt;&amp;amp;nbsp;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;                &amp;amp;lt;td class = "smallfont" align = "right"&gt;
&lt;br/&gt;                    &amp;amp;lt;div class = "pagenav" align = "right"&gt;
&lt;br/&gt;                        &amp;amp;lt;table class = "tborder" cellspacing = "1" cellpadding = "3" border = "0"&gt;
&lt;br/&gt;                        &amp;amp;lt;tr&gt;
&lt;br/&gt;
&lt;br/&gt;                        &amp;amp;lt;td class = "menu_control" style = "font-weight: normal" title = "Click here to export results to external format"&gt;&amp;amp;lt;a href = "tblcontacts_export.asp"  onClick = "document.exportto.submit();return false;"&gt;&amp;amp;lt;strong&gt;Export Results&amp;amp;lt;/strong&gt;&amp;amp;lt;/a&gt;&amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;                        &amp;amp;lt;/tr&gt;
&lt;br/&gt;                        &amp;amp;lt;/table&gt;
&lt;br/&gt;                    &amp;amp;lt;/div&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;                &amp;amp;lt;td&gt;&amp;amp;nbsp;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;table class = "tborder" cellpadding = "6" cellspacing = "1" border = "0" width = "95%" align = "center"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td class = "thead"&gt;Display Options&amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;tr valign = "top"&gt;
&lt;br/&gt;                &amp;amp;lt;td class = "alt2"&gt;
&lt;br/&gt;                    &amp;amp;lt;table cellspacing = "3" cellpadding = "0" width = "100%" border = "0"&gt;
&lt;br/&gt;                    &amp;amp;lt;tr&gt;
&lt;br/&gt;
&lt;br/&gt;                    &amp;amp;lt;!-- Search form --&gt;
&lt;br/&gt;                    &amp;amp;lt;td width = "75%" align = "left" valign = "middle"&gt;
&lt;br/&gt;                        &amp;amp;lt;b&gt; Search for: &amp;amp;lt;/b&gt;&amp;amp;nbsp;&amp;amp;nbsp;
&lt;br/&gt;
&lt;br/&gt;                        &amp;amp;lt;select id = "searchfield" name = "searchfield" size = "1"&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "AnyField"&gt; Any field&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "CustID"&gt; CustID&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "ContactType"&gt; ContactType&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "FullName"&gt; FullName&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Sal"&gt; Sal&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "FirstName"&gt; FirstName&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Middle"&gt; Middle&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "LastName"&gt; LastName&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Nickname"&gt; Nickname&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Title"&gt; Title&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "AcctType"&gt; AcctType&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "AccountMgr"&gt; AccountMgr&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "CompanyID"&gt; CompanyID&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Company"&gt; Company&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "CustCode"&gt; CustCode&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Product"&gt; Product&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Industry"&gt; Industry&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Department"&gt; Department&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "CIMS/MailCode"&gt; CIMS/MailCode&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Address1"&gt; Address1&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Address2"&gt; Address2&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Address3"&gt; Address3&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Address4"&gt; Address4&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "City"&gt; City&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "State"&gt; State&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Zip"&gt; Zip&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Country"&gt; Country&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Phone"&gt; Phone&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Ext"&gt; Ext&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Fax"&gt; Fax&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Mobile"&gt; Mobile&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Pager"&gt; Pager&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Email"&gt; Email&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Web"&gt; Web&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "CustSupplierCompResearch"&gt; CustSupplierCompResearch&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "ShowInvitees"&gt; ShowInvitees&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "ShowAttendees"&gt; ShowAttendees&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "PresentationRequests"&gt; PresentationRequests&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Notes"&gt; Notes&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "LastContactDate"&gt; LastContactDate&amp;amp;lt;/option&gt;
&lt;br/&gt;                        &amp;amp;lt;/select&gt;
&lt;br/&gt;
&lt;br/&gt;                        &amp;amp;lt;select id = "searchoption" name = "searchoption" size = "1"&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Contains"&gt; Contains&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Equals"&gt; Equals&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Starts with"&gt; Starts with&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "More than"&gt; More than&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Less than"&gt; Less than&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Equal Or more than"&gt; Equal or more than&amp;amp;lt;/option&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "Equal Or less than"&gt; Equal or less than&amp;amp;lt;/option&gt;
&lt;br/&gt;                        &amp;amp;lt;/select&gt;
&lt;br/&gt;
&lt;br/&gt;                        &amp;amp;lt;input type = "text" class = "bginput" size = "20" name = "searchfor" value = ""&gt;
&lt;br/&gt;                        &amp;amp;lt;input type = "button" class = "button" name = "searchbutton" value = "Search" onClick = "document.forms.mainform.action.value = 'Search'; document.forms.mainform.submit();"&gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;lt;input type = "submit" class = "button" value = "Show all"&gt;
&lt;br/&gt;                    &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;                    &amp;amp;lt;!--Records per page--&gt;
&lt;br/&gt;                    &amp;amp;lt;td width = "25%" align = "right" valign = "middle"&gt;
&lt;br/&gt;                        &amp;amp;lt;b&gt; Records per page: &amp;amp;lt;/b&gt;&amp;amp;nbsp;&amp;amp;nbsp;
&lt;br/&gt;                        &amp;amp;lt;select name = "pagesizeselect" class = "bginput" onChange = "javascript: document.forms.mainform.action.value = 'pagesize'; document.forms.mainform.pagesize.value = document.forms.mainform.pagesizeselect.options[document.forms.mainform.pagesizeselect.selectedIndex].value;document.forms.mainform.submit();"&gt;
&lt;br/&gt;                            &amp;amp;lt;option value = "10" &amp;amp;lt;%If Session("PageSize") = 10 Then Response.Write " selected"%&gt;&gt;10
&lt;br/&gt;                            &amp;amp;lt;option value = "20" &amp;amp;lt;%If Session("PageSize") = 20 Then Response.Write " selected"%&gt;&gt;20
&lt;br/&gt;                            &amp;amp;lt;option value = "30" &amp;amp;lt;%If Session("PageSize") = 30 Then Response.Write " selected"%&gt;&gt;30
&lt;br/&gt;                            &amp;amp;lt;option value = "50" &amp;amp;lt;%If Session("PageSize") = 50 Then Response.Write " selected"%&gt;&gt;50
&lt;br/&gt;                            &amp;amp;lt;option value = "100" &amp;amp;lt;%If Session("PageSize") = 100 Then Response.Write " selected"%&gt;&gt;100
&lt;br/&gt;                            &amp;amp;lt;option value = "500" &amp;amp;lt;%If Session("PageSize") = 500 Then Response.Write " selected"%&gt;&gt;500
&lt;br/&gt;                        &amp;amp;lt;/select&gt;
&lt;br/&gt;                    &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;                    &amp;amp;lt;/tr&gt;
&lt;br/&gt;                    &amp;amp;lt;/table&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;        &amp;amp;lt;/form&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;%
&lt;br/&gt;            For iIndex = 0 To rsDetails.Fields.Count - 1
&lt;br/&gt;               sNeedQuotes = IfNeedQuotes(rsDetails.Fields(iIndex).Type)
&lt;br/&gt;
&lt;br/&gt;               Response.Write "&amp;amp;lt;input type = ""hidden"" name = ""needquotes" &amp;amp; BuildFieldName(rsDetails.Fields(iIndex).Name) &amp;amp; """ value = """ &amp;amp; sNeedQuotes &amp;amp; """&gt;" &amp;amp; vbCrLf
&lt;br/&gt;               Response.Write "&amp;amp;lt;input type = ""hidden"" name = ""type""" &amp;amp; BuildFieldName(rsDetails.Fields(iIndex).Name) &amp;amp; " value = """ &amp;amp; rsDetails.Fields(iIndex).Type &amp;amp; """&gt;" &amp;amp; vbCrLf
&lt;br/&gt;
&lt;br/&gt;               If (rsDetails.Fields(iIndex).Name = sKeyField1 Or rsDetails.Fields(iIndex).Name = sKeyField2 Or rsDetails.Fields(iIndex).Name = sKeyField3) Then
&lt;br/&gt;                  %&gt;
&lt;br/&gt;                    &amp;amp;lt;script language = "javascript"&gt;
&lt;br/&gt;                        document.forms.editform.needquotes&amp;amp;lt;%=BuildFieldName(rsDetails.Fields(iIndex).Name)%&gt;.value = "&amp;amp;lt;%=sNeedQuotes%&gt;";
&lt;br/&gt;                        document.forms.deleteform.needquotes&amp;amp;lt;%=BuildFieldName(rsDetails.Fields(iIndex).Name)%&gt;.value = "&amp;amp;lt;%=sNeedQuotes%&gt;";
&lt;br/&gt;                     &amp;amp;lt;/script&gt;
&lt;br/&gt;                  &amp;amp;lt;%
&lt;br/&gt;               End If
&lt;br/&gt;            Next
&lt;br/&gt;        %&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;!-- advanced search form --&gt;
&lt;br/&gt;        &amp;amp;lt;form name = "advsearch" method = "post" action = ""&gt;
&lt;br/&gt;        &amp;amp;lt;%
&lt;br/&gt;            For iIndex = 0 To rsDetails.Fields.Count - 1
&lt;br/&gt;               sNeedQuotes = IfNeedQuotes(rsDetails.Fields(iIndex).Type)
&lt;br/&gt;
&lt;br/&gt;               Response.Write "&amp;amp;lt;input type = ""hidden"" name = ""needquotes" &amp;amp; BuildFieldName(rsDetails.Fields(iIndex).Name) &amp;amp; """ value = """ &amp;amp; sNeedQuotes &amp;amp; """&gt;" &amp;amp; vbCrLf
&lt;br/&gt;               Response.Write "&amp;amp;lt;input type = ""hidden"" name = ""type""" &amp;amp; BuildFieldName(rsDetails.Fields(iIndex).Name) &amp;amp; " value = """ &amp;amp; rsDetails.Fields(iIndex).Type &amp;amp; """&gt;" &amp;amp; vbCrLf
&lt;br/&gt;            Next
&lt;br/&gt;        %&gt;
&lt;br/&gt;        &amp;amp;lt;/form&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;!-- export to form --&gt;
&lt;br/&gt;        &amp;amp;lt;form target = "_blank" name = "exportto" method = "post" action = "tblcontacts_export.asp"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "sqlquery" name = "sqlquery" value = "&amp;amp;lt;%=sSQLQuery%&gt;"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "mypage" name = "action" value = "&amp;amp;lt;%=lMyPage%&gt;"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "pagesize" name = "pagesize" value = "&amp;amp;lt;%=lPageSize%&gt;"&gt;
&lt;br/&gt;        &amp;amp;lt;/form&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;!-- printer-friendly form --&gt;
&lt;br/&gt;        &amp;amp;lt;form target = "_blank" name = "printerfriendly" method = "post" action = "print.asp"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "sqlquery" name = "sqlquery" value = "&amp;amp;lt;%=sSQLQuery%&gt;"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "mypage" name = "mypage" value = "&amp;amp;lt;%=lMyPage%&gt;"&gt;
&lt;br/&gt;            &amp;amp;lt;input type = "hidden" id = "pagesize" name = "pagesize" value = "&amp;amp;lt;%=lPageSize%&gt;"&gt;
&lt;br/&gt;        &amp;amp;lt;/form&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;br&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;table style = "margin-bottom: 3px" cellpadding = "0" cellspacing = "1" border = "0" width = "95%" align = "center"&gt;
&lt;br/&gt;        &amp;amp;lt;tr valign = "bottom"&gt;
&lt;br/&gt;            &amp;amp;lt;td class = "left"&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;div class = "pagenav" align = "left"&gt;
&lt;br/&gt;            &amp;amp;lt;table class = "tborder" cellspacing = "1" cellpadding = "3" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td class = "menu_control" style = "font-weight: normal"&gt;Records found&amp;amp;lt;/td&gt;
&lt;br/&gt;                &amp;amp;lt;td class = "alt2"&gt;&amp;amp;lt;span class = "smallfont" title = "Total records found: &amp;amp;lt;%=lMaxRecords%&gt;"&gt;&amp;amp;lt;strong&gt;&amp;amp;lt;%=lMaxRecords%&gt;&amp;amp;lt;/strong&gt;&amp;amp;lt;/span&gt;&amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/div&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td align = "right"&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;div class = "pagenav" align = "right"&gt;
&lt;br/&gt;            &amp;amp;lt;table class = "tborder" cellspacing = "1" cellpadding = "3" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td class = "menu_control" style = "font-weight: normal"&gt;Page &amp;amp;lt;%=lMyPage%&gt; of &amp;amp;lt;%=lMaxPages%&gt;&amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;                Dim lPage
&lt;br/&gt;                Dim lStart
&lt;br/&gt;                Dim lEnd
&lt;br/&gt;
&lt;br/&gt;                For lPage = 1 To lMaxPages
&lt;br/&gt;                    lStart = (lPage * lPageSize) - (lPageSize - 1)
&lt;br/&gt;                    lEnd = lStart + (lPageSize - 1)
&lt;br/&gt;                    
&lt;br/&gt;                    If (lEnd &gt; lMaxRecords) Then lEnd = lMaxRecords
&lt;br/&gt;                    
&lt;br/&gt;                    If (CInt(lPage) = CInt(lMyPage)) Then
&lt;br/&gt;                        Response.Write("&amp;amp;lt;td class = ""alt2""&gt;&amp;amp;lt;span class = ""smallfont"" title = ""Showing results " &amp;amp; lStart &amp;amp; " to " &amp;amp; lEnd &amp;amp; " of " &amp;amp; lMaxRecords &amp;amp; """&gt;&amp;amp;lt;strong&gt;&amp;amp;lt;a href = ""javascript:GotoPage(" &amp;amp; lPage &amp;amp; ");""&gt;" &amp;amp; lPage &amp;amp; "&amp;amp;lt;/strong&gt;&amp;amp;lt;/span&gt;&amp;amp;lt;/td&gt;")
&lt;br/&gt;                    Else
&lt;br/&gt;                        Response.Write("&amp;amp;lt;td class = ""alt1""&gt;&amp;amp;lt;span class = ""smallfont"" title = ""Show results " &amp;amp; lStart &amp;amp; " to " &amp;amp; lEnd &amp;amp; " of " &amp;amp; lMaxRecords &amp;amp; """&gt;&amp;amp;lt;a href = ""javascript:GotoPage(" &amp;amp; lPage &amp;amp; ");""&gt;" &amp;amp; lPage &amp;amp; "&amp;amp;lt;/span&gt;&amp;amp;lt;/td&gt;")
&lt;br/&gt;                    End If
&lt;br/&gt;                Next
&lt;br/&gt;                %&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/div&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;        &amp;amp;lt;/tr&gt;
&lt;br/&gt;        &amp;amp;lt;/table&gt;
&lt;br/&gt;
&lt;br/&gt;        &amp;amp;lt;table class = "tborder" cellpadding = "0" cellspacing = "0" border = "0" width = "95%" align = "center"&gt;
&lt;br/&gt;        &amp;amp;lt;tr&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead"&gt;Edit&amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead"&gt;Delete&amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by custid" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("CustID")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("CustID")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "CustID")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("CustID") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "CustID" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by contacttype" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("ContactType")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("ContactType")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "ContactType")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("ContactType") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "ContactType" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by fullname" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("FullName")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("FullName")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "FullName")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("FullName") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "FullName" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by sal" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("Sal")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("Sal")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "Sal")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("Sal") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "Sal" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by firstname" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("FirstName")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("FirstName")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "FirstName")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("FirstName") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "FirstName" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by middle" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("Middle")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("Middle")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "Middle")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("Middle") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "Middle" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by lastname" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("LastName")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("LastName")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "LastName")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("LastName") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "LastName" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by nickname" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("Nickname")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("Nickname")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "Nickname")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("Nickname") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "Nickname" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by title" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("Title")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("Title")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "Title")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("Title") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "Title" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by accttype" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("AcctType")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("AcctType")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "AcctType")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("AcctType") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "AcctType" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by accountmgr" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("AccountMgr")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("AccountMgr")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "AccountMgr")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("AccountMgr") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "AccountMgr" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by companyid" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("CompanyID")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("CompanyID")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "CompanyID")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("CompanyID") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "CompanyID" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by company" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("Company")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("Company")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "Company")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("Company") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "Company" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by custcode" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("CustCode")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("CustCode")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "CustCode")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("CustCode") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "CustCode" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by product" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("Product")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("Product")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "Product")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("Product") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "Product" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by industry" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("Industry")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("Industry")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "Industry")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("Industry") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "Industry" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by department" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("Department")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("Department")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "Department")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("Department") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "Department" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%" cellpadding = "6" cellspacing = "1" border = "0"&gt;
&lt;br/&gt;            &amp;amp;lt;tr&gt;
&lt;br/&gt;                &amp;amp;lt;td width = "100%" class = "thead" title = "Click here to sort by cims/mailcode" nowrap&gt;
&lt;br/&gt;                    &amp;amp;lt;a href = "tblcontacts_index.asp" onClick = "javascript:document.forms.mainform.action.value = 'OrderBy';document.forms.mainform.orderby.value = '&amp;amp;lt;%=QualifyColumn("CIMS/MailCode")%&gt;';document.forms.mainform.submit();return false;"&gt;&amp;amp;lt;%=ListLabel("CIMS/MailCode")%&gt;
&lt;br/&gt;                &amp;amp;lt;%
&lt;br/&gt;
&lt;br/&gt;                If (bInitalOrder = True) Then
&lt;br/&gt;                    If (InStr(1, sDBQueryInitialOrder, "CIMS/MailCode")) Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; GetOrderImage("CIMS/MailCode") &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                Else
&lt;br/&gt;                    If (sOrderColumn = "CIMS/MailCode" And sOrderImage &amp;amp;lt;&gt; "") Then
&lt;br/&gt;                        Response.Write "&amp;amp;lt;img src = 'images/" &amp;amp; sOrderImage &amp;amp; "' border = '0'&gt;&amp;amp;lt;/a&gt;"
&lt;br/&gt;                    End If
&lt;br/&gt;                End If
&lt;br/&gt;
&lt;br/&gt;                %&gt;
&lt;br/&gt;                &amp;amp;lt;/td&gt;
&lt;br/&gt;            &amp;amp;lt;/tr&gt;
&lt;br/&gt;            &amp;amp;lt;/table&gt;
&lt;br/&gt;            &amp;amp;lt;/td&gt;
&lt;br/&gt;
&lt;br/&gt;            &amp;amp;lt;td valign = "top"&gt;
&lt;br/&gt;            &amp;amp;lt;table width = "100%