Disable Viewstate
HejsaJeg kan ikke få disabled viewstate.
Selvom jeg skriver EnableViewStat = false i <%Page>
Kan nogen hjælpe mig?
Asp .net 2.0
Vis kode:
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExMDk4MTkxOTVkZBBcoA8ZBZipGtIbKxuPm5uBrNrg" />
</div>
Min aspx-fil:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Epay.aspx.cs"
Inherits="Firma.Website.Epay" EnableViewState="false" %>
<%@ Register Src="Context.ascx" TagName="Context" TagPrefix="uc2" %>
<%@ Register Src="menu.ascx" TagName="menu" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head runat="server">
<link rel="shortcut icon" href="~/favicon.ico">
<title>ePay | ServicePartner Danmark A/S</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<form runat="server" action="https://ssl.ditonlinebetalingssystem.dk/integration/ewindow/Default.aspx"
method="post">
<input type="hidden" name="cancelurl" value="http://www.firma.dk/PaymentDeclined.aspx" />
<input type="hidden" name="accepturl" value="http://www.firma.dk/Reciept.aspx?orderno=" />
<!--
<input type="hidden" name="accepturl" value="http://localhost:8080/Reciept.aspx?orderno=" />
-->
<asp:Literal ID="EPayLiteral" runat="server"></asp:Literal>
<input type="hidden" name="group" value="" />
<input type="submit" value="Til betaling" />
</form>
</body>
</html>