Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2006, 04:14 PM
Registered User
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Log in page error

i try to do a simple log in page
but i encounter an error anyone can help?


this is the error msg:

Server Error in '/CPM project' 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(St ring uniqueId, String argument) +358
   System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +108
   System.Web.UI.WebControls.TextBox.LoadPostData(Str ing postDataKey, NameValueCollection postCollection) +22
   System.Web.UI.WebControls.TextBox.System.Web.UI.IP ostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +11
   System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData, Boolean fBeforeLoad) +381
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boo

this is my login page code

<%@ Page Language="VB" masterpagefile="~/MasterPage.master"%>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    &nbsp;




    <form id="form1" >
    <div>
        <br />


    <asp:Login ID="Login1" runat="server" style="z-index: 100; left: 12px; position: absolute; top: 336px">
    </asp:Login>
<asp:LoginStatus ID="LoginStatus1" runat="server" style="z-index: 102; left: 341px; position: absolute; top: 439px" />
         </div>
    </form>
</asp:Content>

this is my master page code

<%@ Master Language="VB" %>



<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
<script language="javascript" type="text/javascript">
<!--

function IMG1_onclick() {

}

// -->
</script>
</head>
<body>
   <form runat=server>


   <img src="App_Themes/lanai/hotel%20logo.bmp" style="z-index: 106; left: 35px; width: 114px;
                 position: absolute; top: 62px; height: 103px" id="IMG1" language="javascript" onclick="return IMG1_onclick()" />
    &nbsp;<div>
    <div id="header">
        <asp:LoginStatus ID="LoginStatus1" runat="server" />
        <br />

    <h3 style="text-align: left">
        <span style="font-size: 24pt">&nbsp; <span style="font-size: 16pt">&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp; &nbsp;&nbsp;
            <span style="font-size: 18pt">
            Hilton Hotel Restaurant &nbsp; </span></span></span></h3>
        &nbsp; &nbsp; &nbsp;
         <asp:HyperLink ID="HyperLink3" runat="server" Style="z-index: 102; left: 43px; position: absolute;
                 top: 229px" Font-Names="Times New Roman" Font-Size="12pt" NavigateUrl="~/Home.aspx">Home</asp:HyperLink>
                 <asp:HyperLink ID="HyperLink2" runat="server" Style="z-index: 100; left: 240px; position: absolute;
             top: 231px" Font-Names="Times New Roman" Font-Size="12pt" NavigateUrl="~/Catering.aspx">Catering</asp:HyperLink>
        <br />
        <asp:HyperLink ID="HyperLink1" runat="server" Style="z-index: 100; left: 107px; position: absolute;
                 top: 232px" Font-Names="Times New Roman" Font-Size="12pt" NavigateUrl="~/Reservation.aspx">Reservation</asp:HyperLink>
             <br />
         <asp:HyperLink ID="HyperLink4" runat="server" Style="z-index: 101; left: 334px; position: absolute;
             top: 231px" Font-Names="Times New Roman" Font-Size="12pt" NavigateUrl="~/Payment.aspx">Payment</asp:HyperLink>
         <asp:HyperLink ID="HyperLink5" runat="server" Style="z-index: 104; left: 434px; position: absolute;
             top: 232px" Font-Names="Times New Roman" Font-Size="12pt" Width="99px" NavigateUrl="~/Contact.aspx">Contact Us</asp:HyperLink>


        <br />




     <div id="wrapper">

        <br />

         <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
             &nbsp;<br />
             <br />

             &nbsp; &nbsp;<br />
             <br />
             <br />

             <br />
             <br />
             <br />
             <br />
             &nbsp;<br />
             <br />
             <br />
             <br />
             <br />
             <br />
             <img src="App_Themes/lanai/chicken.bmp" style="z-index: 103; left: 57px; width: 135px;
                 position: absolute; top: 561px; height: 104px" />
             &nbsp; &nbsp;
             <br />
             <br />
             <br />
             <br />
             <br />
             <br />
             <br />
             <br />

</asp:ContentPlaceHolder>

    <div id= "footer"> Copyright 2006 Hilton Hotel </div>

    </div>
   </form>
</body>
</html>








Similar Threads
Thread Thread Starter Forum Replies Last Post
log in page like orkut nirmalbarsainyan ASP.NET 1.0 and 1.1 Professional 1 April 24th, 2007 02:12 AM
log in page like orkut nirmalbarsainyan ASP.NET 2.0 Basics 0 April 18th, 2007 08:45 AM
Page 409 - Log File Example doesn't work platimer BOOK: Beginning ASP 3.0 0 July 29th, 2005 02:22 PM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.