Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2007, 12:09 PM
Authorized User
 
Join Date: Nov 2007
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hughesie78
Default form not populating mailto in outlook 98

This code works fine with Office 2000 +,. However with outlook 98, it doesn’t populate the body with the field values, anone got any idea why?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>IT Awards</title>
<script language="javascript" type="text/javascript">
<!--



function Submit1_onclick() {
window.location = "ThankYou.htm"

}

// -->
</script>
</head>
<body>
    <form id="frm_Nominations" method=post ACTION="mailto:email@domain.com?subject= nomination." ENCTYPE="text/plain" >
        <div>
            <table border="0" cellpadding="0" cellspacing="4" class="MsoNormalTable" style="z-index: 100;
                left: 8px; margin: auto auto auto 8.25pt; width: 546.85pt; position: absolute;
                top: 216px; mso-cellspacing: 3.0pt; mso-padding-alt: 1.5pt 1.5pt 1.5pt 1.5pt" width="729">
                <tr>
                    <td colspan="2" style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8;
                        padding-left: 1.5pt; background: #cc9933; padding-bottom: 1.5pt; border-left: #d4d0c8;
                        padding-top: 1.5pt; border-bottom: #eddec0 1pt solid; mso-border-bottom-alt: solid #EDDEC0 .75pt">
                        <p align="center" class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: center">
                            <span style="font-size: 17pt; color: white; font-family: Arial">Nomination Form<?xml
                                namespace="" ns="urn:schemas-microsoft-com:office:office" prefix="o" ?><o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8;
                        padding-left: 1.5pt; padding-bottom: 1.5pt; border-left: #d4d0c8; padding-top: 1.5pt;
                        border-bottom: #d4d0c8; background-color: transparent">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 8.5pt; color: #013480; font-family: Arial">Required Fields are
                                indicated with an asterisk (*).<o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8;
                        padding-left: 1.5pt; background: #aeb5d1; padding-bottom: 1.5pt; border-left: #d4d0c8;
                        padding-top: 1.5pt; border-bottom: #eddec0 1pt solid; mso-border-bottom-alt: solid #EDDEC0 .75pt">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: white; font-family: Arial">NOMINEE INFORMATION<o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #013480; font-family: Arial">*Name of Nominee
                            </span><span style="font-size: 6.5pt; color: #013480; font-family: Arial">
                                <o:p></o:p>
                            </span>
                        </p>
                    </td>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #565656; font-family: Arial">
                                <input name="Nominee_Name" size="40" type="text" /><o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #013480; font-family: Arial">*Nominees E-mail
                                Addresses:
                                <o:p></o:p>
                            </span>
                        </p>
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 6.5pt; color: #013480; font-family: Arial">
                                <o:p>&nbsp;</o:p>
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            </span>
                        </p>
                    </td>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #565656; font-family: Arial">
                                <input name="Nominee_Email" size="40" type="text" /><o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8;
                        padding-left: 1.5pt; background: #aeb5d1; padding-bottom: 1.5pt; border-left: #d4d0c8;
                        padding-top: 1.5pt; border-bottom: #eddec0 1pt solid; mso-border-bottom-alt: solid #EDDEC0 .75pt">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: white; font-family: Arial">NOMINATOR INFORMATION<o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #013480; font-family: Arial">*Name of Nominator:
                                <o:p></o:p>
                            </span>
                        </p>
                    </td>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #565656; font-family: Arial">
                                <input name="Nominator_Name" size="40" type="text" /><o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #013480; font-family: Arial">*Nominator E-mail
                                Address:
                                <o:p></o:p>
                            </span>
                        </p>
                    </td>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #565656; font-family: Arial">
                                <input name="Nominator_Email" size="40" type="text" /><o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8;
                        padding-left: 1.5pt; background: #aeb5d1; padding-bottom: 1.5pt; border-left: #d4d0c8;
                        padding-top: 1.5pt; border-bottom: #eddec0 1pt solid; mso-border-bottom-alt: solid #EDDEC0 .75pt">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: white; font-family: Arial">REASONS FOR THE NOMINATION<o:p></o:p></span></p>
                    </td>
                </tr>
                <tr>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #013480; font-family: Arial">*Nomination Category
                                â€“ value the person displayed<o:p></o:p></span></p>
                    </td>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; padding-top: 1.5pt; border-bottom: #d4d0c8;
                        background-color: transparent">



<select name="Nomination_Category">
<option value="Customer Focused">Customer Focused</option>
<option value="Team Oriented">Team Oriented</option>
<option value="Performace Drive">Performace Drive</option>
<option value="Entrepeneurial" >Entrepeneurial</option>
</select>



                    </td>
                </tr>
                <tr>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; width: 49.18%; padding-top: 1.5pt;
                        border-bottom: #eddec0 1pt solid; background-color: transparent; mso-border-bottom-alt: solid #EDDEC0 .75pt"
                        width="49%">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #013480; font-family: Arial">*What did the Nominee
                                do to be deserving of a Living the values Award?
                                <o:p></o:p>
                            </span>
                        </p>
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 6.5pt; color: #013480; font-family: Arial">(i.e. detail activity
                                including how it links to the values e.g “Customer Focusedt” value; what results
                                were achieved for the Customer - value add, customer experience etc.)<o:p></o:p></span></p>
                    </td>
                    <td style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8; padding-left: 1.5pt;
                        padding-bottom: 1.5pt; border-left: #d4d0c8; padding-top: 1.5pt; border-bottom: #d4d0c8;
                        background-color: transparent">
                        <p class="MsoNormal" style="margin: 0cm 0cm 0pt">
                            <span style="font-size: 9.5pt; color: #565656; font-family: Arial">
                                <textarea cols="32" name="Business_Case" rows="6"></textarea><o:p></o:p></span></p>
                    </td>
                </tr>
                <tr style="mso-yfti-lastrow: yes">
                    <td colspan="2" style="border-right: #d4d0c8; padding-right: 1.5pt; border-top: #d4d0c8;
                        padding-left: 1.5pt; padding-bottom: 1.5pt; border-left: #d4d0c8; padding-top: 1.5pt;
                        border-bottom: #d4d0c8; background-color: transparent">
                        <p align="center" class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: center">
                            <span style="font-size: 9.5pt; color: #565656; font-family: Arial">
                                <input type="submit"
                                    value="Submit Your Nomination" id="Submit1" language="javascript" onclick="return Submit1_onclick()" /></span></p>
                    </td>
                </tr>
            </table>
            <h1 style="margin: 3pt 0.75pt 3pt 8.25pt">
                <span style="font-size: 15pt; font-family: Arial"><span style="color: #c0912f"></span>
                </span>&nbsp;</h1>
            <h1 style="margin: 3pt 0.75pt 3pt 8.25pt">
                &nbsp;</h1>
            <h1 style="margin: 3pt 0.75pt 3pt 8.25pt">
                &nbsp;</h1>
            <h1 style="margin: 3pt 0.75pt 3pt 8.25pt">
                <span style="font-size: 15pt; font-family: Arial"><span style="color: #c0912f">Living
                    the values nominations<?xml namespace="" ns="urn:schemas-microsoft-com:office:office"
                        prefix="o" ?><o:p></o:p></span></span></h1>
            <p style="margin: 5pt 0.75pt 5pt 8.25pt">
                <span style="font-size: 9.5pt; color: #565656; font-family: Arial">
                    <o:p></o:p>
                </span>
            </p>
            <p style="margin: 5pt 0.75pt 5pt 8.25pt">
                <span style="font-size: 9.5pt; color: #565656; font-family: Arial">
                    <o:p></o:p>
                </span>
            </p>
        </div>
    </form>
</body>
</html>
__________________
Thank You
 
Old December 20th, 2007, 10:19 AM
Authorized User
 
Join Date: Nov 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is the code.

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">



    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Response.Redirect("mailto:" & TextBox1.Text)
    End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /></div>
    </form>
</body>
</html>







Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate mailto address from form textbox Hughesie78 ASP.NET 2.0 Professional 1 December 20th, 2007 07:51 AM
Mailto Form Appearance Ron Howerton HTML Code Clinic 5 September 29th, 2007 11:59 PM
Auto Populating Fields in Form E3-PSU Access VBA 3 August 29th, 2007 04:43 AM
Populating report or form textboxes Bosstone100 Access VBA 3 November 15th, 2004 03:53 PM
Populating a form maneor Access 1 September 30th, 2004 03:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.