Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2005, 11:59 AM
Authorized User
 
Join Date: Mar 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mistry_bhavin
Default Help me with Session in ASP.NET

On my page I have Added Session Variable. I placed tect box and a button on page and coded like below...

private sub page_load(.....)....
me.textbox1.text=session("abc")
end sub

private sub button1_click(....)....
session("abc")="Hello"
end sub

according to me
this code should check each time on page load for session("Abc")
and filles value to textbox1.
meance If i push button then page will be postback and textbox's
text should be hello.

But problem is that if i push that button session variable's value
does not change. and if i push that twice it works.
Why should i need to push button twice ??
 
Old March 15th, 2005, 01:15 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

Review The WebForm Processing Events Order
-Page Load Event Happen Before Button Click Event

Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintain the session in asp.net samgaya1983 ASP.NET 2.0 Professional 2 June 29th, 2007 03:37 AM
ASP.Net without session. soccers_guy10 ASP.NET 1.0 and 1.1 Professional 1 May 8th, 2007 05:49 AM
Problem using Session in ASP.NET Scripts82 VB.NET 2002/2003 Basics 0 December 6th, 2006 09:03 AM
session variables in asp to asp.net marvz ASP.NET 2.0 Basics 0 August 1st, 2005 03:09 AM
ASP .NET using C# session problem !! wireblock ASP.NET 1.0 and 1.1 Basics 4 July 17th, 2003 02:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.