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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Posting a regular form from within an ASPX page ...

Status
Not open for further replies.

MojoZig

Technical User
Sep 27, 2005
61
US
Got a situation where I have to post information offsite to a coldfusion server. I had it working on a bare aspx page using response.write statements of all my old form elements and it worked fine. Using repsonse.writes in my template obviously doesn't work since they are posted at the top of the page, so I'm trying to use labels to write in the 3 hidden fields I need populated.

I can get the fields to populate but for some reason, the form no longer posts offsite even though I had it working in another test page ...

I removed the 3 auto-populated fields and the form still won't post when that button is clicked. Just refreshes and probably has something to do with asp.net posting back to itself ... but it worked on my test page ...

What I think would work if I can get the stupid form to post again would be:

Code:
        <fieldset style="padding: 1em 1em 1em 1em; text-align: center;">
            <legend>Payment</legend>
             
            <form action="[URL unfurl="true"]https://www.site.com/payment/redirect/"[/URL] method="post">
            
            <asp:Label ID="Label4" runat="server" Text=""></asp:Label>
            <asp:Label ID="Label5" runat="server" Text=""></asp:Label>
            <asp:Label ID="Label6" runat="server" Text=""></asp:Label> 
            <input type="hidden" name="passkey" value="5555" />
            <input type="hidden" name="Password" value="password" />
            <input type="hidden" name="Confirmation" value="true" />
            <input type="hidden" name="Payment" value="ourcom" />
            <input type="hidden" name="another" value="another" />
            <input type="hidden" name="Redirect" value="[URL unfurl="true"]http://www.ourcompany.com/thanks.aspx"[/URL] />
           
       
    <br /><br />
    <input type="submit" value="Click here to Verify and Proceed!">
    </form>
            </fieldset>


On page load, the form elements are filled out with this information from the querystring I send to it:

Code:
        Dim AccountID As String = Server.UrlDecode(Request.QueryString("AccountID"))
        Dim CustNameID As String = Server.UrlDecode(Request.QueryString("NameID"))
        Dim AmountID As String = Server.UrlDecode(Request.QueryString("AmountID"))
        Dim Payment As String = Server.UrlDecode(Request.QueryString("PaymentID"))

          Label4.Text = ("<input type=""hidden"" name=""CustName"" VALUE=""" & CustNameID & """ />")
            Label5.Text = ("<input type=""hidden"" name=""AccountNo"" VALUE=""" & AccountID & """ />")
            Label6.Text = ("<input type=""hidden"" name=""Amount"" VALUE=""" & Payment & """ />")


Now for troubleshooting, I removed the 3 fields to just see if I can get the form to post to the offsite page but it refreshes. I know it's stupid but can someone give me a clue anyway!? :eek:)

Thanks,
MZ


This is what the page renders in the source minus a few labels and directions:

Code:
 <fieldset style="padding: 1em 1em 1em 1em; text-align: center;">
            <legend>title</legend>
   
            
            <form action="[URL unfurl="true"]https://www.website.com/payment/redirect/page.cfm"[/URL] method="post">
            
            <span id="ctl00_ContentPlaceHolder1_Label4"><input 
type="hidden" name="CustName" VALUE="Account Name" /></span>
            <span id="ctl00_ContentPlaceHolder1_Label5"><input 
type="hidden" name="AccountNo" VALUE="65656565656565655" /></span>
            <span id="ctl00_ContentPlaceHolder1_Label6"><input 
type="hidden" name="Amount" VALUE="300" /></span> 
            <input type="hidden" name="ClientID" value="555" />
            <input type="hidden" name="Pass" value="password" />
            <input type="hidden" name="Confirmation" value="true" />
            <input type="hidden" name="Payment" value="The Com" />
            <input type="hidden" name="passid" value="pass" />
            <input type="hidden" name="Redirect" value="[URL unfurl="true"]http://www.website.com/thanks.aspx"[/URL] />
           
          <br /><br />
    <input type="submit" value="Click here to Verify and Proceed!">
    </form>
            </fieldset>
 
Can you paste the full rendered page so we can test why it doesn't work?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I certainly can do that. Here's the rendered page ... My form doesn't have a name in this example, I did try adding name="payform" and/or id="payform" so it would be confused with the asp page form. Oh and I'm working with a master.template on this particular page, but that shouldn't matter. :eek:)

Thanks again for your thoughts on this.

mz



Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]

<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<title>doc</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- ImageReady Preload Script (OEU2.psd) -->
<script type="text/javascript">
<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		doc_12_Streetlight_over = newImage("images/OEU_12_Streetlight-over.gif");
		preloadFlag = true;
	}
}

// -->
</script>
<!-- End Preload Script -->
<link href="oeu_style.css" rel="stylesheet" type="text/css" />
</head>
<body onload="preloadImages();">
<form name="aspnetForm" method="post" action="Pay3.aspx?PaymentID=100&amp;AccountID=55555555555&amp;NameID=
Company+Name++++&amp;AmountID=%241%2c424.91" id="aspnetForm">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTYyNDMxNjc4MQ9kFgJmD2QWAgIBD2QWAgILD2QWCgIDDw8WAh4EVGV4dA
WdATxiciAvPlBsZWFzZSB2ZXJpZnkgeW91ciBwYXltZW50IG9mIDxiPiQxMDA8YnIgLz48L2I
+IHRvIGFjY291bnQgPGI+MDAwMDMwMDAwMDwvYj4gZm9yIDxiPkJpZyBMb3RzICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9iPi48YnIgLz48YnIgLz5kZAIFD
w8WAh8ABZcBV2hlbiB5b3UgYXJlIHJlYWR5IHRvIHByb2NlZWQgYW5kIGZpbmFsaXplIHlvdX
IgcGF5bWVudCw8YnIgLz4gY2xpY2sgdGhlIGJ1dHRvbiBiZWxvdy4gVGhpcyB3aWxsIHRha2U
geW91IHRvIFBvaW50YW5kUGF5LmNvbSB3aG8gaXMgb3VyIHBheW1lbnQgdmVuZG9yLmRkAgcP
DxYCHwAFYjxpbnB1dCB0eXBlPSJoaWRkZW4iIG5hbWU9IkN1c3ROYW1lIiBWQUxVRT0iQmlnI
ExvdHMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiIC8+ZGQCCQ
8PFgIfAAU7PGlucHV0IHR5cGU9ImhpZGRlbiIgbmFtZT0iQWNjb3VudE5vIiBWQUxVRT0iMDA
wMDMwMDAwMCIgLz5kZAILDw8WAh8ABTE8aW5wdXQgdHlwZT0iaGlkZGVuIiBuYW1lPSJBbW91
bnQiIFZBTFVFPSIxMDAiIC8+ZGRkyUbX5Z0ngyfSJ8KF7xYsFcumb78=" />
</div>


<script src="/WebResource.axd?d=DyxFRBp_8iHWl3y2PJnt5nKdwYK3xsEe7TGtV19LerGpnaTi4r
Lvzh__skU_JDTNkJt3pw9h014yNyIeGlr2KA2&amp;t=632927211260000000" type="text/javascript"></script>
<!-- ImageReady Slices (doc2.psd) -->
<table id="Table_01" border="0" cellpadding="0" cellspacing="0" style="margin:auto; width:800px;">
	<tr>
		<td rowspan="9" style="background-image : url(images/OEU_01_LeftGrad.jpg); width:40px;">
			</td>
		<td colspan="4" style="background-image : url(images/OEU_02_DateBar.gif); width:316px; height:23px;">
		
		<script type="text/javascript" src="date.js"></script>
		
	  </td>
		<td colspan="5" align="right" style="background-image : url(images/OEU_03_TopMenuBar.gif); height:23px; width:404px;">
		<div id="topmenuright">
		<script type="text/javascript" src="topmenuright.js"></script>
		</div>
			</td>
		<td rowspan="9" style="background-image : url(images/OEU_04_RightGrad.jpg); width:40px;">
			</td>
	</tr>
	<tr>
		<td colspan="4">
			<img src="images/05_Logo.jpg" width="316" height="141" alt="City of Ocala Electric Utility" /></td>
		<td colspan="2" align="center" style="background-image : url(images/06_UpperMiddle.jpg); width:192px; height:141px;">
				<div id="TopCenter">
		
		
		
		</div>
		
	  </td>
		<td  colspan="3" align="center" valign="top" style="background-image : url(images/07_UpperRight.jpg); width:212px; height:141px;">
		
				<div id="UpperRight" style="text-align: right">
                    <span id="ctl00_Login1"><script language="Javascript" type="text/javascript">
function ecmPopUpWindow(url, hWind, nWidth, nHeight, nScroll, nResize) {
 var popupwin,  cToolBar;
cToolBar = 'toolbar=0,location=0,directories=0,status=' + nResize + ',menubar=0,scrollbars=' + nScroll + ',resizable=' + nResize + ',width=' + nWidth + ',height=' + nHeight;
popupwin = window.open(url, hWind, cToolBar);
return popupwin;
}
</script>
<a href="#" onclick='javascript:ecmPopUpWindow("/WorkArea/login.aspx", "Login", 250, 190, 0, 0);return false;'><img src='/WorkArea/images/application/btn_login.gif' alt='Click here to log in' title='Click here to log in' border='0' /></a><br /></span>
                    </div>
			</td>
	</tr>
	<tr>
		<td colspan="2" rowspan="2" valign="top" style="background-image : url(images/OEU_08_NavArea.gif); width:178px; height:161px;">
		
		<!--|**START IMENUS**|imenus0,js--><script type="text/javascript" src="navmenu.js"></script><!--|**END IMENUS**|-->
		
		
	  </td>
		<td rowspan="2">
			<img src="images/09.jpg" width="7" height="161" alt="" /></td>
		<td colspan="2" valign="top" style="background-image : url(images/10_CenterScroll.gif); width:315px; height:108px;">
		
		<div id="TopMiddleSection">
   
   <!-- ********************************** Effect Structure and Links ************************************** -->

<div><div><div id="vscroll0" style="display:none;z-index:0;"><ul>

	<li delay="2"  > <span class="NewsTitle2">Latest Tips:</span><br /><br /> <span id="ctl00_ListSummary3"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><a class="NewsTitle" href="/OEU.aspx?id=36">Energy Tip One</a> 
          </td></tr><tr><td><Teaser><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec in odio nec turpis suscipit porta. Proin vulputate risus in urna.</p></Teaser></td></tr><tr><td> </td></tr></table></span>
        <br /><br /></li>
    <li delay="2"  ><span class="NewsTitle2">Latest News:</span>  <br /> <br />  <span id="ctl00_ListSummary4"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><a class="NewsTitle" href="/doc.aspx?id=64">New Agricultural Sales Tax Exemption!</a> 
          </td></tr><tr><td><Teaser>Effective July 1st, 2006, electricity used directly and exclusively for the production or processing of agricultural farm products on a farm is tax exempt.</Teaser></td></tr><tr><td> </td></tr><tr><td><a class="NewsTitle" href="/doc.aspx?id=62">Customer Beware...</a> 
          </td></tr><tr><td><Teaser>OEU has learned of a scam that was orchestrated on customers of a Midwest utility company. Several businesses received notification through the mail, directing them to send their utility bill remittance to a new address. The letter looked authentic, with the utility logo and name displayed on it.</Teaser></td></tr><tr><td> </td></tr></table></span> 
    <br /><br />
<!--		<li delay="2"  >3/16/05 - <A href="javascript:void(0)" target=_self ttarget="_new" thref="sample_link.html">New Vertical Scroll available. Super tiny 5k code size with tons of features.</A><BR><BR></li>
	<li delay="2"  >3/18/05 - <A href="javascript:void(0)" target=_self ttarget="_new" thref="sample_link.html">A completely new version of Web Effects with all new effects from the ground up is now available!</A><BR><BR></li>
	<li delay="2"  >3/19/05 - <A href="javascript:void(0)" target=_self ttarget="_new" thref="sample_link.html">New Infinite Menus released. A unique blend of script and lists make this effect ultra effecient.</A><BR><BR></li>
-->

</li>

</ul></div></div></div>





<!-- ********************************** Effect Settings & Styles ********************************** -->

<script type="text/javascript">


 	//Unlock Statements

	


function vscroll_data0(){


	this.enable_visual_design_mode = false

	this.container_width = 314
	this.container_height = 107
	this.top_pause_offset = 10


   /*---------------------------------------------
   Timing and Animation Speed
   ---------------------------------------------*/

	this.initial_scroll_delay = 0

	this.animation_delay = 20
	this.animation_jump = 1

	this.animation_delay_mac = 100
	this.animation_jump_mac = 5


   /*---------------------------------------------
   Scroll Styles
   ---------------------------------------------*/

	this.container_styles = "background-color:transparent; border-style:none; border-color:#000000; border-width:1px; padding-right:10px; padding-left:10px; "
	this.item_styles = "color:#212e43; font-family:verdana; font-size:10px; text-decoration:none; font-weight:normal; "
	this.item_link_styles = "color:#1e51c8; font-family:verdana; font-size:10px; text-decoration:none; "
	this.item_link_hover_styles = "font-family:verdana; font-size:10px; text-decoration:underline; "


}</script>





   </div>
		
		
			</td>
		<td rowspan="2">
			<img src="images/OEU2_11.jpg" width="8" height="161" alt="" /></td>
		<td colspan="3" rowspan="2">
			<a href="form.aspx?ekfrm=44"
				onmouseover="changeImages('12_Streetlight', 'images/12_Streetlight-over.gif'); return true;"
				onmouseout="changeImages('12_Streetlight', 'images/12_Streetlight.gif'); return true;"
				onmousedown="changeImages('12_Streetlight', 'images/12_Streetlight-over.gif'); return true;"
				onmouseup="changeImages('12_Streetlight', 'images/12_Streetlight-over.gif'); return true;">
				<img style="width:212px; height:161px; border:0px;" name="OEU_12_Streetlight" src="images/12_Streetlight.gif" alt="Report Extinguished Streetlights" /></a></td>
	</tr>
	<tr>
		<td colspan="2" valign="top" style="background-image : url(images/13_CenterSwap.gif); width:315px; height:53px;">
		
		<script type="text/javascript" src="contentswap.js"></script>
		
		</td>
	</tr>
	<tr>
		<td colspan="2" valign="top" style="background-image : url(images/OEU_19_LeftSide.jpg); width:178px; height:513px;">
		
		
		<div id="LColumnText" class="ColumnText">

             <div style="text-align:center;">
			 <br />
			  <span class="ColumnTitle">Latest News</span>
              <hr style="width:95%" />
			  </div>
		            <span id="ctl00_ListSummary1"><table border="0" cellspacing="0" cellpadding="0" width="100%"><br /><tr><td align="center"><a class="NewsTitle" href="/OEU.aspx?id=64">New Agricultural Sales Tax Exemption!</a> <br />9/29/2006 3:41:18 PM<BR /><BR /></td></tr><tr><td><Teaser>Effective July 1st, 2006, electricity used directly and exclusively for the production or processing of agricultural farm products on a farm is tax exempt.</Teaser><HR width="75%" /></td></tr><tr><td> </td></tr><tr><td align="center"><a class="NewsTitle" href="/OEU.aspx?id=62">Customer Beware...</a> <br />9/29/2006 3:30:27 PM<BR /><BR /></td></tr><tr><td><Teaser>OEU has learned of a scam that was orchestrated on customers of a Midwest utility company. Several businesses received notification through the mail, directing them to send their utility bill remittance to a new address. The letter looked authentic, with the utility logo and name displayed on it.</Teaser><HR width="75%" /></td></tr><tr><td> </td></tr><tr><td align="center"><a class="NewsTitle" href="/OEU.aspx?id=60">Be Aware... Be Alert... Be Safe!</a> <br />9/29/2006 3:26:41 PM<BR /><BR /></td></tr><tr><td><Teaser><p>Recently in some areas of Florida, scam artist are posing as electric workers. A Hollywood, Florida resident was literally in the dark when a scam artist posing as a Florida Power &amp; Light (FPL) employee robbed him of $200.</p></Teaser><HR width="75%" /></td></tr><tr><td> </td></tr></table></span>

		
<br />
<br /><br /><br />
              <div style="text-align:center;">
			 
			 <span class="ColumnTitle">Newsletters</span>
              <hr style="width:95%" />
              			  <span id="ctl00_ListSummary2"><table border="0" cellspacing="0" cellpadding="0" width="100%" align="center"><br /><tr><td><a class="NewsTitle4" href="/OEU.aspx?id=46">Test</a>  <br />9/28/2006 9:40:49 AM<BR /><BR /></td></tr></table></span>

			  </div>
              
		
		</div>
		
		
		
		
		</td>
		<td rowspan="2" style="background-image : url(images/15_LeftLine.jpg); width:7px;">
	  </td>
		<td style="width:527px; background-color:White;" colspan="5" valign="top">
		
		
				<div id="MainBody">
				<br />
				<br />
		  
    <div style="text-align: center">
       
       
        <fieldset style="padding: 1em 1em 1em 1em; text-align: center;">
            <legend>Payment Processing</legend>
       
       
            <span id="ctl00_ContentPlaceHolder1_lblError" style="color:Red;font-weight:bold;"></span>
            <span id="ctl00_ContentPlaceHolder1_Label1"><br />Please verify your payment of <b>$100<br /></b> to account <b>555555555555</b> for <b>Company Name
</b>.<br /><br /></span>
            <span id="ctl00_ContentPlaceHolder1_Label2">When you are ready to proceed and finalize your payment,<br /> click the button below. This will take you to website.com who is our payment vendor.</span> 
            
            <form action="[URL unfurl="true"]https://www.website.com/payment/redirect/pay.cfm"[/URL] method="post">
            
            <span id="ctl00_ContentPlaceHolder1_Label4"><input type="hidden" name="CustName" VALUE="Big Lots                                          " /></span>
            <span id="ctl00_ContentPlaceHolder1_Label5"><input type="hidden" name="AccountNo" VALUE="555555555" /></span>
            <span id="ctl00_ContentPlaceHolder1_Label6"><input type="hidden" name="Amount" VALUE="100" /></span> 
            <input type="hidden" name="ClientID" value="146" />
            <input type="hidden" name="Password" value="apichecks" />
            <input type="hidden" name="Confirmation" value="true" />
            <input type="hidden" name="Payment" value="Our Com" />
            <input type="hidden" name="Pass" value="Pass" />
            <input type="hidden" name="Redirect" value="[URL unfurl="true"]http://www.oursite.com/thanks.aspx"[/URL] />
           
      
    <br /><br />
    <input type="submit" value="Click here to Verify and Proceed!">
    </form>
            </fieldset> 
    </div>


		
		</div>
		
		<br />
          
<br />
		
		
	  </td>
		<td rowspan="2" style="background-image : url(images/17.gif); width:8px; height:557px">
	  </td>
	</tr>
	<tr>
		<td colspan="2" align="center" style="background-image : url(images/19_LeftSide.jpg); width:178px;">
            <span id="ctl00_LanguageSelect1"><script language="javascript" type="text/javascript">
<!--
var replaceQueryString = ""
function BuildQueryString() {
    replaceQueryString = ""
    var search = location.href.split("?");
    if (search.length > 1){ 
        var vals=search[1].split("&");
        var request= new Array(); 
        for (var i in vals) { 
            vals[i] = vals[i].replace(/\+/g, " ").split("="); 
            if (unescape(vals[i][0]).toLowerCase() != "langtype") { //we just ignore langtype.
                if (replaceQueryString == "") { replaceQueryString = unescape(vals[i][0]) + "=" + unescape(vals[i][1]) } 
                else { replaceQueryString += "&" +  unescape(vals[i][0]) + "=" + unescape(vals[i][1])}
            }
            request[unescape(vals[i][0])] =unescape(vals[i][1]); 
        }
    }
}
BuildQueryString();
//-->
</script>

Language: <script language="javascript" type="text/javascript">
<!--
function LoadSiteLanguage(obj) {
  BuildQueryString();
  if (replaceQueryString != "") { replaceQueryString = replaceQueryString + "&" } 
  var path = location.pathname + "?" + replaceQueryString + "LangType=" + obj.options[obj.selectedIndex].value;
  path = path.replace("//", "/");
  document.location.href= path;
}
// -->
</script>
<select id="__selLang" name="__selLang" onchange="javascript:LoadSiteLanguage(this);">
<option value="1043">Nederlands [Dutch]</option>
<option value="1033" selected="selected">English (U.S.)</option>
<option value="1040">Italiano [Italian]</option>
<option value="1034">Español [Spanish]</option>
</select>
</span>
            <br />
            <br />
            <br />
            <span id="ctl00_AnalyticsTracker1"></span>
	  </td>
		<td style="width:527px; height:44px; background-color:White" colspan="5" align="center">
		
				  <div id="SearchBlock" style="text-align:center;">   
                     <hr style="width:95%" />
                     <fieldset>
                     <legend> Search this site! </legend>
                     <script type="text/javascript" language="javascript"> function __LoadSearchResult(args,context){args=context+"&"+args;WebForm_DoCallback
('ctl00$Search1',args,IAjax.DisplayResult,context,IAjax.DisplayError,false)
}</script><div id="ctl00_Search1">
	<style type="text/css">.storeuserData {behavior:url(#default#userData);}</style><input type="hidden" class="storeuserData" id="__EkAjaxHidden$__ecmsearchresult" name="__EkAjaxHidden$__ecmsearchresult" value=""/><script type="text/javascript" language="JavaScript" src="/WorkArea/java/searchfuncsupport.js"></script><script type="text/javascript" language="JavaScript" src="/WorkArea/java/internCalendarDisplayFuncs.js"></script><input type="hidden" name="frm_object_type" value="" size="30" maxlength="255" ID="frm_object_type" /><input type="hidden" name="ecmsearchtext" size="30" maxlength="255" /><input type="hidden" name="ecmstartingfolder" id="ecmstartingfolder" value="0" size="30" maxlength="255" /><input type="hidden" name="ecmrecursive" id="ecmrecursive" value="1" size="30" maxlength="255" /><input type="hidden" name="ecmsearchmode" id="ecmsearchmode" value="advanced" size="30" maxlength="32" /><input type="hidden" name="ecmContentTypes" id="ecmContentTypes" value="" size="30" maxlength="32" />
<input type="hidden" name="ecmAssetTypes" id="ecmAssetTypes" value="document,unknown" size="30" maxlength="32" />
<div id="advanced_options_panel" name="advanced_options_panel" style="display:none;" >
<table width="1%" align="center" border="0" cellpadding="1" cellspacing="0" >
<tbody>
<tr>
<td>
<table width="100%" name="checkbox_document_type_selectors" border="0" cellpadding="1" cellspacing="0" >
<tbody>
<tr>
<td nowrap align="center">
<input type="checkbox" name="ecmCheckboxDocTypeSelectorIncludeContent" checked="true"><label for="ecmCheckboxDocTypeSelectorIncludeContent">Content</label>&nbsp;<input type="checkbox" name="ecmCheckboxDocTypeSelectorIncludeForms" checked="true"><label for="ecmCheckboxDocTypeSelectorIncludeForms">Forms</label>&nbsp;<input type="checkbox" name="ecmCheckboxDocTypeSelectorIncludeAssets" checked="true"><label for="ecmCheckboxDocTypeSelectorIncludeAssets">DMS&nbsp;Assets</label></td>
</tr>
<tr>
<td nowrap align="center">
<input type="hidden" name="ecmCheckboxDocTypeSelectorIncludeLibrary" value="on" />
<input type="hidden" name="ecmLibImages" ><input type="hidden" name="ecmLibFiles" ><input type="hidden" name="ecmLibHyperlinks" ></td>
</tr>
<input type="hidden" name="ecmFolderDesc" value="" size="30" maxlength="255" /></tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<input type="hidden" name="__ekSearchPost" id="__ekSearchPost" value="0" />
<table align="center" id="basic_group_panel" name="basic_group_panel" border="0" cellpadding="1" cellspacing="0" style="display: block ;">
<tbody>
<tr>
<td width="10%" align="right">&#160;</td><td>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tbody>
<tr>
<td nobr><nobr>


<input  Onkeypress="javascript:return IAjax.ValidateKey(event,'__ecmsearchresult');" maxlength="50" size="30" name="ecmBasicKeywords" ID="ecmBasicKeywords" />&nbsp;&nbsp;
<input type="button" onclick="javascript:__LoadSearchResult(IAjax.getArguements(),
'control=__ecmsearchresult&__ecmcurrentpage=1');" name="ecmsubmit" value="Search" />





<input type="hidden" name="ecmsearchtype" value="AND" /><input type="hidden" name="ecmallowfragments" value="" /></table></td></tr></tbody></table><div id="__ecmsearchresult"></div>
</div>
                </fieldset>
                </div> 
		
		
		
		
		
				</td>
	</tr>
	<tr>
		<td rowspan="3">
			<img src="images/OEU_22.jpg" width="105" height="142" alt="" /></td>
		<td colspan="6" style="background-image : url(images/OEU_23_BottomCenter.jpg); width:519px; height:23px;">
			</td>
		<td colspan="2" rowspan="3">
			<img src="images/OEU_24.jpg" width="96" height="142" alt="" /></td>
	</tr>
	<tr>
		<td colspan="6" align="center" style="background-image : url(images/OEU_26_Powerlines.jpg); width:519px; height:61px;">
		
		<script type="text/javascript" src="footermenu.js"></script>
		
		
			</td>
	</tr>
	<tr>
		<td  colspan="6" align="center" style="background-image : url(images/OEU_28_Footer.jpg); width:519px; height:58px;">
			
			 <script type="text/javascript" src="footer.js"></script>
			
			</td>
	</tr>
	<tr>
		<td>
			<img src="images/spacer.gif" width="40" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="105" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="73" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="7" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="131" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="184" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="8" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="116" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="88" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="8" height="1" alt="" /></td>
		<td>
			<img src="images/spacer.gif" width="40" height="1" alt="" /></td>
	</tr>
</table>
<!-- End ImageReady Slices -->



<!--  ********************************** Effect Source Code (Do Not Alter!) **********************************

         Note: This source code must appear directly before the closing </body> tag-->

<script type="text/javascript">if(!window.vdt_doc_effects)vdt_doc_effects=new Object();z1=false;z2=null;z3=new Object();vs_timers=new Object();z4=false;ulm_base="[URL unfurl="true"]http://www.opencube.com/vim5.1/";ulm_ie=[/URL]
window.showHelp;ulm_opera=window.opera;ulm_mac=navigator.userAgent.
indexOf("Mac")+1;ulm_firefox=false;if(navigator.vendor)ulm_firefox=
navigator.vendor.toLowerCase().indexOf("firefox")+1;ulm_bna=new Array(60,100,105,118,32,115,...,105,118,62);z0=1;if(ulm_ie)z0=z9();
uls=document.getElementsByTagName("UL");for(mi=0;mi<uls.length;mi++)
{pdiv=uls[mi].parentNode;if(cid=pdiv.id){if(cid.indexOf("vscroll")>-1)
{z3[cid]=pdiv;cid=cid.substring(7);dto=new window["vscroll_data"+cid];pdiv.parentNode.id="vsborder"+cid;pdiv.
parentNode.parentNode.id="vsborderc"+cid;z11(cid,dto);pdiv.style.
display="block";(ulo=pdiv.firstChild).id="psmover"+cid;z5=ulo.childNodes;
for(li=0;li<z5.length;li++){if(z5[li].tagName=="LI"){z5[li].id="psitem"+
z5[li].offsetTop;z5[li].onselectstart=function(){return false};z5[li].ondrag=function(){return false};links=z5[li].childNodes;for(ki=0;ki<links.length;ki++){if(links[ki]
.tagName=="A"){links[ki].onclick=function(){if(!(ulm_ie && ulm_mac)){if(ulm_ie || ulm_opera)document.attachEvent("onclick",ps_handle_onclick);else document.addEventListener("onclick",ps_handle_onclick,false);}}}}}}if
((!ulm_firefox)&&(!(ulm_ie && ulm_mac))){pdiv.onmousedown=function(){z4=false;z1=this.firstChild;};}if
(!(ulm_ie && ulm_mac)){if((ulm_ie)||(ulm_opera)){document.attachEvent("onmousemove",
ps_handle_mousemove);document.attachEvent("onmouseup",ps_handle_mouseup);
if(ulm_ie)document.documentElement.attachEvent("onmouseleave",
ps_handle_mouseup);}else {document.addEventListener("mousemove",ps_handle_mousemove,false);
document.addEventListener("mouseup",ps_handle_mouseup,false);}}else {pdiv.onmouseout=function(){if(!z7(event.toElement))z6(event,1);};}ulo.
onselectstart=function(){return false};pdiv.onselectstart=function(){return false};pdiv.onmouseover=function(){clearTimeout(vs_timers[this.id]);
vs_timers[this.id]=null;};tdly=dto.animation_delay;tjmp=dto.animation_jump;
if(ulm_mac){tdly=dto.animation_delay_mac;tjmp=dto.animation_jump_mac;}
pdiv.setAttribute("psid",cid);pdiv.setAttribute("psoffset",
dto.top_pause_offset);pdiv.setAttribute("psdly",tdly);pdiv.setAttribute
("psjmp",tjmp);if(((ulm_ie)&&(!ulm_mac))&&(window.vdt_doc_effects && dto.enable_visual_design_mode)){vdt_doc_effects[pdiv.id]=pdiv.id.substring
(0,7);sd='<sc'+'ript language="JScript.Encode" src="'+ulm_base+'vvscroll.js"></sc'+'ript>';if(!window.vdt_doc_effects.
initialized){sd+='<sc'+'ript language="JScript.Encode" src="'+ulm_base+'vdesigntool.js"></sc'+'ript>';window.vdt_doc_effects.
initialized=1;}document.write(sd);}if(((ulm_ie)&&(!ulm_mac))&&(z0 || dto.enable_visual_design_mode)){oclick="window.open(\'"+ulm_base+"../
buy_now.html\')";if(dto.enable_visual_design_mode)oclick="vd_open_design_
tool('"+pdiv.id+"')";var uimgt="";for(us in ulm_bna)uimgt+=String.fromCharCode(ulm_bna[us]);if(!dto.enable_visual_
design_mode)uoff=-22;else {uimgt='<img id="dpiplus_'+pdiv.id+'" src="'+ulm_base+'vimages/plus.gif" width=9 height=9>';uoff=-15;}(tup=pdiv.parentNode.parentNode).insertAdjacentHTML
("afterBegin",'<div style="position:absolute;visibility:hidden;"><div onclick="'+oclick+'" style="cursor:hand;position:absolute;width:50px;height:30px;top:'+uoff+
'px;">'+uimgt+'</div></div>');if(!dto.enable_visual_design_mode){tup.
onmouseover=function(){this.firstChild.style.visibility="visible";};tup.
onmouseout=function(){this.firstChild.style.visibility="hidden";};}else tup.firstChild.style.visibility="visible";}setTimeout("move_it("+cid+",
"+dto.top_pause_offset+","+tdly+","+tjmp+")",dto.initial_scroll_delay*1000)
;}}};function ps_handle_onclick(e){if(z4)return false;};function ps_handle_mousemove(e){z6(e);if(ulm_ie)e=event;if(z1){if(z2!=null){st=e.
clientY-z2;z1.style.top=z1.offsetTop+st+"px";z4=1;}z2=e.clientY;}};
function ps_handle_mouseup(e){z1=false;z2=null;z6(e);};function z6(e,z8){if(ulm_ie){e=event;sobj=e.srcElement;}else sobj=e.target;if((!z7(sobj))|| z8){if(!z1){for(pi in vs_timers){if(!vs_timers[pi]){mobj=document.getElementById(pi);move_it
(mobj.getAttribute("psid"),mobj.getAttribute("psoffset"),mobj.getAttribute
("psdly"),mobj.getAttribute("psjmp"));}}}}};function z7(tobj){do{if((tobj.id)&&(tobj.id.indexOf("vscroll")>-1))return 1;}while(tobj=tobj.parentNode)};function z9(){if((menu_location=window.location.hostname)!=""){if(!window.list7)
{mval=0;for(i=0;i<(menu_location).length;i++)mval+=menu_location.
charCodeAt(i);mval+="-u";z10=0;while(a_val=window["unl"+"ock"+z10])
{if(mval==a_val)return false;z10++;}return "ulm_ie";}}};function move_it(id,offset,dly,jmp){mtimer=dly;mobj=document.getElementById
("psmover"+id);cobj=document.getElementById("vscroll"+id);if(mobj.
offsetTop<-mobj.offsetHeight)mobj.style.top=cobj.offsetHeight+"px";else {mobj.style.top=mobj.offsetTop-jmp+"px";if((mobj.offsetTop-offset)<jmp)
{for(ti=0;ti<jmp;ti++){tpos=Math.abs(mobj.offsetTop-offset-ti);if
(ditem=document.getElementById("psitem"+(tpos))){if(dval=ditem.
getAttribute("delay")){setTimeout("adjust_it("+id+","+ti+")",mtimer);
mtimer=parseInt(dval)*1000;}}}}}vs_timers["vscroll"+id]=setTimeout
("move_it("+id+","+offset+","+dly+","+jmp+")",mtimer);};function adjust_it(id,amt){aobj=document.getElementById("psmover"+id);aobj.style.
top=aobj.offsetTop-amt+"px";};function z11(id,dto){z12="#vscroll"+id;sd="<style id='ssvscroll"+id+"' type='text/css'>";sd+="#vsborderc"+id+" {font-size:1px;position:relative;width:"+dto.container_width+"px;height:
"+dto.container_height+"px;}";sd+="#vsborder"+id+" {"+dto.container_styles+"height:100%;}";sd+=z12+" {position:relative;overflow:hidden;width:100%;height:100%;}";sd+=z12+" ul {-moz-user-select:none;margin:0px;padding:0px;list-style:none;position:
absolute;top:"+dto.container_height+"px;width:100%;}";sd+=z12+" ul li{-moz-user-select:none;cursor:default;margin:0px;"+dto.item_styles+"}";
sd+=z12+" ul li a{margin:0px;"+dto.item_link_styles+"}";sd+=z12+" ul li a:hover{"+dto.item_link_hover_styles+"}";sd+="</style>";document.write(sd)
;}</script>

<!--  *********************************************** End Source Code ******************************************** -->



<div>

	<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
	<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
</div>
<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>


<script src="/WebResource.axd?d=v54fqL9UR-gtX7Z_csAreQ2&amp;t=632961724477777387" type="text/javascript"></script>


<script type="text/javascript">
<!--

WebForm_InitCallback();// -->
</script>
</form>
</body>
</html>
 
If I could edit that last post I would, seems to want to stretch the page ... sorry about that ...

I did notice that if I response.write the information to the page, it gets posted at the top of the page and it will send the necessary data to the payment portal site. When I use the labels and hidden fields in the body of the site, it just refreshes the page it would seem.

Should I create a popup to this page from the previous so I don't have to worry about it, just have to figure out how to pass the querystrings in the pop up ...

Hmmm...
 
I figured it out! OK, as we know ASP.NET only likes to have the one form (kinda) and my outdated way doesn't fit very well into the ASP.net mold. Anyway, the way I got it to work is to create a label which forces the Form Server control closed just before my code gets put into the template as such: (This is just part of the IF..THEN code on the Page_Load Handler.
Code:
Else

'This closes the aspx page form since I don't need it anymore and it enables my client side form to fire without refreshing the page.
            Labelendform.Text = ("</form>")


            Label1.Text = ("<br />Please verify your payment of <b>$" & Payment & "<br /></b> to account <b>" & Account & "</b> for <b>" & NameID & "</b>.<br /><br />")
            Label2.Text = ("When you are ready to proceed and finalize your payment,<br /> click the button below. ")
            Label3.Text = ("<form action=""[URL unfurl="true"]https://www.websitepayment.com/onlinepayment/redirect/""[/URL] method=""post"">")
            Label4.Text = ("<input type=""hidden"" name=""Name"" VALUE=""" & CustNameID & """ />")
            Label5.Text = ("<input type=""hidden"" name=""Account"" VALUE=""" & AccountID & """ />")
            Label6.Text = ("<input type=""hidden"" name=""Amount"" VALUE=""" & Payment & """ />")
            Label7.Text = ("<input type=""hidden"" name=""Client"" VALUE=""555555"" />")
            Label8.Text = ("<input type=""hidden"" name=""Password"" value=""pass"" />")
            Label9.Text = ("<input type=""hidden"" name=""Confirmation"" value=""true"" />")
            Label10.Text = ("<input type=""hidden"" name=""Payment"" value=""Company name"" />")
            Label11.Text = ("<input type=""hidden"" name=""pass"" value=""pass"" />")
            Label12.Text = ("<input type=""hidden"" name=""Redirect"" value=""[URL unfurl="true"]http://www.website.com/Payment.aspx""[/URL] />")
            Label13.Text = ("<br /><br /><input type=""submit"" value=""Click here to Verify and Proceed!"" />")
            Label14.Text = ("</form>")

Using this method, (Cutting the page form off at the knees) I was able to convert my old way of using response.write (which posted the data since it injects it before the aspx form)and used the newer way with the "labels.value =" which I like way better and was able to post my old form off to the ColdFusion server using the regular way they require.

This is just a quick fix.

Thanks folks and hopefully this will help someone else!

MZ
 
Original Problem: The reason your form wasn't working before is because no browser/language that I am aware of can handle a form within a form.

Another Possible Solution:
Another solution that might hae worked (sorry, didn't read all of your output) is tyo simply add a client-side onClick to your button that you want to post to the other page with. This event handler would only be responsible for doing one thing:
onClick='theForm.action=" the innate form submit action should then occur as usual and submit to the new page. If it didn't then you could follow that up with a theForm.submit(); and then a return false; to short circuit the submit action.

Basically we would be changing the address for the entire ASP.net form to post to your CFM page, which could hopefully handle getting several more POSted variables than it actually needs.

-T

 
Tarwn,

I'll have to test out your suggestions. I did try something similar on the ASP:Button properties but everything I tried always sent over the hidden fields asp.net sends for the viewstate or whatever it is that has the value of _EVENTARUGMENTS and the CF server would just respond with the error that it's not the information it's looking for since that gets sent first. The CF server is looking for an HTTPPOST with only the variables it's looking for.

I just found another solution here that I might try as well just to learn something new:

Anyway, Cutting the main page form just before my form seems to work for now and it's only temporary. The folks hosting the CF server are re-writing some of their code in the next few months that will hopefully solve the problems.

Thanks!

MZ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top