تاپیک مورد نظر بسته شده است
سلام دوستان عزیز
من در حال طراحی صفحه لاگین بودم که وقتی روی دکمه کلیک کردم دیدم ارور میده (فک میکنم پست بک میکنه!)
تکست باکس هام htmlی هستن. ولی دکمه لاگینم asp button هست.
کدهای لاگینم رو پاک کردم اما بازم وقتی روی دیکه کلیک میکنم ارور میده!!!
قبلا با این مشکل مواجه شده بودم اما اونموقع غیر از تگ فرم خود مسترپیج ، یک تگ فرم دیگه هم توی کدهام بود و پاک کردم درست شد. اما الان هیچ تگ فرمی توی کدهام نیست.
متن ارور :
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) +144 System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +111 System.Web.UI.HtmlControls.HtmlInputText.LoadPostData(String postDataKey, NameValueCollection postCollection) +77 System.Web.UI.HtmlControls.HtmlInputText.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +303 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1960
ممنون از دوستانی که وقت میزارن
موفق و سربلند باشید
در بالای صفحه کد زیر را قرار دهید
<pages enableEventValidation="true"/>
ممنون جناب مدائنی . ولی درست نشد :(
این راهی که فرمودین توی صفحه های انگلیسی زبان نوشتن باعث کاهش امنیت میشه(البته تا جایی ک من فهمیدم ! ) . صحت نداره ؟
اون کدی که شما دادین باید برابر false قرار بدم. پیشفرض true هست فکر کنم. یعنی
<pages enableEventValidation="false"/>
ممنون که وقت گذاشتین :)
هیچ کاربری تا کنون از این پست تشکر نکرده است
تاپیک مورد نظر بسته شده و امکان درج پاسخ وجود ندارد
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)