| | |
transfer page
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2005
Posts: 4
Reputation:
Solved Threads: 0
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
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
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
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
•
•
Join Date: Aug 2005
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
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
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
![]() |
Similar Threads
- ASP.NET wizard control (ASP.NET)
- Create .aspx page at runtime (ASP.NET)
- Does Google Penalize for too many inbound links (Search Engine Optimization)
- Php Frames (PHP)
- Getting data from ASP page A to ASP page B using javascript (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: How can we include a clientside script like Java script
- Next Thread: System.InvalidCastException: Specified cast is not valid
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos application asp asp.net bc30451 bottomasp.net box browser button c# c#gridviewcolumn checkbox click commonfunctions confirmationcodegeneration css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit expose feedback fileuploader fill flash form formatdecimal forms formview grid gridview gudi homeedition hosting iframe iis javascript jquery listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols parent radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security select silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos view virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





