Solved

Getting a response to a specific table

Posted on 2002-07-24
3
139 Views
Last Modified: 2010-04-09
I've got some validation on a form, the following is an example:

If surname.value = "" Then
Response.Write "Please enter a valid Surname"
Exit Sub
End If

If an error message is returned I want the response to appear in a specific table called 'error_response' and not just at the top of the page.

Could somebody show me some code that will do this

Regards,

Matt.

0
Comment
Question by:Matt_Unsworth
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
knightEknight earned 50 total points
ID: 7175150
dim errMsg
If surname.value = "" Then
 errMsg = "Please enter a valid Surname"
Exit Sub
End If

then in your table

<TABLE id='error_response'>
<TR><TD><%=errMsg%></TD></TR>
</TABLE>
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 7175153
actually, the dim errMsg statement must be outside the sub ...
0
 

Author Comment

by:Matt_Unsworth
ID: 7221953
Cheers,

Matt.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now