ASP - ASP+VBScript

Asked By JAYA PRAKASH
09-Feb-10 12:18 AM
In this program iam trying to read and store the elements in an array. But it is not storing the elements in an array.
Can anyone please help to correct the errors
<%@LANGUAGE="VBSCRIPT" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%dim n,i%>
<%dim a(10)%>
<%Response.write(date)%>
<%Response.Write("<" & "script language=VBScript>")
Response.Write("InputBox ""Enter the no of elements" & n & """<" & "/script>")%>
<%for  i = 1 to n
Response.Write("<" & "script language=VBScript>")
Response.Write("InputBox ""Enter the array elements" & a(i) & """<" & "/script>")
Response.write("Array" & a(i))
Response.write(n)
next%>
<%for  i = 1 to n
Response.Write("<" & "script language=VBScript>")
Response.Write("MsgBox """ & a(i) & """<" & "/script>")
next%>
</head>
<body>
<form action="array.asp" method="post" name="f">
<input type="submit" name="Display" value="Display">
</form>
</body>
</html>

I already responded to this in your previous attempt  I already responded to this in your previous attempt

  JAYA PRAKASH replied to Robbe Morris
09-Feb-10 10:24 AM
I tried in the way you said. Please can you modify the program so that it can read array elements(not assigning the values to array elements).
Iam in urgent need of the program.

I didn't suggest a coding technique.  I didn't suggest a coding technique.

09-Feb-10 10:59 AM
So, I'm not sure what "tried the way you said" means.

You've intertwined client side code with server side code expecting the two to be able to share variable values.  Doesn't work that way.  You cannot directly populate server side variable with an InputBox or anything else captured client side.

The server and browser are "completely" disconnected.  To get a value from JavaScript into your ASP server side code, you must post that value back to the server.  In classic ASP, the easiest way for a beginner like yourself would be to populate a hidden form element in the page with your client side script.  Then, submit the page back to itself and have your server side asp code grab the value of the hidden form element.
Create New Account
help
Second Configuration Storage Server and member of array Windows Server Can anyone give me detailed instructions on how to install a second CSS server and array member please? I've looked at the Microsoft documentation and it doesn't seem to Discussions CSS (1) ISA (1) DeThanksI (1) CheersHi (1) ThanksHi (1) DeLooks (1) MS (1) Server (1) Hi, install ISA Server on the second CSS and follow the instructions of the Wizard. have you looked at this URLs?: http: / / www.isaserver.org / tutorials / Installing-Configuring-ISA-Server-2004-Enterprise-Edition-Part1.html http: / / www.isaserver.org / tutorials / Installing-Configuring-ISA-Server-2004
Can't reconnect a Hardware RAID5 Array Windows Server Windows2003 server with mirrored OS disks had a SCSI (Compaq) Hardware RAID connected to it. Using Compaq t resurect them (they were a software mirror) I removed the 3200 Controller from the Server. I added (in a different slot) an additional controller and created a hardware RAID 5 and applying all the patches, Service packs and Compaq System Management Software, I downed the server and put the 3200 controller back in the same slot it was before the mirrored drive crash. The Compaq system Management sees the array and correctly relates the number of drives and size etc but the array does not appear in "My Computer" In computer management / Storage / Disk Management the array shows up as DISK 0 Dynamic Foreign I have not tried to import the foreign
urgent: problems reading shared files Windows Server Hi! On a server with MS Windows Server 2003 Standard with SP2 (additional hotfixes installed) I made a transfer from ATA HDD to a RAID array. I made it this way: 1. On the server mainboard (Supermicro X5DPL-8GM) I installed Adaptec SATA II RAID 2420SA controller and connected two Storage Manager ver. 5.01. 3. In ASM I defined a logical device as RAID1 array with the two HDDs. The write cache was disabled on the HDDs and on the CD I cloned the existing ATA HDD (with two NTFS partitions) to the new RAID array and then disconnected the ATA HDD. 5. The server booted successfully from the RAID array. The next day users reported that they had problems
the following connection string to run a number of SQL stored procedures in Excel VBA Server};Server = nae-is-sql1;Database = Database;Trusted_Connection = no;UID = UserID;pword = Password" I have created a silly here, I want this to be a DNS less connection, I am using SQL Server 2000 and Excel version 2003. Thanks PD Excel Programming Discussions SQL Server (1) QueryTables (1) Range (1) Worksheets (1) Excel (1) Windows (1) Sheets (1) Name (1 is: - Create a text file suitable. Rename it to "Whatever.udl". - Double click this file. Enter the appropriate info. Test. - When connection is successful, close and open the file in your favourite text editor. NickHK Server};Server = nae-is-sql1;Database = Database;Trusted_Connection = no;UID = UserI D;pword = Password" at have be X50000").Select Selection.Delete Shift: = xlUp Range("A1").Select With ActiveSheet.QueryTables.Add(Connection: = _ Server};Server = Server1;Database = Database;Trusted_Connection = no;UID = User;pword = pass" _ , Destination: = Range("A1")) .CommandText
the other postings on licensing, but I still have some questions. We have 3 servers. Server 1 - production server - This server is our web front end server. We are using web content publishing features, and one of the web applications uses business data catalog features. This server is the "destination" server for web content. All search and indexing services run on this server. It is NOT used by our intranet and contains only public facing web sites. Server 2 - QA / content authoring server - This server is the QA environment for our Server #1