asp.net - How can i have a pages text change based on the button clicked on the previous page in c#? -


so have pricing table 3 options, on upgrade.aspx.

  1. 'starter'
  2. 'champ'
  3. 'master'

there button each option. navigate payment.aspx, want variables, such cost, , plan name, different based on button clicked on previous page.

so if clicked 'starter' button, payment.aspx page starter. if clicked 'champ' button, payment.aspx page champ.

there lot of different ways this. seems little ambiguous work best situation however.

one option create singleton class variable set via button handles (ie sets variable "starter" if button pressed).

then view payment.aspx page pull information singleton class or consume want to.

you use form data, cookies, databases, , variety of other things. depends on want store data , how easiest store it.

there ton of facilities kind of event handling. i'd recommend looking @ article , see how works msdn - cross-page posting in asp.net web forms


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -