Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create link based on TextBox 1

Status
Not open for further replies.

gpalmer711

IS-IT--Management
May 11, 2001
2,445
GB
Hi all,

What I would like to do is have a text box and an image on a page, preferably not in a form.

When the image is clicked then another page loads. The page that loads would have a querystring that contains the contents of the textbox. For Example


I'm using VB as the language on the pages.

TIA

Greg Palmer
Freeware Utilities for Windows Administrators.
 
Let me rephrase it.

I know that there is the initial form tag that contains the whole page as a default.

However I was not wanting to use another form simply for this if possible. It makes no major difference one way or another.

I'm just starting out with .Net and probably missing some of the obvious features.

Greg Palmer
Freeware Utilities for Windows Administrators.
 
Typically in .NET there is only one form per page. What you want to do is very simple. You can use the Clicked event of an ImageButton. Just get the value of the text box and append it to the URL string(that you create), and assign that URL to the ImageURL property of the ImageButton.
 
Thanks got me on the right track. Sometimes my thinking sticks with classic ASP and I forget the great features of .NET.

Greg Palmer
Freeware Utilities for Windows Administrators.
 
Glad to help. Programming in .NET does take some getting used too when you come from traditonal ASP. Just stick with it and post here when you have a problem. It will fall into place after time.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top