C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







using query string


Posted Date: 30 Sep 2006      Total Responses: 8

Posted By: kumar       Member Level: Gold     Points: 2


How to transfer values b/w pages using query string?
(give me sample code.)

Thanks...




Responses

Author: Cema Indumathy V    30 Sep 2006Member Level: DiamondRating:     Points: 2
Response.Redirect("a.aspx?category=basic&price=100")


Author: siva kumari kankanala    30 Sep 2006Member Level: SilverRating:     Points: 2
indumathi suggession in sourge page

in destiny page.for getting those values

Request.QueryString("category")
Request.QueryString("price")


Author: Gaurav Sharma     30 Sep 2006Member Level: DiamondRating:     Points: 2
to pass data as query string use like

Response.Redirect("a.aspx?a=1&b=2")

' to access on another page use

dim a,b as string
a= Request("a")
b=Request("b")



Thanks


Author: Manindra Upadhyay    30 Sep 2006Member Level: GoldRating:     Points: 2
Response.Redirect("mynewpage.aspx?category=+"value=100")


Author: Mohan Kumar    30 Sep 2006Member Level: DiamondRating:     Points: 2
hi,


try like,

Response.Redirect("calcul.aspx?name=mohan&id=001")

here V r passing the value name& id via querystring.

-Mohan kumar


Author: Raj Patil    30 Sep 2006Member Level: GoldRating:     Points: 2
you can use session
session("a")=100

on another page

a=session("a")
simple and hiding values from users.
Means your is not able to see these on url.


Author: Raj Patil    30 Sep 2006Member Level: GoldRating:     Points: 2
Hey use this proper method,

Response.Redirect("WebForm2.aspx?strTextValue=" & "Hi," &)

MessageLabel.Text = Request.QueryString("strTextValue")

you can use integer in same way.
Hope it will help you.


Author: DotNetGuts (DNG)    30 Sep 2006Member Level: DiamondRating:     Points: 2
Page1.aspx, from where you are passing value

Response.Redirect("Page2.aspx?Name=DNG");

Now to access the data on Page2.aspx
String strName = Request.QueryString["Name"];


Post Reply
You must Sign In to post a response.
Next : Web forms comm
Previous : Disable forwrd button
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

internet fax

Contact Us    Privacy Policy    Terms Of Use