Guest User

Untitled

a guest
Jun 24th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ~/App_Code/Cart.cs
  2.  
  3. Add ASP.NET folder
  4.  
  5. protected void OnSomeButtonClicked(object sender, EventArgs e)
  6. {
  7. if( someCondition )
  8. {
  9. Response.Redirect("~/Other.aspx?action=runAway");
  10. }
  11. }
  12.  
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. if( !IsPostBack )
  16. {
  17. if( "runAway".Equals(Request.QueryString["action"] )
  18. {
  19. RunAway();
  20. }
  21. }
  22. }
  23.  
  24. protected Button1_Clicked(Sender s, Eventargs e){
  25. MyNamespace.Page_Other po = new MyNamespace.Page_Other();
  26. po.Method1();
  27. Response.Redirect("~/page_other.aspx");
  28. }
Add Comment
Please, Sign In to add comment