473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Remembering of controls values.

On www page I have control:
<asp:TextBox ID="Login" runat="server"></asp:TextBox>

In C# :
protected void Page_UnLoad(object sender, EventArgs e)
{
Session["Login"] = Login.Text;
}

After next page loading expression:
(string)Session["Login"]
is allways empty (independent of previous control value).

I need value of Login.Text while next pages generation. How should I
remember it ?

Best regards
zientek
Nov 17 '05 #1
1 1085

use (App)Web.config
Nov 17 '05 #2

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

Similar topics

1
by: CharitiesOnline.co.uk | last post by:
Hello people, once again I am here to ask you for your help. This time I am working on an online shop for a hospice, I am trying to set up a page which gathers an order from a shopping cart, (this...
2
by: neptune | last post by:
I built a form to access a query with a 2 field primary key. It should use 2 controls to find the unique record and display the other field values on the form. In the criteria section of the...
16
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
0
by: Yahoo | last post by:
Dynamic controls dont remember their viewstate if not added during onInit. I was wondering dynamic controls cannot be added during 'void LoadViewState(object savedState)'? If child controls were...
1
by: Don Wash | last post by:
Hi There! I'm creating reusable ASCX files for my whole site. My site has many sections and sub-sections and sub-sub-sections. So I find it hard to declare controls in the ASPX page. ...
0
by: Davey P | last post by:
I have an asp.net table which I am populating with controls dynamically at runtime. The controls themselves get/set values in a datatable which is stored in viewstate over postbacks. Here is...
0
by: BodeColander | last post by:
Hello, I'm working on a user control (control A) that contains many controls within it (textboxes, a radio button, listboxes, comboboxes and a button - as well as a whack of labels). During a...
10
by: prayag.narula | last post by:
Hi there, Hey guys I am trying to develop an Intenet Explorer plugin that would save passwords and allow me to sign up for a service automatically. Now I have figured out most of the...
0
by: Piotrek \Alchemik\ | last post by:
Hello, i have a problem. I created photo as imagemap and i'd like to create hotspots location depending on some values. So at start i have static class where i put all values: class...
2
by: =?Utf-8?B?TG91aXNhOTk=?= | last post by:
Hello. ive just read some posts on the age old issue of losing dynamic control values on postback. Most people say recreate the controls on the onInit, but i just dont think this serves my purpose....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.