PDA

View Full Version : خطا در استفاده از LinkButton



BlackPawn
پنج شنبه 28 بهمن 1389, 17:38 عصر
سلام
VB asp.net
زمانی که از LinkButton استفاده می کنم و یک صفحه با چند لینک باتن که کارشون تغییر ActiveViewIndex مربوط به MultiView هست و چند تا کار ساده دیگه !

به طور عادی کار میکنه ! اما اگه صفحه لود بشه و با هاش کار کنم یا نکنم و در آخر به مدت چند دقیقه مثلا 20 دقیقه هیچ عملی روی فرم انجام نشه ، وقتی روی یکی از لینک باتن ها کلیک کنم خطا میده
و معلوم هم نیست خطاش چیه(البته به خاطر دلایل امنیتی که خودش میگه و زمان سپری شده هست)


چطور باید این مشکلو حل کنم ؟

BlackPawn
پنج شنبه 28 بهمن 1389, 18:02 عصر
به این صورت :



Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

oossaa
پنج شنبه 28 بهمن 1389, 19:41 عصر
دوست عزیز شما custom error رو پاک کن یا مقدار off بهش بده توی web.config تا server مشخص کنه مشکل چیه اما از اونجایی که میگی 20 دقیقه طول میکشه به احتمال خیلی زیاد به دلیل از بین رفتن session هست که احتمالا در رویداد دکمه تو ازش استفاده کردی ولی روی server پاک شده، با گذاشتن یه شرط که اگه session مورد نظرت مقدار null نداره مشکلت حل مشه
اگه باز مشکل داشتی error رو بزن تو تالار تا بیشتر بتوینم کمک کنیم