Creating A String

Im trying to create a string from checkboxes that have been checked, but for some reason its not working

strNumbers = ""
for each key in request.form("chkFacility")
strNumbers = strNumbers + "" & key & ","
intCount = intcount + 1
next

So I want to end up with a string like this '3,12,7.' Instead Im just getting a single number. Am I doing this the right way. Any help wud be just fantastic!!

View Replies


ADVERTISEMENT

Creating A String Based Upon Textbox Value

I wish to have an ASP page that displays a predetermined date in the
middle of a string. I wish this date to be set in a seperate control
panel type page. eg ...

A page called "Confirm.asp" has text ... "These prices are valid until
28th Feb 2006". I currently have to go and hard code the date in
whenever there is a need to change it.

I would like to be able to set this date from another page (eg
"SetDate.asp"), where I type the date in a textbox, click on an "OK"
button, then whenever "Confirm.asp" is opened in the future it picks up
the entered date.

Most form type of code I have found seems to want to email the value in
the textbox somewhere ... which is obviously not what I am after.

View Replies View Related

Problems Creating Query String

I have a problem in that I am trying to use the values from a select object that are referenced when i click a button that is designed to run an onclick.

This onclick runs a url and the rest of my code looks at the query_string and runs accordingly. I have attached the code below for what I am trying to do. Code:

View Replies View Related

Web Forms / HTTP File Upload / String.Split A StreamReader.ReadLine() String

I'm developing an Asp.NET system to take a CSV file uploaded via the web, parse it, and insert the values into an SQL database. My sticking point comes when I try to split() the string returned by readline() on the file.

The following code snippet works for me:
tokens = "one,two,three,four".Split(",")
for each token in tokens
response.write("<td>"+token+"</td>")
next

However, if I take the next line in the CSV, read using StreamReader.ReadLine on the PostedFile.InputStream, I receive "Object reference not set to an instance of an object." which I have narrowed down to be my string holding the line. Further investigation reveals that no other string member functions work on my line (.ToCharArray, .ToString, etc).

I suspect that StreamReader.ReadLine is not correctly returning a string, even though Response.Write(line) displays what I would expect .....

View Replies View Related

String Functions Run On Empty String

I have a form in which several elements are expected to be all digits. Some of those elements can be left empty, but if specified they must be all digits. I have this Sub to edit them: ....

View Replies View Related

Text String To A Interger String

I am pulling info from a sql server By default the query pulls back the inforamtion as text.Therefore when I go to calculate some figures its giving me a type mismatch error.
Is there a function in can call to convert a text string to an integer string using

rstSearch.Fields("name").Value .To pull back the info in a for loop

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch

View Replies View Related

Creating A New Asp.net

Environment:
Development PC: W2K Professional
WebServer: W2K Server, IIS 5.0
Peer-to-Peer network

I'd like to create a new asp.net project on a remote server (not on the
local (development) machine. I have looked for info on how to do this, but
all I can find are instructions on how to create on localhost, then deploy
later to remote machine.

View Replies View Related

Creating An ASP

what's involved in creating an ASP? I need to create a web page where users can check their past history of the account.

View Replies View Related

Creating XML In ASP

So i currently have an asp page that creates an xml document with information from a database. However I need to link to my schema when creating the Root element here,

Set objRoot = objDom.createElement("projects")

this is the link that would go into projects:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="semesters.xsd"

View Replies View Related

Re Creating A .csv File

I know how to use ASP to create and write into a .CSV file on the server, but I have a small problem. Every time I write to the file I am adding new lines each time. I don't know how to wipe the previous contents out, and I thought this is probably a no-brainer for you guys ...

So, I'm looking either to delete the file at the start of the process and start from scratch or

* open the file
* wipe all contents from file
* write to the newly cleaned file

View Replies View Related

Creating A ZIP File

How can i create a ZIP file from a folder (full of files) of the server.?

View Replies View Related

Creating A New Cookie

I have an asp page where i created cookies-for admin and for user. The aspx page reads these cookies. Everything seems to work fine but now i have to create a new cookie if cookie has expired or if cookie is null. Also, i am having problems with the expire because if the username belongs to the admin for example and then i want to change
the username that belongs to a normal user the cookie recognises the first (admin) cookie. How do i solve this? .....

View Replies View Related

Creating Fields

I want to create an order form for prints online... I will have up to 200 prints to be selected. What I am thinking is that I will have an HTML Form that has all the 200 thumbnails with a check box next to them. They select the ones they want and push next. Then I would like it to create a set of options for each one they selected.

That basically says the image name then has a check box for 5x7, 8x10 and a text box for the amount for each... I do I create the page what creates these selections and how to I incorporate that into a mail form going to the next page?... it seems like a simple enough idea. Am wondering how the reality of it will be.

View Replies View Related

Creating An Odd Array

I am trying to pass a form value and pull some values from an array. I am getting no errors but no values on this code. Any ideas? Code:

View Replies View Related

Creating A Menu Using ASP

I am using asp and access database. I need to create a menu according each member access. In other words, if member login I need to display the menu according to the services the member selected during registration. Each service contains diff type of products.

Service1
-produc1
-product2
Service2
-produc1
-product2
-product3
..more
Service3
-produc1
-product2
..more

What is the best way to this...

View Replies View Related

Creating Rss Newsfeed

