473,545 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1240
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******@world net.att.net> wrote in message
news:sY******** *************@b gtnsc05-news.ops.worldn et.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******@world net.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.

Unfortunatel y 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.Redi rect("http://www.mysite.com/thankyou.htm")% >
<% end if %>

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

"Jeff Cochran" <je*********@zi na.com> wrote in message
news:42******** ********@msnews .microsoft.com. ..
On Sat, 12 Feb 2005 15:07:04 GMT, "RICHARD BROMBERG"
<di******@world net.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
confirmatio n 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.

Unfortunate ly the Confirmation message displays below the Form and
consequentl y 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
4202
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 file that can be written to? Thanks in advance!
1
1703
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 ahead of Pacific time. Is there any way to set the sent time that goes out with an email??? Thanks!
29
3513
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 rest of the code setting objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its properties. Do I need to somehow set IIS5 to...
8
3941
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 and if so, how can I send emails from ASP page... Many thanks in advance
2
1213
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 or yahoo emails the browser doesnt interpret it writes javascript codes like a text on screen. how can i solve it?
16
3149
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. They're getting an error from: Set objCDOMail = Server.CreateObject("CDONTS.NewMail") I know that the new format is:
7
2029
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 an "unknown exception" error. However, I know that it's because there's now too much data (If I remove some of the text it goes fine). I've...
10
19512
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 message and I cannot get it to work. I need to stay with classic asp for this. Here are some things I tried: 'CDONTS Call msg.SetLocaleIDs(65001)
7
2871
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 functionality of cdonts so that I can test/develop on my local machine, preferably without actually sending any mail to the persons involved.
0
7393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7653
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7803
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7411
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7749
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5965
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1871
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
695
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.