Hello everybody,
Can anyone please explain me a solution or workaround for my following problem ?
When I want to pass a session variable with a postback, then I always need to click the button twice !
Here's my code :
VB Code:
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. Response.Write(Session("myTest")) InitializeComponent() End Sub #End Region Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Session("myTest") = "testing" End Sub
There's only one button on the page, nothing else ! I need to click twice the button before I can see testing ...![]()
(it's with a postback)
I really don't know anymore how I can solve this !
Thanks in advance,
Bjorn





Reply With Quote