Solved

Getting a response to a specific table

Posted on 2002-07-24
3
137 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
Comment Utility
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
Comment Utility
actually, the dim errMsg statement must be outside the sub ...
0
 

Author Comment

by:Matt_Unsworth
Comment Utility
Cheers,

Matt.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

763 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

5 Experts available now in Live!

Get 1:1 Help Now