How is this input tag linking to another page?

 Response.Write("<div><input type='submit' name='submit' value='Update Cart' /></div>")
 Response.Write("<div><input type='submit' name='submit' value='Shop More' /></div>")
 Response.Write("<div><input type='submit' name='submit' value='Checkout' /></div>")

that is some example code from my teacher, but he hasn't answered my email in a couple days so I need some help.

When you click the Update Cart button it just updates the cart page it's on, but when you click the Shop More button it links to Shop.aspx a different page, and the Checkout links to another page as well. I can't figure out how it is linking just from that code, anybody have any insights?


Most likely either a server side redirect has occurred, or there is some Javascript which changed the form's action. Whether that was intentional or not is yet to be determined because the given code snippet doesn't give much to work with.

By checking the value of Request.Form["submit"].ToString() you can perform a conditional operation.

Need Your Help

JSF 2.0: What happens to object references of a managed bean across multiple ajax requests?

java jsf jsf-2

Assume I have a session scoped bean with object references in it, where the bean extends from an abstract generic base class. Example:

Bundeled angular 2 app with express

node.js web-services express angular angular-cli

Ok so I bundled/built a regular angular cli project using webpack for prod and then took the contents of a dist folder and put them in another project with express installed.