473,378 Members | 1,419 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,378 software developers and data experts.

session value

I am using belove code.I want to send session's value a variable in another
page.

How can I take session value.

script="<Language=VBScript> session(\"Id\")= ";

script+= kullaniciId;

script+="</script>";

Page.RegisterStartupScript("Startup", script);

Thanks.

Nov 18 '05 #1
2 1145
Hello Selen,
The result of your code will result code like that in the HTML page sent
to the browser
<script language=VBScript>
session("id")=123
</script>
and this code is a client side code so you can't affect the session
object on the server !!! I think you have to change you technique. If I
misunderstand you please tell me.

Thanks

--
Mohamed Sharaf
Microsoft GTSC Developer support for Middle East
"selen" <sk*****@yahoo.com> wrote in message
news:OR*************@TK2MSFTNGP12.phx.gbl...
I am using belove code.I want to send session's value a variable in another page.

How can I take session value.

script="<Language=VBScript> session(\"Id\")= ";

script+= kullaniciId;

script+="</script>";

Page.RegisterStartupScript("Startup", script);

Thanks.

Nov 18 '05 #2
Thank you.I find solution.
I used Session["key"]="value";
string=(string)Session["key"];
"Mohamed Sharaf" <Mo************@egdsc.microsoft.com>, iletide şunu yazdı
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello Selen,
The result of your code will result code like that in the HTML page sent to the browser
<script language=VBScript>
session("id")=123
</script>
and this code is a client side code so you can't affect the session
object on the server !!! I think you have to change you technique. If I
misunderstand you please tell me.

Thanks

--
Mohamed Sharaf
Microsoft GTSC Developer support for Middle East
"selen" <sk*****@yahoo.com> wrote in message
news:OR*************@TK2MSFTNGP12.phx.gbl...
I am using belove code.I want to send session's value a variable in

another
page.

How can I take session value.

script="<Language=VBScript> session(\"Id\")= ";

script+= kullaniciId;

script+="</script>";

Page.RegisterStartupScript("Startup", script);

Thanks.


Nov 18 '05 #3

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

Similar topics

2
by: Rea | last post by:
Hi! I've searched high and low for this on the net but stil haven't found an answer. I'm trying to install both postnuke and xoops on a win2k server with php 4.3.3. and mysql installed. ...
13
by: Mimi | last post by:
Hello, I am having trouble using the session vars in PHP 4.3.9 OS: Win XP Prof Web Server IIS (is local and there are no links to other servers from the web pages I work on) Browser: IE 6.0 ...
1
by: mudge | last post by:
I'm running PHP Version 4.3.10. I'm trying to make it so that when a person logs in using a user name and password that their session is valid and continues for a few months so they don't have to...
1
by: Michael Albanese | last post by:
I am building an ASP.Net web application that records employee incident data over several screens. I have built custom classes to hold this information as the user enters data. In order to persist...
2
by: John Mullin | last post by:
We are having a problem which appears similar to a previous posting: http://groups.google.com/groups?hl=en&lr=&frame=right&th=d97f552e10f8c94c&seekm=OZw33z9EDHA.2312%40TK2MSFTNGP10.phx.gbl#link1 ...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
2
by: Gavin Lyons via .NET 247 | last post by:
Hello, I'm writing a newsletter application which uses backgroundthreading. I'm using Session variable to report on progresswhile it loops through a dataset. The 'Status.aspx' pagerefreshes every...
7
by: aroraamit81 | last post by:
Well Guys, Here is a very strange trouble. When more than one users request tto same page at the same time then our session gets conflicted. Moreover I printed my SessionID, strangely but true I...
16
by: Jonathan Wood | last post by:
Greetings, I was wondering if anyone here has a good understaning of the Session object. I know there are options like the Session.Abandon method and the regenerateExpiredSessionId setting,...
7
by: gowthamkg | last post by:
For the following code when ever i open the this page the text box has / i ahve set the value of text box with session variables whic is exuted only when submit button is clicked....Pls Help me.......
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.