문제

I am having issues being able to update a gridview in an updatepanel with a DDL without updating the entire page. It won't work at all if AutoPostBack on the DDL is set to false and when I set it to true I believe it's updating.

if (page.ispostback)
{
    label.text="posted back"
}
else
{
    label1.text="not posted back"
}
도움이 되었습니까?

해결책

You will get into page_load event event if it is ajax call. It should not send ajax call if AutoPostBack is false that is how dropdown is supposed to behave.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top