You can check out this article, it might help you
http://msdn.microsoft.com/msdnmag/is...5/CuttingEdge/
--
Saravana
Microsoft India Community Star,MC**
www.ExtremeExperts.com
"Ben Turner" <ben@guidetotheworld.net> wrote in message
news:Tu2Wa.2272$bo1.1409@news-server.bigpond.net.au...[color=blue]
> Hi,
>
> I need to create an ASPX page that includes both traditional HTML Forms
> (which are submitted to a third-party site like a travel booking service)
> and also make use of the ASP.Net form. I've tried a number of approaches[/color]
so[color=blue]
> far but none seem to really suffice:
>
> 1. Position the HTML form elements absolutely and simply write the HTML
> after the </form> tag. This sort of works but then allows no server[/color]
control[color=blue]
> over the creation of the form (i.e. setting the check-in date as today +[/color]
7)[color=blue]
> as all of the elements lack the 'runat=server' parameter.
>
> 2. Make the HTML form submit to my IIS server and then simply prepare
> redirect to a URL with all of the form elements included (i.e. mimic a
> method=get form). This works (in some cases) but creates the most hideous
> URL's (and obviously is limited in length etc. etc. etc.)
>
> 3. Submit the HTML form to my IIS server and then construct a POST query[/color]
by[color=blue]
> hand. I'm not even sure if this is allowed, and seems like a nasty[/color]
approach[color=blue]
> as it will involve unnecessary extra visits to my server.
>
> What I'd really like to do is have the secondary form as a custom Web
> Control so that it can be prepared at the server, customised according to
> dates etc. and then served to whichever page needs it. When the user[/color]
clicks[color=blue]
> 'submit' it would (preferably) submit directly to the third-party site.
>
> Does anyone have any ideas?
>
> Thanks in advance!
>
> Ben.
>
> mailto:ben@guidetotheworld.net
>
>[/color]