iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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 IfEnd 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.
Hi Xedem,
There are two solutions for page redirection in FlyPostBack AJAX request:
<httpModules> <add name="FlyPostBackModule" type="ISNet.WebUI.FlyPostBackModule, ISNet.WebUI"></add> </httpModules>
grid.ClientAction.Navigate(newUrl)
Note: Make sure you add the httpModule definition to the correct node depending on your target IIS version. Eg, IIS 7 requires http handlers and modules to be defined in system.webServer node.
Hope this helps,James.
It worked partially. By putting the module the code works only for response.redirect. And the problem still persist for pages using server.transfer. I think you guys didnt fix that yet. Thanks for the solution. However i would appreciate if you guys could fix the problem with server.transfer. And please check my thread regarding jquery as well. As thats critical for me.
Xedem, yes, I think the above code is designed only for Response.Redirect.
The Server.Transfer method performs the data transfer directly on server-side without reaching client-side first, and thus there's no way to really support it during AJAX/partial page refresh.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname