473,748 Members | 8,760 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

After response.redire ct to mailto: want screen control

I have a recruiter website listing jobs. Some postings having email links
directly to the employer (instead of the usual email link to the
recruiter owner). The owner wishes to track when people reply directly to
employers.

So I have an ASP script (it looks like an email link but fires of an ASP)
that has to do 2 things - insert an entry in the database noting this
reply, and open the email client for the user to send directly to the
employer. I open the email client via response.redire ct with
RedirectStmt="m ailto:...."

The database insert works fine. The email client open works fine. But
when I send the email I want my original screen back (the list of jobs).
Instead it's a blank screen, even though after the response.redire ct I do
a server.transfer ("listpositions .asp"). Apparently response.redire ct
prevents later code in that ASP from running.

Also, the Properties of the blank screen is

mailto:hr@compa ny.com?subject= HR Manager Position

so the email client AND the remaining under-screen are from the
response.redire ct.

Can I control (change) the screen appearing after the email has been
sent? Seems like response.redire ct has hijacked it and I have lost
control.

Thanks!
Pete
Jul 19 '05 #1
3 9625
Thanks - this is a dumb question, but within the Javascript, how do I
retrieve the ASP Application variable that I need to pass to it with all
the parameters?

I thought this would work as an example of all in one script (I
eventually have to pass as an Application variable but that should be
easy:

<%
Dim mailtoStmt
cont DQ = """"
mailtoStmt = "mailto:yo***** *@yoursite.com"
%>

<script language="javas cript">
window.open(<%= DQ & mailtoStmt & DQ %>);
</script>

It says DQ is not defined.
I'm sure this is trivial but I'm stumped.

Pete
"Mark Schupp" <ms*****@ielear ning.com> wrote in
news:#z******** ******@tk2msftn gp13.phx.gbl:
Have the link call an asp script that updates the database and then
rebuilds the listing page.
Add the following to the page as it is rebuilt

<script language="javas cript">
window.open("ma ilto:yo******@y oursite.com");
</script>

Test with various browsers (works with IE 6 on windows 2000).


Jul 19 '05 #2
> cont DQ = """"

You spelled const wrong. Why do you need to make this a const anyway?
Jul 19 '05 #3
you probably mean

const DQ

but you don't need it

<script language="javas cript">
window.open("<% =mailtoStmt%>") ;
</script>
--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
ms*****@ielearn ing.com
http://www.ielearning.com
714.637.9480 x17
"Peter Bassett" <pb**********@c omcast.net> wrote in message
news:Xn******** *************** ***********@204 .127.204.17...
Thanks - this is a dumb question, but within the Javascript, how do I
retrieve the ASP Application variable that I need to pass to it with all
the parameters?

I thought this would work as an example of all in one script (I
eventually have to pass as an Application variable but that should be
easy:

<%
Dim mailtoStmt
cont DQ = """"
mailtoStmt = "mailto:yo***** *@yoursite.com"
%>

<script language="javas cript">
window.open(<%= DQ & mailtoStmt & DQ %>);
</script>

It says DQ is not defined.
I'm sure this is trivial but I'm stumped.

Pete
"Mark Schupp" <ms*****@ielear ning.com> wrote in
news:#z******** ******@tk2msftn gp13.phx.gbl:
Have the link call an asp script that updates the database and then
rebuilds the listing page.
Add the following to the page as it is rebuilt

<script language="javas cript">
window.open("ma ilto:yo******@y oursite.com");
</script>

Test with various browsers (works with IE 6 on windows 2000).

Jul 19 '05 #4

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

Similar topics

5
3600
by: Nazir | last post by:
I am trying to do something pretty simple - but can't see how it can be done in ASP.NET. I have an aspx web page with a form which opens up a new window. The web page uses code behind to build the new window. There is simple validation on the form. However, after the form page validates and opens the new window, I want it to redirect to another page (or stop displaying the form).
6
4323
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx serves two purposes, 1. it contains a tab strip with response.redirects to navigate to the other pages; 2. I authenticate the user by check to see if a cookie exists, if it doesn't I redirect to a login screen.
3
818
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here is the code: If (sServiceCenter = "*ALL") Then sServiceCenter = "%"
11
26885
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as follows: private void SubmitButton_Click (object sender, System.EventArgs e) { // Set up the response to write the print file to the client Response.Clear (); Response.AppendHeader ("Content-Disposition", "filename=WebPrint.prn");
13
5676
by: Chris | last post by:
I can create Javascript confirm message boxes during page creation, etc adding them to the button attributes (many good posts on this!). But how can I add this event after the button is pressed? I have created an Is_Dirty routine checking for field changes on my page then if the user clicks on the "exit" button I check for Is_Dirty = true and want to ask then "do you want to exit without saving?". It's a code behind where if the value of...
10
3090
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web config does specify a machinekey setting: <machineKey validationKey="447C05E8B3A71401CC4CAE5513A7F1A3494A3618EE819316AAD1D58433F236A759D66FB4154500E01EB4E1BC1DE42046E2D652D391CB8367A1649438867A02EB"...
5
4571
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks a session variable, and if it is not present, does a Response.Redirect to a webpage for the CAS passing a url parameter for the url to post back to. The CAS provides a page for the user to log into, validates the username and password, and then...
9
1830
by: M | last post by:
Hello all, We've got the following problem: When a visitor klicks a dead link he ends up on a 404-page like should be. On that page there's an opportunity to mail the webmaster (me) about the missing page. Most visitors don't describe the link or the page they came from (containing the dead link) so I really would like to prefill their email with the URL of the page that seems to be missing. All ideas are welcome...
1
3962
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. Is it possible to display an UpdateProgress control when an event calling Response.Redirect is executed? I have a simple webform with an ImageButton and an UpdateProgress control. My ImageButton's click event contains the following code: Response.Redirect("ProductCatalog.aspx") The ProductCatalog.aspx page may take several seconds to load, so I wish to add an UpdateProgress to show the user "Loading...". I've added the...
0
9374
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
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
9249
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
8244
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
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
4607
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...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2215
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.