Upgrading webgrid6.0 to Webgrid 7.0 problem.

3 replies. Last post: October 14, 2009 9:31 AM by James
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Xedem Member

After updating dll update, adding script files and everything, still there found to be some problems.

I have some  pages in my project that use sendcustomrequest of webgrid. And does some calculations in the server initialise postback event. After that a response.redirect(or server.transform) is made based on the calculations. After updating to Webgrid 7, the redirection is not working. It doesnt throw any error. In fact i put a breakpoint in the second page and found that the control is actually transferring to the second page and it runs as well. However its not getting live. So if i perform any further operation on the first page again, the operation is done on the context of the first page itself. In fact it should have shown error if the context is switched to the first page. '

Protected Sub WGAccountCategory_InitializePostBack(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.PostbackEventArgs) Handles 		WGAccountCategory.InitializePostBack
If e.Action = PostBackAction.Custom Then
If (hfDelActive.Value = "Delete") Then
ChangeStatWebGrid(hfDelId.Value, "Y")
WGAccountCategory.ClientAction.Refresh()
Else
ChangeStatWebGrid(hfDelActive.Value, "N")
Response.Redirect("EditAccountCategory.aspx?ACId=" + hfDelActive.Value, True)
'HttpContext.Current.ApplicationInstance.CompleteRequest()
End If
End If
End Sub


In short after updating, calling response.redirect or server.transfer in the initialise postback event doesnt switches the context to the second page. Suppose i put an alert just after the grid.sendCustomRequest() event in javascript, the response.redirect works and switches to the second page. Voila!. So i suppose the javscripts causing some error. The error is critical for our project. so pls respond immediately.

 
Vinayan
All times are GMT -5. The time now is 6:41 PM.
Previous Next