Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - asp error - can someone help me?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

asp error - can someone help me?

 Post Reply Post Reply
Author
kasl_33 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote kasl_33 Quote  Post ReplyReply Direct Link To This Post Topic: asp error - can someone help me?
    Posted: 12 November 2004 at 4:59pm
I have a post on my website that needs help and I don't know asp well enough to help this person.  Can someone help?  If you don't want to register, you can just reply here.  Here is the link.  Thanks in advance!

http://www.kaslwebs.com/forum/forum_posts.asp?TID=638&ge t=last#3265
www.kasl.info

The PHP/MySql Web Development site
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2004 at 5:09pm
He just needs to add an End If after these lines:

if len(serialnumber)=0  then
   errorMsg = "You must enter the serial number"
else
if len(modelnumber)=0  then
   errorMsg = "You must enter the model number"
else
if len(description)=0  then
   errorMsg = "You must enter the description"
else
if len(errorMsg)= 0 then
Response.Write "Serial Number=" & serialnumber
Response.Write "Model Number=" & modelnumber
Response.Write "Description=" & description
End If
End If

 that should work
Back to Top
zaboss View Drop Down
Senior Member
Senior Member


Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaboss Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2004 at 5:10pm
Quite easy.

He has several ifs which don't end with an end if. It shoud be:

If ..... then
....
Else
.....
End if
Cristian Banu
Soft 4 web
Back to Top
kasl_33 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote kasl_33 Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2004 at 5:12pm
thanks alot!
www.kasl.info

The PHP/MySql Web Development site
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2004 at 5:58pm

Originally posted by Mart Mart wrote:

He just needs to add an End If after these lines:

if len(serialnumber)=0  then
   errorMsg = "You must enter the serial number"
else
if len(modelnumber)=0  then
   errorMsg = "You must enter the model number"
else
if len(description)=0  then
   errorMsg = "You must enter the description"
else
if len(errorMsg)= 0 then
Response.Write "Serial Number=" & serialnumber
Response.Write "Model Number=" & modelnumber
Response.Write "Description=" & description
End If
End If

 that should work

You know that asp can do "elseif" right?

if len(serialnumber)=0  then
   errorMsg = "You must enter the serial number"
elseif len(modelnumber)=0  then
   errorMsg = "You must enter the model number"
elseif len(description)=0  then
   errorMsg = "You must enter the description"
elseif len(errorMsg)= 0 then
 Response.Write "Serial Number=" & serialnumber
 Response.Write "Model Number=" & modelnumber
 Response.Write "Description=" & description
End If

Back to Top
kasl_33 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote kasl_33 Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2004 at 6:05pm
I didn't know that.  Thanks for the tip.
www.kasl.info

The PHP/MySql Web Development site
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.