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
Hello,
Example:
WebGrid (401) with ClientSideBinding and Classic Custom Paging.
On Page_Load WebGrid load structure by LoadTablesStructureFromXml method. If you put this code without checking isPostBack like this:
//if (!IsPostBack) //{ WebGrid1.DataMember = "V_CONN_STAT"; WebGrid1.LoadTablesStructureFromXml(Server.MapPath("~/V_CONN_STAT.xml")); //}
then you can get StackOverflowException .
To replicate , try this steps:
1. after first loading page, change the page numer to another (page 3)
2. (important) click any row to select them (if don't exception doesn't appear)
3. go to page back (page 2 for example)
and you've got a StackOverflowException
I include example page without database(I work on Sybase)
Regards
Andrzej
The issue has been fixed in this new hotfix. I attached the hotfix. Please test it and let me know if you have the same result or not. Btw, I suggested to load the structure inside !ISPostBack condition.
FYI, this nightly build has not been tested for regression and we are really appreciate if you might give us feedbacks when you encounter any issues/problems regarding this build.
Regards,Handy
Hello Andrej,
I could not replicate the issue based on your information. But I think you will need to LoadTableStructure at PrepareDataBinding event because WebGrid has not bound yet in PageLoad. I also suggested you to set DataMember properties at WebGrid without server side code. Hope this helps.
Hello Handy,
.. LoadTableStructure at PrepareDataBinding event because WebGrid has not bound yet in PageLoad
are you sure ? - it's too late - have you tried it ?
we can do that in "InitializeLayout" for example
In my project I manage list of tables by one aspx page, just by changing xml with structure. So your suggest about DataMember isn't properly for this reason.
I've prepared new example code. I didn't play with paging in North wind class (don't care about it)
Please do the following:
1. run the page and click go to next page
2. click on any row to select them
3. click the previous page
... and I've got a
An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll
My ver:
WebGrid ver 401
Framwork 751
regards
Hi Andrzej,
I was unable to run the sample you sent. After I modified by using my own QueryString and replace North.xsd (same table), I can run the sample (if I comment out product.xml). I assume you faced the error after load .xml, correct? So, would you mind to send products.xml? I tried to run normally and save the stucture. But when I run my saved xml, I could not see your error. Also, please try to use our latest hotfix (WebGrid and WebUIFramework). We have released the hotfixes a week ago.
I've updated all controls (WebGrid 402, framework 752), and nothing my Stackoverflow exception still exists.
Before test I save the structure once again.
Product.xml is in attachment.
I have modified your sample and got different error (something like "error line of code..."). So, I sent you the modified project. Please let me know if there is something that I was missing in replicating your issue.
Sorry, but I don't understand your example.
If I run stackoverflow2.aspx there is no structure.
I suppose you have to use SaveTablesStructure in default.aspx to create binary file and next using it in stackoverflow2.aspx - don't you ?
So there is missing
WebGrid1.LoadTablesStructure(Server.MapPath("Products.xml"));
in WebGrid1_InitializeLayout method in stackoverflow2.aspx
When I use SaveTablesStructure and next LoadTablesStructure I 've got Stackoverflow exception also in situation described in previous post.
At the end when I click previous page, the "Loading page 2..." is showing c.a. 30sec and next:
Hello Andrzej,
Previously, I thought you have the structure. Now, please try to watch my recording video. I could not replicate your error in here. All I did, just comment out iAnyware library and create the new Nort.xsd dataset. The others still the same as before. Please let me know if there is something that you want to know.
..what would you like to replicate if you save to xml file, empty structure of WebGrid ?????
...next your example load structure without column,
...next you change the page of webGrid , but there is no data - what is it ????
Are you understand what I'd like to show you ??????
I attach clear sample without iAnywhere dll one again.
I kindly ask you to do the following (4-steps):
1. run the "stackoverflow2.aspx" (so you've got list of products)
2. click "next page"
3. click on row with ProductID=2
4. click "previous page"
... after 30 sec. you should get Stackoverflow exception
I am sorry that I missunderstanding your point. The last modified sample also could not replicate the exception you mentioned. But I think there is an issue. I got no exception, but WebGrid got not responding. I will discuss this issue to our developer regarding this issue.
Hi Handy,
Thank you, I'll be waiting for reply
I am able to see the error now. It only can be seen in debug mode. In order to replicate the issue, you can also select any row after WebGrid loaded data and goto prev/next page.
When this issue will be solved ?
I have sent email to ask and remind our developer teams regarding this issue. I will let you know asap when I received news from them.
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