i have website which provide daily news. we store the news into sql database. i want to create a rssnewsfeed which i can provide to other websitemasters. can anyone tell me the asp code or other where i can create rssnewsfeed from my sql data.

View Replies View Related

Creating A Task

I have a problem. I have a database with 1000 e-mails that i use in my
mailinglist. And when i send them mails it takes kinda long since i attach a
..pdf file each time. so i was wondering if there is a way in asp to create a
task on the webserver using asp to trigger a script that sends the mails.
sure i could use server.scripttimeout but the thing is that i dont want to
wait 30 seconds for the page to finish loading. and if there will be 3000 in
near future i'll have to wait for a very loooooong time.

anyone know how to create a task using asp dynamically?

View Replies View Related

Creating Thumbnails

I'm doing a gallery and I need to make some thumbnails of the images, but yeah...I don't know how, especially since I can't access the server to install stuff. And to be honest I wouldn't know how to install them in the first place (linux server)

Now...the best solution I've come up with so far is to send a string to another webserver that runs on a decent platform and use asp.not to make the thumbnail and then link it from there...would be a pain in the butt though, so if anyone has some good advice then I'm all ears (even if the advice is to give up, tbh)

View Replies View Related

Creating PDF Reports

I'm pretty new to the whole concept of Server Side programming and am currently developing some important elements for a site I have made with Classic ASP programming. One of the things my employer wants me to develop is a Server Side script that will allow a report in PDF format to be generated online to customers who make use of the tools.

View Replies View Related

Creating Hyperlinks?

I need to format each row being returned in a recordset as
a hyperlink. One of the fields being returned is the
subject of a message that my hyperlink will show. When
the hyperlink is clicked then the ASP page loads further
message details of that link. Does anyone know how to do
this?

View Replies View Related

Creating A Graph With ASP

I have the following graph (see atttached file) and was wondering if it would be possible to create this graph by using ASP and how easy it would be. If it is possible could someone give me a few links to sites where I could get some code to start me off.

View Replies View Related

Creating Folder Using ASP

Is it possible to create a folder using a virtual path? This is for a site on a shared hosting server.

View Replies View Related

A Few Questions About Creating Using Asp

First, how can I get asp to create a table in en existing DB that is an atuonumber. Meaning.. If say table 56 exists alrady, I want it to create 58 as the name. Along with this, I need to copy the fields from table temp, into the above DB. Can this be done?

View Replies View Related

Error Creating COM

I get a "-2147467259" error (unspecified error) when I try to instantiate an
object on my web page. the object is in registered in the Component
Services and when I test the component manually by a VB app, it works fine.
My web site virtual directory security settings allows me to execute scripts
(if that helps).

View Replies View Related

Creating Rtfs

I am currently pulling records from my database and exporting them to rtf.
My problem however lies in formatting the data in the rtf. More specifically with putting the data into a table.
Does anyone know how to control the width of a table when generating a rtf?

View Replies View Related

Creating Sub-recordsets

How do I create a recordset from another?

e.g.
sSQL1="SELECT * FROM ThisTable"
rs1.open sSQL1,conn

sSQL2="Select * from (rs1?) WHERE name='fred' "
rs2.open sSQL2,conn

View Replies View Related

Creating A New Profile

When creating a new profile, I want my ASP page to look at a Social Security Field that is being submitted and compare it to the database to see if that Social Security Number already exists. How can I do this? Can I create a filter in the database itselft?

View Replies View Related

Creating A Site Map

i have a website and i want to create a hieracial site map e.g.

main

>sub section 1
>>subsection 1 page1
>>subsection 1 page 2
>sub section 2
>>subsection 2 page1
>>subsection 2 page 2

in my database i have 3 tables .. 1st is called tablemain which contains 2 fields the section name and the section id.. 2nd table is called tablesub which which again also contains 2 fields a section name and id .. the 3rd table is called pages and contains 3 fields a maincatid a subcatid and pagecontent field.

my question is how would i query these tables and loop through to create a hieracial structure for a site map.

View Replies View Related

Creating An Asp Page

i want to include an xml file as an asp include file - i'm transforming it using xslt, but it just appears as a blank.i take it i have to use xslt to transform the xml file to an asp page. can anyone point me to tutorials or tell me how ?

View Replies View Related

Creating ZIP Archive

How can i create a ZIP archive of an already present folder? This folder might have some nested folders in it too.
I have seen some components where we can create the ZIP archive but these add the files to the main archive folder that will be created when you specify the name of the archived folder and its intended destination.
I already have the folder with the files in it.

View Replies View Related

Creating Excel In Asp

i want to generate excel spreadsheet from asp by fetching record from access database. i want to save the excel file on the server and make the excel file read-only too. can i do this in anyway ? if yes, then plz help me by providing with samples or tutorials.

View Replies View Related

Reg Creating Sessions

I have a job application form that includes 4 pages. The problem is for example when a user fills up 2 pages and if comes back by hitting "Back" button, and changes/updates the form, and then hits the "Continue" button, the form is creating a new id after hitting the continue button. So it is creating multiple records for the same user creating multiple ID's. I kind of know the solution, that if i create a session, the problem will be taken care of. But don't know how to create session.

View Replies View Related

Creating Variables

This might be an absurd question, but is it possible to create
variables on the fly?
For example, if I have an array of values

myArray(0) = "foo"
myArray(1) = "bar"
myArray(2) = "foobar"

I would like to loop through the array and create variables named
"foo", "bar", and "foobar"

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved