Avatar billede cade.dk Nybegynder
08. oktober 2007 - 20:24 Der er 2 kommentarer

Ang. Betalings form til wannafind.dk i asp.net (vb)

Ohøj ohøj... Jeg har denne plain html form fra wannafind.

<form method="post" action="https://betaling.wannafind.dk/auth.php"> <input type="hidden" name="shopid" value="SHOPID"> <input type="hidden" name="currency" value="CURRENCY (DKK 208)"> <input type="hidden" name="amount" value="AMOUNT"> <input type="hidden" name="orderid" value="ORDERID"> <input type="hidden" name="paytype" value="creditcard"> <input type="hidden" name="uniqorderid" value="TRUE / FALSE"> <input type="hidden" name="accepturl" value="ACCEPTURL"> <input type="hidden" name="declineurl" value="DECLINEURL"> <input type="text" name="cardnum" size="25"> <input type="text" name="emonth" size="2"> <input type="text" name="eyear" size="2"> <input type="text" name="cvc" size="3"> <input type="submit" name=”submit” value="Payment"> </form>

Men jeg kan simpelthen ikke for skidtet til at virke sammen med min asp.net kode.. jeg får at vide at jeg skal sætte EnableEventValidation="true" i toppen af siden, det hjælper mig dog lige lidt..

Jeg er helt blank, nogen der kan hjælpe mig et skridt videre?
Avatar billede erikjacobsen Ekspert
08. oktober 2007 - 21:47 #1
Er det fordi du ender med at have en <form> inde i en <form> på din side?
Avatar billede cade.dk Nybegynder
09. oktober 2007 - 19:55 #2
Nej det tror jeg ikke..

Jeg får denne fejl / besked:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:


[ArgumentException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.]
  System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +2127849
  System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +106
  System.Web.UI.HtmlControls.HtmlInputButton.RaisePostBackEvent(String eventArgument) +31
  System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester