kahe.mehrdad
پنج شنبه 17 مهر 1393, 09:44 صبح
سلام به همه.
توی updatepanel در asp.net یک ویژگی با عنوان Mode وجود داره. توی forums.asp.net گشتم این چیزا رو نوشته بود:
Mode="conditional' causes the updatepanel to update when one of three things happen:
1) If a control within the updatepanel causes the actual postback
2) If a trigger on the updatepanel updates
3) If someone calls "Update()" on the updatepanel itselfOtherwise, it won't update and refresh.
When it is set to always, however, it will always refresh. اما دقیقا متوجه نشدم کارش چیه.
میشه لطف کنید یکم راجع به دو تا مقداری که Mode میگیره یعنی conditional و always توضیح بدید؟
یک سوال دیگه. اگر بخوایم به وسیله یه متد یا یک کنترل خارجی UpdatePanel را Fire کنیم باید دقیقا چیکار کنم؟ من از DataBind() استفاده کردم کار کرد آیا راهش همینه؟
توی updatepanel در asp.net یک ویژگی با عنوان Mode وجود داره. توی forums.asp.net گشتم این چیزا رو نوشته بود:
Mode="conditional' causes the updatepanel to update when one of three things happen:
1) If a control within the updatepanel causes the actual postback
2) If a trigger on the updatepanel updates
3) If someone calls "Update()" on the updatepanel itselfOtherwise, it won't update and refresh.
When it is set to always, however, it will always refresh. اما دقیقا متوجه نشدم کارش چیه.
میشه لطف کنید یکم راجع به دو تا مقداری که Mode میگیره یعنی conditional و always توضیح بدید؟
یک سوال دیگه. اگر بخوایم به وسیله یه متد یا یک کنترل خارجی UpdatePanel را Fire کنیم باید دقیقا چیکار کنم؟ من از DataBind() استفاده کردم کار کرد آیا راهش همینه؟