Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 22nd, 2006, 11:05 AM
Friend of Wrox
 
Join Date: Oct 2005
Location: , , United Kingdom.
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default <Form> tag within <form> tag

Hi All

Is there a way of getting a 3rd party search function that uses its own form to work inside the form tags of my asp.net 2 page?

The the code of the 3rd party search can be found here:

http://www.upmystreet.com/about-us/l...-upmystreet/l/

Is there a way to use forms within forms like so?..
Code:
<form id="form1" runat="server">
<form id="another">
...
</form>
</form>
Many thanks in advance

Rit
__________________
Rit
www.designandonline.co.uk
INSPIRE | CREATE | DELIVER
Reply With Quote
  #2 (permalink)  
Old April 23rd, 2006, 05:18 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Rit,

You can't nest forms, so that won't work. However, you could place the third party form outside yours, like this:
Code:
<form id="another">
...
</form>

<form id="form1" runat="server">
</form>
HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Asleep From Day by The Chemical Brothers (Track 7 from the album: Surrender) What's This?
Reply With Quote
  #3 (permalink)  
Old April 23rd, 2006, 07:47 AM
Friend of Wrox
 
Join Date: Oct 2005
Location: , , United Kingdom.
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default

Thanks Imar.

The only issue I have with that is that I am using a master file to house my template and main .net form tags and this 3rd part form would be nested in a content file.

Not to worry I will have to find another alternative... I was thinking of creating an event that carries the 3rd party form values in a query string to an interim page that is then submittable... I just felt this was a little clunky.

Thanks anyway and all the best.

Rit
Reply With Quote
  #4 (permalink)  
Old April 23rd, 2006, 08:12 AM
Friend of Wrox
 
Join Date: Oct 2005
Location: , , United Kingdom.
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default

Actually because the 3rd party form uses the 'Get' method I should be able to create a button event that sends the form details directly to their service rather than an interim page of mine.

Rit

Rit
www.designandonline.co.uk
INSPIRE | CREATE | DELIVER
Reply With Quote
Reply


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
<a> tag in XML sani723 XSLT 5 March 27th, 2007 04:16 AM
Problem with <span> tag tclotworthy XSLT 2 February 18th, 2007 03:48 PM
get displayed name of the <select> tag nikeshkm HTML Code Clinic 1 October 20th, 2006 11:21 PM
dynamic <input> tag Val Javascript 1 September 6th, 2006 02:55 AM
Chapter 4 "<<>>" characters in form mdchan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 August 13th, 2005 03:19 PM



All times are GMT -4. The time now is 08:47 AM.


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