PDA

View Full Version : ارور در لاگین



miiiti
سه شنبه 03 تیر 1393, 15:58 عصر
وقتی میخوام لاگین کنم این ارور میده (رو لوکال) ... پست بکم نمیدونم چیه ؟/.. سرچم زدم چیزی دستگیرم نشد
مشکلش از کجاست ؟



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(St ring uniqueId, String argument) +342
System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +118
System.Web.UI.Control.ValidateEvent(String uniqueID) +43
System.Web.UI.WebControls.TextBox.LoadPostData(Str ing postDataKey, NameValueCollection postCollection) +61
System.Web.UI.WebControls.TextBox.System.Web.UI.IP ostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +42
System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData, Boolean fBeforeLoad) +690
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3093

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408


ممنون میشم راهنمایی کنید با سپاس

aroshanzamir
سه شنبه 03 تیر 1393, 17:36 عصر
سلام

اول اطلاعت لود صفحه را در این قسمت قرار بده


if (!this.IsPostBack) { }




اگر نشد
مقدار EnableEventValidation را
false کن ...

اگر نشد اطلاعات اون صفحه را بگذار

miiiti
سه شنبه 03 تیر 1393, 17:56 عصر
سلام

اول اطلاعت لود صفحه را در این قسمت قرار بده


if (!this.IsPostBack) { }




اگر نشد
مقدار EnableEventValidation را
false کن ...

اگر نشد اطلاعات اون صفحه را بگذار




مرسی با فالس کردن اونت درست شد ولی من هنوز کاربرد و جای استفاده از postback رو نمیدونم ...
باید داحل پستبک چی قرار بدم ؟
من خیلی مبتدیم :ناراحت:

ali-akbarian
سه شنبه 03 تیر 1393, 18:17 عصر
چه خوبه از بچه های که پاسخگو هستند حدئق کاری که می تونیم بکنیم اینه که یه تشکر داشتم باشیم

aroshanzamir
سه شنبه 03 تیر 1393, 18:22 عصر
چه خوبه از بچه های که پاسخگو هستند حدئق کاری که می تونیم بکنیم اینه که یه تشکر داشتم باشیم

دوست من پاسخ ندادم که این دوستمون بخواهد از من تشکر کنه ... ولی خوب حرف شما هم تا حدی صحیح میباشد
مرسی از لطف شما

miiiti
سه شنبه 03 تیر 1393, 19:34 عصر
جواب سوالم تشکر کردن بود ؟:لبخند:

hamid_0341
چهارشنبه 04 تیر 1393, 07:01 صبح
کد لاگینت چیه؟
یه سرچ کنی پست بک توضیح زیاد داره
http://stackoverflow.com/questions/4251157/what-is-a-postback
http://www.c-sharpcorner.com/uploadfile/2f73dd/what-is-postback-in-Asp-Net/