RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1488 | Replies: 2 | Thread Tools  Display Modes
Reply
Join Date: Aug 2005
Posts: 4
Reputation: jason_limwk is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jason_limwk jason_limwk is offline Offline
Newbie Poster

transfer page

  #1  
Sep 5th, 2005
Dim strMailBodyHTML As String = ""

strMailBodyHTML &= "<html><body>"
strMailBodyHTML &= " <p><input type=text name=T1 size=20 value=’" & Label2.Text & "’></p> "
strMailBodyHTML &= "<form method=""get"" action=""http://pgssystemie02/autouph/admin.aspx""><p></p><br><input type=""submit"" value=""accept""></form>"
strMailBodyHTML &= "<form method=""get1"" action=""http://pgssystemie02/autouph""><input type=""submit"" value=""cancel""></form>"


strMailBodyHTML &= "<br><br><br>"

strMailBodyHTML &= "</body></html>"

Dim mail As New MailMessage

mail.To = "aaa@aaa.com"

mail.From = "blablabla@blablabla.com"

mail.Subject = "Test Email Functionality"

mail.BodyFormat = MailFormat.Html

mail.Body = strMailBodyHTML

SmtpMail.SmtpServer = "localhost"

SmtpMail.Send(mail)
Response.Redirect("agnes2005.aspx")


currently i doing with code and it works fine.. wat this code does is...
when a button is clicked... it will pass the data inside my label2.text and display and send it as an email to me...
so as can be seen here...it will redirect me to http://pgssystemie02/autouph/admin.aspx when i click at a button in the email..

so how can i pass the value from the label2 back to my http://pgssystemie02/autouph/admin.aspx page?
using query string? or session?
but the coding part here i am using html ooo..

how ? can anyone help?

thank you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Location: Kansas City, Missouri
Posts: 17
Reputation: cambia is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
cambia's Avatar
cambia cambia is offline Offline
Newbie Poster

Re: transfer page

  #2  
Sep 7th, 2005
Hi Jason,

Try rewriting/reorganizing the HTML body of your email to include the label2 inside the form tags--or a copy of the label. Then when you post to the admin page the contents of label2 should be available to your aspx page. You can probably make it a hidden label or textbox if you don't want it to be visible.

Cheers,
Steve
Reply With Quote  
Join Date: Aug 2005
Posts: 4
Reputation: jason_limwk is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jason_limwk jason_limwk is offline Offline
Newbie Poster

Re: transfer page

  #3  
Sep 7th, 2005
Originally Posted by cambia
Hi Jason,

Try rewriting/reorganizing the HTML body of your email to include the label2 inside the form tags--or a copy of the label. Then when you post to the admin page the contents of label2 should be available to your aspx page. You can probably make it a hidden label or textbox if you don't want it to be visible.

Cheers,
Steve

hi steve.....


thanks for your concern.. i did already find a solution for that using the query string to it.... silliy me.. i forgot to adjust something on the coding so that it could pass the data to the new form

thanks anyway

ooo by the way...~do you noe that in aspx .. we can do a auto reply email when a button is being pressed? hmm.... suddenly this pop out in my mind.. (maybe will find the solution it first b4 i ask you guys .. )

thank you
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:08 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC