Color Safe Palette or Nested For Next Loops & Arrays
2927Color Safe Palette or Nested For Next Loops & Arrayshttp://www.codeave.com/asp/code.asp?u_log=126The browser can do a great many things, but it has a limit of 216 colors that can “safely†(without dithering or color washout) display. Fortunately, there are many ways that you can display all the color combinations in the browser safe color palette. By placing the six possible values for color (00,33,66,99,CC,FF) in an array and nesting three for next statements with values one through six a table with all the color codes will neatly be displayed in a table.ASP > Tips and Tutorials > MiscellaneousOct 10, 2006
The stored procedure is called SQL2PDF, in order to execute it from ASP the simple way but not the best is to create a connection object to your database and then called the Execute method of this objec, just as follow :
Working with arrays could be painful if you could not remove any item after adding them in an array. Arrays are very helpful in programming languages, but in ASP it is not so easy. VBScript does not contains strong functions to remove any item form your array list. Here there is a good ASP code block will be helpfull for your to remove and re-organized your array.
Would you like to provide multi-language support on your site? In this article, we discuss three different ways in which you could organize your site to support multiple languages. We do not say that the three ways discussed in this article are the only ways of achieving the goal but this could be a good starting point.
In the examples bellow, by using Include/virtual the asp file will send us a file originally writen in html format. The way this response page is displayed will depent on the ContentType we have defined. You may click in the file names to see them working.
Sometimes it's useful to present data to users in Excel format, so they can easily manipulate the data themselves. In this article, a very simple technique for accomplishing this is demonstrated.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.