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
Please find the attached sample havin an aspx file and its code behind having two drop down lists with flypostback manager implemenation. It works just absoutely fine and when i implemented same in my SharePoint web part where on clic of a button i want to get some date asynchronously and refresh the grid with latest data asyncrhonously withough full page post back, but i am getting javascript error saying object or method is undefined. It seems even after adding attribute to the method it is not accessible in javascript..
Some of the code extract i added for WebFlyPostBackManager
1. In CreateChildControls() method.
webFlyPostBackManager = new WebFlyPostBackManager(); webFlyPostBackManager.BlockPageUIOnBusy = true;
webFlyPostBackManager.BlockPageUIOnBusy = true;
webFlyPostBackManager.ID = "webFlyPostBackManager";
webFlyPostBackManager.IsDynamicCreated = true;
webFlyPostBackManager.ServiceUrl = "~/Default.aspx"; webFlyPostBackManager.EnableUIMode =
webFlyPostBackManager.EnableUIMode =
Controls.Add( webFlyPostBackManager );
interSoftWebUIGrid.FlyPostBackSettings.PostHiddenFields = true; interSoftWebUIGrid.FlyPostBackSettings.PostInputControls = true; interSoftWebUIGrid.FlyPostBackSettings.PostViewState = true;interSoftWebUIGrid.FlyPostBackSettings.PostViewState = true;interSoftWebUIGrid.FlyPostBackSettings.PostViewState = true;
interSoftWebUIGrid.FlyPostBackSettings.PostInputControls = true; interSoftWebUIGrid.FlyPostBackSettings.PostViewState = true;
interSoftWebUIGrid.FlyPostBackSettings.PostViewState = true;
2. In WebPart code file
{
interSoftWebUIGrid.ClearCachedDataSource();
interSoftWebUIGrid.RebindDataSource();
webFlyPostBackManager.ClientAction.UpdateViewState();
webFlyPostBackManager.ClientAction.RenderControl( interSoftWebUIGrid);
}
3. In JavaScript
fpb.ShowNextTimePeriodData();
// Above line gives an error saying Error: Object doesn't support this property or method
Any idea why i am not able to get this method on client side even after adding the required attribute to it ?
Can you please send us a small SharePoint web part example for doing this ?
Thank you.
Based on my discussion with the developer, the error is raised because the page could not found the function, which might be caused by setting the service url incorrectly.
We suggest using similar technique in our WebDesktop sample, SimpleTypeWF.aspx, in which we set the service URL to an external form.
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