473,700 Members | 2,641 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 1246
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
4209
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
1710
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
3538
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 make objCDONTS.Send work?
8
3950
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
1218
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
3167
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
2031
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 "compacted" the message as much as I can, but I've got up to the limit now of how much I can compact...
10
19561
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
2885
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
8731
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8649
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9219
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8975
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8931
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5904
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4408
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3097
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
3
2032
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.