G
Guest
I have a function that is called when the user clicks the submit button,
during this function i also set a varaible to "Y" due to that this function
does a post back to the page then redirects. When I look for the session
variable in the page.isPostBack section it equals nothing, it appears that
the variable is not being passed to the post back section correctly. I have
this due to I only want this function to run if the user has something
selected in the grid.
code:
if checkbox.checked.tostring() = true then
dim cars as string = session("selection")
cars = "Y"
end if
in the post back
if page.isPostback
if session("selection") = "Y" then 'this equals nothing I debugged it and
its getting set in the function but being passed as NOTHING
run Function
end if
end if
during this function i also set a varaible to "Y" due to that this function
does a post back to the page then redirects. When I look for the session
variable in the page.isPostBack section it equals nothing, it appears that
the variable is not being passed to the post back section correctly. I have
this due to I only want this function to run if the user has something
selected in the grid.
code:
if checkbox.checked.tostring() = true then
dim cars as string = session("selection")
cars = "Y"
end if
in the post back
if page.isPostback
if session("selection") = "Y" then 'this equals nothing I debugged it and
its getting set in the function but being passed as NOTHING
run Function
end if
end if