.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.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 ASP Free Forums Sponsor:
  #1  
Old October 29th, 2001, 01:07 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Altering TextBox.text from data in query string

Originally posted by : Chris K (ckempste@iinet,net.au)Hi allIm having some problems trying to set the test item control text value to a value from the url.. ie.Sub getWhatParm response.write (Request.QueryString("what"))End SubDoes not work. I have tried a variety of methods and just cant dymanically alter the displayed text value on screen from the url query string.I basically want to keep a users entered criteria between posts to the same page via the url string: www.mysite.com?what=abcIdeas??CheersChris

Reply With Quote
  #2  
Old November 2nd, 2001, 06:44 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Originally posted by : Aiden Montgomery (aidenmontgomery@hotmail.com)Hello there,I am not too sure of your situation however there are a few alternatives.You can use the page onload event handler.I only use C# sorry;Page_Load (Object sender,Eventargs e){ string result = (string)Request.QueryString["what"]; what.Value = result;}This will get the result from the query string and set the value to the result.Alternatively if you want to use the way that you have tried already... Try it this way.I think that this should work for you.I have had problems with this sometimes and I have had to call the Page.DataBind() event to make the embedded code actually appear.Aiden.------------Chris K at 10/29/2001 11:07:30 AMHi allIm having some problems trying to set the test item control text value to a value from the url.. ie.Sub getWhatParm response.write (Request.QueryString("what"))End SubDoes not work. I have tried a variety of methods and just cant dymanically alter the displayed text value on screen from the url query string.I basically want to keep a users entered criteria between posts to the same page via the url string: www.mysite.com?what=abcIdeas??CheersChris

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Altering TextBox.text from data in query string


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