Wrox Programmer Forums
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 February 5th, 2008, 08:34 AM
Authorized User
Join Date: Jan 2008
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default add functionality

The following code redirect the user on confirmation.aspx on submit button click. The confirmation page actually retrieve the two values (Tmail and Fmail) and then display them in a label control.

What i want is to get rid of the confirmation.aspx and clear the content of the existing page and then display the two values(Tmail and Fmail) in a label.

how can i do that?


 Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles submit_Button.Click
        Dim link As String
        link = Request.QueryString("Url")

        Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
        Dim Mailmsg As New System.Net.Mail.MailMessage
        Mailmsg.To.Add(New System.Net.Mail.MailAddress(RName_TextBox.Text.ToS tring()))
        Mailmsg.From = New System.Net.Mail.MailAddress(FName_TextBox.Text.ToS tring())
        Mailmsg.Subject = (Subject_TextBox.Text.ToString())

        Mailmsg.Body = Comments_TextBox.Text.ToString() & "Please click here on the link to read the article " & link

        obj.Host = "localhost"


        Response.Redirect("confirmation.aspx?Tmail=" & RName_TextBox.Text & "&Fmail=" & FName_TextBox.Text)

        ' sb.Append("<p><a href='popupfriend.aspx?URL=" & Str() & "' class='popup'>Send to Friend</a></p>")

    End Sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
GSM Functionality taofeeklasisi Pro Visual Basic 2005 0 September 18th, 2007 07:01 AM
onLoad functionality NEO1976 Javascript 0 May 23rd, 2006 09:38 AM
Functionality of dataadaptor haribala.raj General .NET 1 September 13th, 2005 01:01 PM
How to add search functionality to unbounded form? method Access VBA 4 June 24th, 2005 06:40 AM
Functionality in Dotnet anand_asv General .NET 1 April 8th, 2005 02:49 AM

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