.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 29th, 2004, 06:41 PM
SGORDON SGORDON is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 SGORDON User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing parameters through URL

Hi everyone:

I need some help how to pass two parameters from two TextBoxes (ASP page) into two TextBoxes (ASP.NET) through URL. Never done that and any leads or code snippet would be greatly appreciated. ASP and ASP.NET are in the same wwwroot directory.

TIA
Sam

Reply With Quote
  #2  
Old February 29th, 2004, 10:36 PM
lewy2000 lewy2000 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 lewy2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
In your postback function, add the following code:

Response.Redirect("your_url.aspx?your_url_variable=" + @variable_from_form);

Hope this is what you're looking for!

Reply With Quote
  #3  
Old March 1st, 2004, 07:47 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 11 m 13 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Admitadly i know very little about ASP.NET yet so please correct me if i'm wrong . But would pointing a form at a given page using the GET method or even just having a link which contains values not do this.

Obviously i'm missing something. What is the difference between ASP and ASP.NET if you cant just mix the two techs.

Have fun guys,

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #4  
Old March 5th, 2004, 11:48 PM
SGORDON SGORDON is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 SGORDON User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by lewy2000
In your postback function, add the following code:

Response.Redirect("your_url.aspx?your_url_variable=" + @variable_from_form);

Hope this is what you're looking for!

++++++++++++++++++++++++++++

Thanks you lewy2000. I'll try that. Bear with me I'm new to that.

Sam

Reply With Quote
  #5  
Old March 7th, 2004, 12:18 PM
Sui Sui is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 Sui User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation More parameters

How do I type if I want to sand more than 1 parameter?
can I type somethig like Server.Transfer("productinfo.aspx?Val1="+parameter1+"&Val2="+Parameter2+"..... ") ?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Passing parameters through URL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT