Quoros
Quoros

Reputation: 184

GridView Page Index Change Event causes JavaScript runtime error

On Page Index Change Event of GridView, the following error is caused.

JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

The gridview is inside an update panel and there are following AsyncPostbackTriggers:

<asp:AsyncPostBackTrigger ControlID="gvKnowledgeDetails" 
                            EventName="PageIndexChanged" />
             <asp:AsyncPostBackTrigger ControlID="gvKnowledgeDetails" 
                            EventName="PageIndexChanging" />
                                <asp:AsyncPostBackTrigger ControlID="gvKnowledgeDetails" EventName="RowCommand" />
                                <asp:AsyncPostBackTrigger ControlID="btnUpdateKnowledgeDetails" />
                                <asp:AsyncPostBackTrigger ControlID="btnCancelV" />
                            </Triggers>

I an unable to find any solutions to fix this error.

Upvotes: 0

Views: 560

Answers (1)

abramlimpin
abramlimpin

Reputation: 5077

From your ScriptManager control, add the following attribute and it's value:

<asp:ScriptManager runat="server" EnablePartialRendering="false" />

Upvotes: 1

Related Questions