Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: MarkGT
Forum: Classic ASP Basics May 6th, 2008, 08:34 PM
Replies: 11
Views: 1,899
Posted By MarkGT
dparsons, I tried it the way you suggested but it...

dparsons, I tried it the way you suggested but it still doesn't work. I get the following error:

Error Type:
Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid...
Forum: Classic ASP Basics May 6th, 2008, 02:42 PM
Replies: 11
Views: 1,899
Posted By MarkGT
Ok, I sort of figured this out. Below is a piece...

Ok, I sort of figured this out. Below is a piece of code from my page. I have three separate select boxes that populate another select box, based on the selection from the first. I posted...
Forum: Classic ASP Basics May 6th, 2008, 12:42 PM
Replies: 11
Views: 1,899
Posted By MarkGT
I used the r1, r2...etc because it made the sql...

I used the r1, r2...etc because it made the sql statement easier for me to create/read. There are actually 27 fields being updated with the sql statment, I didnt post all of the code because it's...
Forum: Classic ASP Basics May 5th, 2008, 07:21 PM
Replies: 11
Views: 1,899
Posted By MarkGT
Excellent. Thank you, you've been a huge help on...

Excellent. Thank you, you've been a huge help on more than one occasion.
Forum: Classic ASP Basics May 5th, 2008, 07:02 PM
Replies: 11
Views: 1,899
Posted By MarkGT
Need help with conditional sql statement

I need to create a conditional sql statement. I don't know the syntax for putting "if...else" statements inside sql strings. Is that even possible or do I have to break up the sql and...
Forum: VB.NET 2002/2003 Basics April 30th, 2008, 09:46 PM
Replies: 6
Views: 1,639
Posted By MarkGT
Yes, I have a function that orders the array in...

Yes, I have a function that orders the array in ascending order before I attempt to display the distinct elements. I missed that in the original code I posted.
Forum: VB.NET 2002/2003 Basics April 30th, 2008, 02:24 PM
Replies: 6
Views: 1,639
Posted By MarkGT
Hi, thank you for the help. This is the code I...

Hi, thank you for the help. This is the code I have for my counting function:

Private Function countDistinct(ByVal a() As Integer)
Dim count, i As Integer
For i = LBound(a) To (UBound(a) - 1)...
Forum: VB.NET 2002/2003 Basics April 30th, 2008, 01:48 PM
Replies: 6
Views: 1,639
Posted By MarkGT
Help with an array

I need to be able to display only the distinct elements of a dynamic array. For example, if the array consists of:

1,2,2,3,4,5,5,5,5,6,7,8,9,9,9,9

then the output in my text box should be:
...
Forum: Classic ASP Basics April 29th, 2008, 08:31 AM
Replies: 5
Views: 2,342
Posted By MarkGT
Back to the original excel question...I got the: ...

Back to the original excel question...I got the:

Response.ContentType = "application/vnd.ms-excel"


to work, but it doesn't do what I need. I need the excel file to be pre formatted so...
Forum: Classic ASP Basics April 29th, 2008, 07:36 AM
Replies: 3
Views: 2,174
Posted By MarkGT
yes, here is the code <%@ Language =...

yes, here is the code


<%@ Language = VBscript %>
<% Option Explicit %>

<% Response.Buffer = True %>


<html>
Forum: Classic ASP Basics April 28th, 2008, 07:51 PM
Replies: 3
Views: 2,174
Posted By MarkGT
Help with dynamic drop down lists

On my asp page I have 3 forms, each with two drop down lists. Of those two ddls, on each form, one is dependent on the other for population.

I got the dynamic population effect to work, but the...
Forum: Classic ASP Basics April 22nd, 2008, 11:34 PM
Replies: 11
Views: 1,497
Posted By MarkGT
Thats some great info. Thanks a bunch!

Thats some great info. Thanks a bunch!
Forum: Classic ASP Basics April 22nd, 2008, 08:53 PM
Replies: 11
Views: 1,497
Posted By MarkGT
Im doing this for a project at school. So if it...

Im doing this for a project at school. So if it works it's good enough for me right now (I've got a TON more to do still). But I would like to know the "correct" way to do this for future...
Forum: Classic ASP Basics April 22nd, 2008, 07:09 PM
Replies: 11
Views: 1,497
Posted By MarkGT
I do have another question though, about...

I do have another question though, about checkboxes. I can't get my code right for the few checkboxes I have on my form. What I have is below...

if Request.Form("Pass1") = "yes" then ...
Forum: Classic ASP Basics April 22nd, 2008, 07:04 PM
Replies: 11
Views: 1,497
Posted By MarkGT
I just figured it out, before I read your post. ...

I just figured it out, before I read your post. Here is how I did it.

dtDate=request.form("Kickoff")
if dtDate <> "" then
rsAddComments.Fields ("Kickoff") = dtDate
else
dtDate= null...
Forum: Classic ASP Basics April 22nd, 2008, 06:32 PM
Replies: 11
Views: 1,497
Posted By MarkGT
help adding dates to ms Access db

I need to insert dates in my database at times. If a date is entered in the form, there is no issue when submitted for execution. But if no date is entered (the form field is blank) I get a type...
Forum: Classic ASP Basics April 22nd, 2008, 06:22 PM
Replies: 2
Views: 6,113
Posted By MarkGT
It sounds like you could use the datepart...

It sounds like you could use the datepart function. You're talking about news, so lets say in your db you have a column named "story" that holds the title of the news story and another column named...
Forum: Classic ASP Basics April 19th, 2008, 07:48 AM
Replies: 5
Views: 2,342
Posted By MarkGT
Yes its classic asp. I was mistaken, it is not a...

Yes its classic asp. I was mistaken, it is not a data grid. I'm just learning asp. Thank you for the help.

I have another question. I currently have four drop down lists that are independently...
Forum: Classic ASP Basics April 16th, 2008, 12:20 PM
Replies: 5
Views: 2,342
Posted By MarkGT
help exporting data to excel

Hi,

I have an asp page that displays query results in a datagrid. Id like to add a button to the datagrid to allow the user to view the data in a pre-formatted excel spreadsheet so it looks nicer...
Showing results 1 to 19 of 19

 


All times are GMT -4. The time now is 12:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.