开发者

LinkButton in GridView

I have a problem and not getting why is it so. I have a grid view and it contains some 10,000 rows without any pagination. For each Row I have a Edit LinkButton n the TemplateField. On the click of this edit LB the control should go to some Edit Page. The problem here is that after clicking on the LB the page is taking lots of time. On the other hand if 开发者_开发技巧I am doing pagination in the GridView and assgning page size = 10 then it is loading very fast. Can anyone please tell me what is the reason. I cant have the pagination for this gridView

Regards,

Vikram


GridView consumes a lot of ViewState.

if you are using other page for editing, maybe you should use Repeater instead of Gridview, and instead of the LinkButton just an Hyperlink with url EditPage.aspx?id={something}


Have you tried removing the viewstate of the grid?? I think that should sort out the issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