Solved

Getting a response to a specific table

Posted on 2002-07-24
3
143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating Date Part2 2 27
Html date format 9 20
HTML INPUT 6 22
Ajax on ASP 2 42
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

730 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