Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. snaegs99

    Declaring & Initializing Variables

    OK, now that I got the function working and I looked in a couple forums and realized I can't do server-side database manipulations in this function, I'm stuck again. In this function I need to delete records from the database on the server. This is what I wrote so far: <% Dim connCW %> <%...
  2. snaegs99

    Declaring &amp; Initializing Variables

    Hi Todd, Quick question - I have this button as a column heading of a table and here's how I initialize it: <TH ALIGN=center><INPUT TYPE=button name=cmdDelete value=&quot;Delete&quot; ONCLICK=cmdDelete_Click</TH> I have a generic sub-routine set up so I can see if the ONCLICK command is...
  3. snaegs99

    Declaring &amp; Initializing Variables

    Hi Todd, The following code gives me an error that says &quot;Item cannot be found in the collection corresponding to the requested name or ordinal,&quot; and refers to the line with the *. <% set rsSCID = Server.CreateObject(&quot;ADODB.Recordset&quot;) %> <% rsSCID.Open...
  4. snaegs99

    Declaring &amp; Initializing Variables

    The variable is actually intID, not initID. I declare it like any other variable: <% Dim intID, strQuery %> And then I pick up the max integer in a column of the database like this: strQuery = &quot;SELECT MAX(scID) FROM shoppingcart&quot; intID = rsSC.Execute(strQuery)...
  5. snaegs99

    Declaring &amp; Initializing Variables

    OK, I found that I also need to change the integer back to a string when I pick it up from the database. Seeing the above examples and knowing a little about VB, I tried Session(&quot;scID&quot;) = CStr(intID) and I also tried myStr = CStr(intID) Session(&quot;scID&quot;) = myStr and...
  6. snaegs99

    Declaring &amp; Initializing Variables

    TW~ I am having a little trouble because I don't know how to change this string to an integer so that I can add a number to it and store it in an integer field of a database. Also, how would I go about displaying this value on the screen? Can I access the variable inside the HTML tags, or...
  7. snaegs99

    Declaring &amp; Initializing Variables

    Thank you so much for your help. I will be trying this out tomorrow and will probably be back with some questions. Thanks Again, ~Sarah
  8. snaegs99

    Declaring &amp; Initializing Variables

    The only reason the first page is HTML and not ASP is because that's the way my teacher created it. I'm not sure if I can change it, but I don't think she would mind if I had to change it to an ASP page to make the coding easier. I would still like to know how to do it using an HTML page...
  9. snaegs99

    Declaring &amp; Initializing Variables

    Thank you so much for all of your help. This is for a school assignment and my teacher didn't really know why I was having a problem. If you go to http://csmaster.sxu.edu/snaegele/cougar/cougar.html this is my .html page. My teacher wrote this page and I need to modify it. Click on the...
  10. snaegs99

    Declaring &amp; Initializing Variables

    I would like an example of the hidden parameters. I was trying to use something like <INPUT TYPE=HIDDEN NAME=scID VALUE=<% =scID %>> and then on the recieving page I put <% Dim scID %> <% scID = Request.Form(&quot;scID&quot;) %> and once again I think it wasn't working because I am using a...
  11. snaegs99

    Declaring &amp; Initializing Variables

    Thanks for your immediate responses. I've been playing around with it and realized that I'm trying to do this in a .html page and not an .asp page. My .html page links to .asp pages and needs to pass this value as a parameter. I really don't know how to do this...Any suggestions?
  12. snaegs99

    Declaring &amp; Initializing Variables

    Hi All, I hope you can help me... I am very new to ASP and I am trying to declare a variable and initialize the variable to 0. The following is what I've tried in the body of my code: <% Dim scID %> <% scID = 0 %> scID= <% =scID %> when it displays on the screen scID has a null value. I've...

Part and Inventory Search

Back
Top