Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 5th, 2008, 08:34 AM
Authorized User
Join Date: Jan 2008
Location: , , .
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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:18 PM.

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