PDA

View Full Version : سوال: پیغام خطا زمان ویراش GridView



ARC
یک شنبه 25 اردیبهشت 1390, 12:48 عصر
سلام
من یک GridView دارم که برای ویرایش اون مقادیر رو با استفاده از یک dataReader میخونم و در یک textbox و یک RadioButtonList قرار میدم و چون صفحه من از 2 تا View تشکیل شده مقدار ID فیل مربوطه رو هم با ViewState انتقال میدم ولی زمانی که روی دکمه ثبت کلیک می کنم تا تغییرات مربوطه آپدیت بشه این خطا رو میده میشه راهنمایی کنید مشکل از چیه و چطور باید رفعش کرد؟


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.Web.HttpException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

karim orooji
یک شنبه 25 اردیبهشت 1390, 13:17 عصر
سلام برنامه رو ضمیمه کن