Calculation in code behind

前端 未结 5 1260
悲哀的现实
悲哀的现实 2021-01-28 04:50

Chauffeur service cost $30. It is an option to user whether they want the service or not. When they already select car, and day of rental, I store it in session.



        
5条回答
  •  情书的邮戳
    2021-01-28 05:19

    I suggest use Server.Transfer() instead of Response.Redirect() and use PreviousPage to fetch your required values.

    This will save you from using Session as Session should not be used in this scenario.

    To know how to use PreviousPage see below link.

    http://msdn.microsoft.com/en-us/library/system.web.ui.page.previouspage.aspx

提交回复
热议问题