473,409 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

ASP CDONTS goes off screen

I am using ASP and CDONTS to read data entered into a Form and E-mail the
data entered to me.

The Form is pretty long and has about thirty Text entry boxes and some radio
buttons.
After the user clicks on the Submit Form button ASP and CDONTS sends a
confirmation message back to the user.

By the time the user fills in the last piece of data the top of the Form has
scrolled off the top of the screen..
That's okay.

After pressing the Submit Form the screen redisplays the Form.

Unfortunately the Confirmation message displays below the Form and
consequently it is off the screen.

Can I force the Confirmation message to appear at the top (possibly above
the Form) or on an entirely new page ??

Thanks

Jul 22 '05 #1
3 1235
1. Use CDO instead of CDONTS

http://aspfaq.com/show.asp?id=2026

2. Have the send mail code re-direct to the URL ending with (e.g.) #top and
add <a name="top"> where you want the confirmation displayed

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"RICHARD BROMBERG" <di******@worldnet.att.net> wrote in message
news:sY*********************@bgtnsc05-news.ops.worldnet.att.net...
I am using ASP and CDONTS to read data entered into a Form and E-mail the
data entered to me.

The Form is pretty long and has about thirty Text entry boxes and some radio buttons.
After the user clicks on the Submit Form button ASP and CDONTS sends a
confirmation message back to the user.

By the time the user fills in the last piece of data the top of the Form has scrolled off the top of the screen..
That's okay.

After pressing the Submit Form the screen redisplays the Form.

Unfortunately the Confirmation message displays below the Form and
consequently it is off the screen.

Can I force the Confirmation message to appear at the top (possibly above
the Form) or on an entirely new page ??

Thanks

Jul 22 '05 #2
On Sat, 12 Feb 2005 15:07:04 GMT, "RICHARD BROMBERG"
<di******@worldnet.att.net> wrote:
I am using ASP and CDONTS to read data entered into a Form and E-mail the
data entered to me.

The Form is pretty long and has about thirty Text entry boxes and some radio
buttons.
After the user clicks on the Submit Form button ASP and CDONTS sends a
confirmation message back to the user.

By the time the user fills in the last piece of data the top of the Form has
scrolled off the top of the screen..
That's okay.

After pressing the Submit Form the screen redisplays the Form.

Unfortunately the Confirmation message displays below the Form and
consequently it is off the screen.

Can I force the Confirmation message to appear at the top (possibly above
the Form) or on an entirely new page ??


Well, umm... Yeah, of course. This doesn't depend on ASP or CDONTS
(Use CDO..) it's simple HTML coding. Use a Target tag to have the
confirmation appear in a new window, direct the user to a new page for
the confirmation or if you must postback to the same form page use a
flag and display the confirmation if the flag is set. Okay, the last
uses a small bit of ASP...

Jeff
Jul 22 '05 #3


Thanks one and all

I did a little thinking and came up with the following code (snippet) and
it seems to work. Thankyou.htm is a seperate page and tells the user his
input was accepted. Any Comments ?

* * * * * * * * * code snippet * * * * * *

<% if ConfirmMsg <> "" then %>
<%Response.Redirect("http://www.mysite.com/thankyou.htm")%>
<% end if %>

* * * * * * * * * code snippet * * * * * *

"Jeff Cochran" <je*********@zina.com> wrote in message
news:42****************@msnews.microsoft.com...
On Sat, 12 Feb 2005 15:07:04 GMT, "RICHARD BROMBERG"
<di******@worldnet.att.net> wrote:
I am using ASP and CDONTS to read data entered into a Form and E-mail the
data entered to me.

The Form is pretty long and has about thirty Text entry boxes and some
radio
buttons.
After the user clicks on the Submit Form button ASP and CDONTS sends a
confirmation message back to the user. xxx

By the time the user fills in the last piece of data the top of the Form
has
scrolled off the top of the screen..
That's okay.

After pressing the Submit Form the screen redisplays the Form.

Unfortunately the Confirmation message displays below the Form and
consequently it is off the screen.

Can I force the Confirmation message to appear at the top (possibly above
the Form) or on an entirely new page ??


Well, umm... Yeah, of course. This doesn't depend on ASP or CDONTS
(Use CDO..) it's simple HTML coding. Use a Target tag to have the
confirmation appear in a new window, direct the user to a new page for
the confirmation or if you must postback to the same form page use a
flag and display the confirmation if the flag is set. Okay, the last
uses a small bit of ASP...

Jeff

Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Steve | last post by:
objNewMail = Server.CreateObject("CDONTS.NewMail") How do I know whether the "Send" command from a CDONTS object actually was sent? Is there a status variable that can be checked? Or a log...
1
by: Simon Wigzell | last post by:
My customers webpage sends emails to everyone in the members database using CDONTS. The customer is on the west coast, the server is on the east coast. The email has Eastern time on it, 3 hours...
29
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the...
8
by: Boris | last post by:
Could someone please tell me if I can use CDONTS in W 2003 Server environment to send emails the same way it is used in W2K Server. I have heard that CDONTS is no longer available in W 2003 Server...
2
by: Savas Ates | last post by:
im sending email with cdonts.. my mail format is html format.. and also in my mail code there are html and javascript codes. i open my mail with outlook it works.. but im sending it to hotmail...
16
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine....
7
by: Griff | last post by:
I have been using the CDONTS component on Windows 2000 to send emails for a long time now (code below). However, over time, the report that I am sending has got rather longer and it now gives me...
10
by: Jed | last post by:
I have a form that needs to handle international characters withing the UTF-8 character set. I have tried all the recommended strategies for getting utf-8 characters from form input to email...
7
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.