[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Getting a response to a specific table

Posted on 2002-07-24
3
Medium Priority
?
149 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

834 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