Click to See Complete Forum and Search --> : just wondering


RoniR
10-16-2006, 08:30 AM
i usually send variables from page to page by using something like that:
link.NavigateUrl = "lstmvt.aspx?id=" + e.Item.DataItem("n_cde").ToString & "&id2=" & e.Item.DataItem("y_cde") & "&to=" & ToRequest & "&from=" & FromRequest & "&type=" & cbtype.SelectedIndex

it it faster if i send the values in global variables? and why?

lmf232s
11-01-2006, 03:17 PM
RoniR,
I would stick with your current method as your not consuming any resources by passing the values from page to page. If you set a global variable (session variable, etc) then that value has to be persisted across each page. Although, your most likely not going to see any difference between the two.

As long as the data your passing is not sensitive then the way your doing it is just fine.