473,569 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I raise a postback ? Session variable only visible after postback. Please help

gce
Hi,

My project uses some aspx that jump to eachother. Session variables are used
to exchange data.
But my session variables are not there until a postback. So when I put a
button on the second aspx and put there a show session("aaa") it works. But
not in the page_load, session("aaa") is empty. Please help.

Best regards,
Gert
Nov 19 '05 #1
2 1283
How are you navigating from one page to another ? When are you setting your
session variable ? Are you linking one page to the other using a Url or are
you doing a transfer in the server ?

Can you post a little bit of code that explains what you are doing ?

--
Francisco Padron
www.chartfx.com
"gce" <gc****@hotmail .com> wrote in message
news:d5******** **@news3.zwoll1 .ov.home.nl...
Hi,

My project uses some aspx that jump to eachother. Session variables are
used to exchange data.
But my session variables are not there until a postback. So when I put a
button on the second aspx and put there a show session("aaa") it works.
But not in the page_load, session("aaa") is empty. Please help.

Best regards,
Gert

Nov 19 '05 #2
gce
I use the pinTab control with tabs. So maybe the problem is there. But I
hope that I can raise a postback. Is this possible?

"Francisco Padron" <no*****@softwa refx.com> schreef in bericht
news:O3******** *****@TK2MSFTNG P09.phx.gbl...
How are you navigating from one page to another ? When are you setting
your session variable ? Are you linking one page to the other using a Url
or are you doing a transfer in the server ?

Can you post a little bit of code that explains what you are doing ?

--
Francisco Padron
www.chartfx.com
"gce" <gc****@hotmail .com> wrote in message
news:d5******** **@news3.zwoll1 .ov.home.nl...
Hi,

My project uses some aspx that jump to eachother. Session variables are
used to exchange data.
But my session variables are not there until a postback. So when I put a
button on the second aspx and put there a show session("aaa") it works.
But not in the page_load, session("aaa") is empty. Please help.

Best regards,
Gert


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
311
by: DC Gringo | last post by:
Using code-behind, I have a page "index.aspx" that has a user control mainHeader.ascx (with a language selection dropdownlist). Upon selecting a language from the dropdownlist, it should post back OnSelectedIndexChanged to a Sub "languageSelect" in the index.aspx.vb code-behind. The variable should then determine which panels are hidden and...
2
1613
by: Paul | last post by:
Hi I've almost finished the web page I'm developing (with a great deal of help from this group - thanks everyone). My page contains 3 drop down boxes, a SEARCH button, a datagrid (populated using a stored procedure, the stored procedure uses the selectitem in the drop down boxes for the parameters), and a SUBMIT button. I'm not sure...
1
11550
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more complex then I needed. (I got lost trying to figure it all...
1
4103
by: Lisa | last post by:
I have a web app that gets a recordset from the database and fills a grid. You can drilldown from this table to a detail table. Because the tables sometimes get huge, and because I have to go back to the database again every time I postback anyway, I wanted to disable ViewState in the grids. Just to minimize the amount of stuff that gets...
4
1337
by: needin4mation | last post by:
I am inserting a row in a database. All that works fine. What I now need is the last inserted id from the database. I can get that. Again all working. Then what I need to have is that same last inserted id key to be available when the page reloads. When I press the button to insert the data, I can do this: Session("last")=LAST_ID;...
5
6853
by: jason.neo | last post by:
Hi all experts, I am going nuts with this Invalid postback or callback argument thingy with .Net 2.0 I am building a file attachment module which relays on a Datatable stored in session (yeah i know its unhealthy, but its the only "clean" approach which I can think of to avoid tranfering temp files onto the server) to maintain the list...
2
2090
by: =?Utf-8?B?SlA=?= | last post by:
Hi all. I'm having a problem with a postback issue and I think it's cache related. Here's my setup: I have a web site that has a signup section. This has simple things like name, age, birth date, etc. When the user visits this page for the first time, a person's data object that is used to store the user's name, age, birth date, etc. is...
8
6891
by: Mel | last post by:
I have several text boxes and drop-down lists in an AJAX Update Panel. All user inputs have the Postback property set to True. After I type something in the first input entry and press the "Tab" key how can I set the focus to the next box after the postback? Please help! Using Visual Studio 2005 Pro, Asp.net 2.0, vb.net, WinXP
8
4473
by: Dan | last post by:
Hi, i experimented with postback and viewstate. With this code, there are 2 dropdownlists created, one visible and with AutoPostBack true, the other not visible and no AutoPostBack, and one button . The first time, when i choose value "b" of DD1, the second DD appears. That's normal. Now, what i don't understand is when i further click on...
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.