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?
Thanks
Sheraz
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.Clear()
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"
obj.Send(Mailmsg)
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
|