Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2006, 11:05 AM
Friend of Wrox
 
Join Date: Oct 2005
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
 
Old April 23rd, 2006, 05:18 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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?
 
Old April 23rd, 2006, 07:47 AM
Friend of Wrox
 
Join Date: Oct 2005
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
 
Old April 23rd, 2006, 08:12 AM
Friend of Wrox
 
Join Date: Oct 2005
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





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





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