Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Html code outside of default asp.net form View modes: 
User avatar
Member
Member
kevin.clark-gaprc - 3/24/2011 1:31:46 PM
   
Html code outside of default asp.net form
I have a special situation where I need to have two additional html forms on a page to submit order tracking to FedEx. In the old site the forms are place after the closing tag as the asp.net page form and thus submits without a problem. However, I can't seem to find a way to place html code below or outside of the asp.net forms. I there a way to do this?

Thanks!

User avatar
Member
Member
kevin.clark-gaprc - 3/24/2011 2:51:03 PM
   
RE:Html code outside of default asp.net form
I came up with a workaround...I used an iFrame to place my page in I needed to post to another site for anyone else who may need to do something like this.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/25/2011 4:15:48 AM
   
RE:Html code outside of default asp.net form
Hi,

alternative solution is to use webclient class to post data instead of form control. You can find an example here: www.netomatix.com/httppostdata.aspx

Best regards,
Ivana Tomanickova

User avatar
Member
Member
ctaleck IPAGlobal - 4/4/2011 10:45:56 AM
   
RE:Html code outside of default asp.net form
I am trying to implement such a "workaround" for my payment gateway's "make payment" buttons which also needs a separate FORM for each payment.

I understand how to create the IFRAME, but what I'm confused on is how to make the SRC file for the IFRAME. Many of the posts do no elaborate on how to make this within Kentico.

First of all, is it possible? Or do I have to create the SRC file in the traditional manner (i.e. Dreamweaver) and FTP it to the site?

If it is possible in Kentico, what are the steps to do so? That is, which Web part should I use to create a page that does not contain the ASP.NET FORM and only your specified one?

User avatar
Member
Member
kevin.clark-gaprc - 4/4/2011 11:01:52 AM
   
RE:Html code outside of default asp.net form
I created an form.aspx page that contained my form I wanted to submit. It doesn't have to be an aspx document, it can be an html document. At any rate I added a StaticHtml web part to the page I wanted the Iframe to be created on and in the contend of the webpart I put:

<iframe src="form.aspx" width="100%" height="615">
<p>Your browser does not support iframes.</p>
</iframe>

That is pretty much it. Hope this helps!

Kevin