Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 10th, 2007, 02:12 AM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default displaying variable in normal text

hi guys ...

  i want to display a msg like "welcome abc" where abc is user id present in querystring as http://localhost/a.aspx?id=abc

is it possible and how?

thanks

Yuvin
  #2 (permalink)  
Old January 10th, 2007, 05:55 AM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
You can access "Query string" values in ASP.NET using below methods

Request()--> returns a string.
Request.QueryString() --> returns a string.
Request.Form() --> returns a string.

-krishna

  #3 (permalink)  
Old January 10th, 2007, 09:39 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

In the above example you would do:

Request.QueryString("id")

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
  #4 (permalink)  
Old January 11th, 2007, 12:56 AM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks guys ,,

but ... I knw how to access those values but i want to display it ... how can i display it in normal text or label text.

Yuvin
  #5 (permalink)  
Old January 11th, 2007, 03:08 AM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

suppose ur Label is lblMyLabel then try this:

lblMyLabel.Text = Convert.ToString(Reequest.QueryString("id"))


Regards,
Rashida Jabeen
http://www.akaas.net/oracle-sql-tutorial.htm
  #6 (permalink)  
Old January 12th, 2007, 02:03 AM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks problem solved .... thanks again for help.

Yuvin
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Text using CSS austinf CSS Cascading Style Sheets 3 October 11th, 2007 02:58 PM
Displaying text in textbox Europom Excel VBA 4 March 31st, 2007 06:28 AM
Displaying binarydata as text audio-catalyst Classic ASP Professional 0 December 17th, 2005 06:30 AM
Problems displaying images via a variable nancy Classic ASP Basics 2 June 2nd, 2004 02:17 PM
Displaying text depending on the value of a field lguzman Access VBA 1 May 30th, 2004 06:14 PM



All times are GMT -4. The time now is 04:59 PM.


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