troubleshooting Question

How to popup page from cs file in DotNet

Avatar of RadhikaTatamuri
RadhikaTatamuri asked on
JavaScriptASP.NET
3 Comments2 Solutions492 ViewsLast Modified:
I display the success msg in the same aspx page from cs file......
How to display the same using popup page..Also tell me how to transfer values from my page to that pop up page.....

const String approvedFormat = "<p>Transaction Successful!<br />Transaction ID: {0}<br />Transaction Completed at {1}<br />Customer name: {2}<br />Amount paid: {3}</p>";
            const String declinedMessage = "<p>Transaction Declined.<br />Please check your information and try again.<br />If you believe you have received this message in error,<br />please contact us at your local office.</p>";
            if (approved)
            {
                divSuccessMessage.InnerHtml = String.Format(approvedFormat, authCode, DateTime.Now.ToString(), txtFirstName.Text + " " + txtLastName.Text, txtPayment.Text);
                divSuccessMessage.Visible = true;
               
            }
ASKER CERTIFIED SOLUTION
BuggyCoder

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros