Storing values without using Session var.
Posted on 2007-10-17
After the page loads and the 2 strings "rbid" and "rbmt" are validated, I want to "store"
them to be used later and then inserted into the database when Submit is clicked.
(I want these values to persist over any amount of time so using a Session variable won't work)
With VB, I used a Property.
What is the Object Oriented Programming approach (or the best way) in C# to do this?
If you have code examples, that would be great. Thanks
public partial class joinssl : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
string rbid = Request.QueryString["rbid"];
string rbmt = Request.QueryString["rbmt"];
// need to insert those values into the Database later, but don't want to
// rely on using Request.QueryString when the insertion occurs