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

Session Issues

1
Hi. i'm a 19 year old student, learning basics of ASP.
Sorry. I have a very important question.

how do i put a session variable into the site url?
example instead of userProf.asp
i want it to be userProf?uid=125.asp
where 125 refers to the userid of that user.

How do i go about letting a user view another
user's profile by clicking the username of that user?
example:
i have a listbox. The items inside are user names
of users who are online. how do i link each username
to its own profile page?

please help me.
if you add me on MSN and explain there
would be more efficient. Thanks
<please send me a PM>
Jun 4 '07 #1
1 1173
jhardman
3,406 Expert 2GB
Hi. i'm a 19 year old student, learning basics of ASP.
Sorry. I have a very important question.
Welcome to the scripts DN. We have a policy to not give homework answers outright, but I don't mind helping to clarify points that were probably made in class.
how do i put a session variable into the site url?
example instead of userProf.asp
i want it to be userProf?uid=125.asp
where 125 refers to the userid of that user.
the correct syntax for a querystring variable is:
Expand|Select|Wrap|Line Numbers
  1. userProf.asp?uid=125
If the userID is a session-level variable, you can add it to a link like this:
Expand|Select|Wrap|Line Numbers
  1. <a href="uswerProf.asp?uid=<%=session("userID")%>">Click for user 125 info</a>
How do i go about letting a user view another
user's profile by clicking the username of that user?
example:
i have a listbox. The items inside are user names
of users who are online. how do i link each username
to its own profile page?
There are a few ways I can think of going about this. What do you have so far?
please help me.
if you add me on MSN and explain there
would be more efficient. Thanks
<send a PM>
Please don't list your email address. The scripts DN doesn't want spammers crawling over our pages looking for email addresses to spam. The private messages fulfill this function.

Jared
Jun 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
5
by: ASP.Confused | last post by:
As you can tell from my previous posts on this issue...I'm really confused :-/ I have a few ASP.NET web applications on my web host's "https" server. Our web host has a single "bin" folder for...
1
by: Larry Neylon | last post by:
Hi, I'm working on a VBScript application on IIS6 and I'm looking for some advice about the best way of replacing or improving session variable usage. The application is in a secure extranet...
4
by: Nick Gilbert | last post by:
Hi, Is it possible to access the Session of an arbitary user from an aspx page? On an e-commerce site, I am notified of payment success via a callback from the payment server to an ASPX page...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
13
by: Laurahn | last post by:
How can i configure my application for closing the session ? How can i use the session end for closing the session ?
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
8
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we...
13
by: Samir Chouaieb | last post by:
Hello, I am trying to find a solution to a login mechanism for different domains on different servers with PHP5. I have one main domain with the user data and several other domains that need...
5
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
Hi All, I am using asp.net session state service to store session. The concurrent online user will be almost 2000. Could asp.net session state service afford this? Is there any limitation...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.