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
I'm able to use the live sample successfully online, however, using the same one locally fails when I try to edit the field that has the WebCombo. When I double-click the SupplierID entry, I get the following error in a standard alert box with an OK button:
Can't find WebCombo.NET instance with ID 'ctl00_content_wcSuppliers'
A similar error occurs if I try to edit a CategoryID column field. Any ideas why this is happening? I also have issues with the WebGrid sample, locally, that integrates the WebInput.NET control. That one does NOT bring up an alert, but it does have the following error on the page:
Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; GTB7.1; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) Timestamp: Tue, 9 Aug 2011 17:18:09 UTC Message: Object required Line: 7 Char: 24063 Code: 0 URI: http://localhost:33402/ISNet.WebUI.Samples/ISRes.axd?G/WebGrid_Edit.js/707200431 Message: Object required Line: 7 Char: 24063 Code: 0 URI: http://localhost:33402/ISNet.WebUI.Samples/ISRes.axd?G/WebGrid_Edit.js/707200431 Message: Object required Line: 7 Char: 24063 Code: 0 URI: http://localhost:33402/ISNet.WebUI.Samples/ISRes.axd?G/WebGrid_Edit.js/707200431 Message: Object required Line: 7 Char: 24063 Code: 0 URI: http://localhost:33402/ISNet.WebUI.Samples/ISRes.axd?G/WebGrid_Edit.js/707200431
Note that if I bring up the IE debugger (F12), this resource is loaded and available on the Script tab as I was able to load it just fine. It looks like it's trying to act on a null object in the JavaScript code.
I apologize for any inconvenience this problem may have caused you.
I tried to reproduce the problem in my local test by viewing the IntegrationwithWebCombo.NET.aspx sample file using IE browser but my efforts were not successful – everything worked smoothly and the local sample page was accessed without any issues.
I enclosed the same sample file as attachment.
The error message, “Can’t find WebCombo.NET instance with ID ‘ctl00_content_wcSuppliers’, is self-explanatory. It says that WebCombo.NET instance with the specific ID is not available during the integration to WebGrid.
Please kindly check two properties mentioned below.
Please ensure that the id of WebCombo declared in the WebCombo instance is match with the one set as the value of WebComboID property in the WebGridColumn object.
For example: the id of WebCombo instance is “wcSupplier”
<ISWebCombo:WebCombo ID="wcSupplier" runat="server" DataMember="Suppliers" DataSourceID="ISDataSource1" DataTextField="CompanyName" DataValueField="SupplierID" Height="20px" UseDefaultStyle="True" Width="200px"> </ISWebCombo:WebCombo>
and the value of WebComboID property is “wcSuppliers”.
... <ISWebGrid:WebGridColumn Caption="SupplierID" DataMember="SupplierID" DataType="System.Int32" EditType="WebComboNET" Name="SupplierID" WebComboID="wcSuppliers" Width="100px"> ... </ISWebGrid:WebGridColumn> ...
Please ensure that the ClientIDMode is set to “AutoID”. The snippet code below shows the ClientIDMode property that is set in application level (at System.Web section of Web.config file).
<system.web> ... <pages clientIDMode="AutoID" .../> ... </system.web>
Hope this helps.
Yudi,
This is YOUR project and samples and code so unless I have a "bad" copy it should have the same code/configuration as you or what's on the online live samples? And yes I understand the message is self explanatory. It wasn't the message I was asking about, it's the WHY.
Here's what I found from the Show Codes for the grid's definition of the two WebCombo columns:
20 <ISWebGrid:WebGridColumn Caption="SupplierID" DataMember="SupplierID" DataType="System.Int32" 21 EditType="WebComboNET" Name="SupplierID" WebComboID="wcSuppliers" Width="100px"> 22 <ValueList DataMember="Suppliers" DataTextField="CompanyName" DataValueField="SupplierID"> 23 </ValueList> 24 </ISWebGrid:WebGridColumn> 25 <ISWebGrid:WebGridColumn Caption="CategoryID" DataMember="CategoryID" DataType="System.Int32" 26 EditType="WebComboNET" Name="CategoryID" WebComboID="wcCategories" Width="100px"> 27 <ValueList DataMember="Categories" DataTextField="CategoryName" DataValueField="CategoryID"> 28 </ValueList>
The live sample does NOT have a separate WebCombo tag declared since it's embedded in the grid and the I went ahead and checked the web.config for the live samples and it does NOT have the page clientIDMode attribute/property set explicitly.
Does your local live samples code mirror what I found?
I went ahead and created a quick video of the issue.
[EDIT] Yudi, I just realized I didn't go further down the code in the video so you didn't see the web combo aspx code. Here it is.
164 <ISWebCombo:WebCombo ID="wcCategories" runat="server" DataMember="Categories" DataSourceID="ISDataSource1" 165 DataTextField="CategoryName" DataValueField="CategoryID" Height="20px" UseDefaultStyle="True" 166 Width="200px"> 167 </ISWebCombo:WebCombo> 168 <ISWebCombo:WebCombo ID="wcSuppliers" runat="server" DataMember="Suppliers" DataSourceID="ISDataSource1" 169 DataTextField="CompanyName" DataValueField="SupplierID" Height="20px" UseDefaultStyle="True" 170 Width="200px"> 171 </ISWebCombo:WebCombo>
I assume that you are using the most recent of Intersoft WebUI Studio installer file, Intersoft WebUI Studio 2011 R1 SP1 (658 MB in size and has Tuesday, June 14, 2011, 14:33:36 as the Date Modified).
I started the investigation by install the Intersoft WebUI Studio 2011 R1 SP1 on a PC (clean install), then run the specific sample by performing following action:
The sample file was rendered and accessed with satisfactory result.
The investigation then continued by checking the sample file, IntegrationwithWebCombo.NET.aspx, and the web.config file of WebGridSamples project. The sample file, IntegrationwithWebCombo.NET.aspx, is identical to the one that available on your end. However, I found that there is a line in web.config file which explicitly set the clientIDMode property.
It comes to an end that we might have different version of Intersoft WebUI Studio suite installed on our end; or you might have bad/corrupt copy of the sample project.
I also would like to apologize for my improper statement or less precise respond on my previous post. I actually didn’t have any intention to do that.
Feel free to let us know your response.
Hi Yudi,
The version I initially installed was the released version downloaded from the Developer Network. We have, since, applied the latest patches/hot fixes. Could those have updated the live samples files?
You gave me an idea though. I'm going to do a clean installation on another computer and then copy the ISNet.WebUI.Samples folder from the clean install over to my development computer as that should give me the clean copy assuming the patch/hot fix updates didn't update anything in the samples.
I downloaded webuistudio2011sp1.exe from the Developer Network and just installed it on a clean system that had never had WebUI Studio installed on it and am running into the same issue.
Please note that we're still using Visual Studio 2008 due to the fact that we can't currently upgrade because of my other post due to problems in the upgrade process.
Did you do your test using VS2008?
[EDIT] After the install, I ran Update Manager was only able to update the base framework as the other available updates were locked out for whatever reason. Not sure if this is contributing to this or not but woth mentioning.
The test was conducted using VS2010. I’ll repeat the test on a PC that has VS2008.I’ll inform you the result of the test.
Thanks Yudi.
This is a high priority for us as we can't get it to work at all right now. We have a grid in our application that must be editable with WebCombo integrated so it's important we get this working ASAP please. I was supposed to demo this to management tomorrow morning and right now that's not going to happen and they're not going to be happy.
Can any other users of WebUI Studio 2011, who are using Visual Studio 2008, confirm if you're having this issue too please?
I created new web site and then copied the elements from the live samples and was able to get it working now but only in my new web site. The Live Samples, for whatever reason, still does NOT work.
I've attached the project. Note the file Bin files list.txt which contains the DLLs you'll need in the Bin folder. I've confirmed this sample works correctly in VS2008 on both my Windows 7 and Windows 2008 Server R2 environments.
However, I still can't figure out why it's doing the same thing as in the Live Samples in my development environment.
I created one more sample that more closely reflects how we do things in our app as it's heavily database driven so we create most objects dynamically including configuring those objects.
The attached example is an update the previous one that uses custom objects and the page configured dynamically.
The issue I'm running into is that when I attempt to edit a WebCombo object, upon loading its data, it's refreshing the entire page and I'm not sure where I'm going wrong. I was hoping you can offer some assistance in this.
Please make sure to always use Visual Studio 2008 when working with us since that's the environment we're still using for the time eing. Thank you.
[EDIT] Updated attachment to most recent version.
Where are we with this? I have another meeting in less than 2 hours and I don't have anything good to pass on. We need to get this stuff working for at least one of our pages which is going to be a primary screen for users using in-place editing. Right now development on this page is dead in the water unless we can figure out why this is not working.
By the way, the error from within our application is without an id altogether, i.e.,
Can't find WebCombo.NET instance with ID ''
I have managed to retest the issue by doing clean-install of Intersoft WebUI Studio 2011 R1 SP1 on a PC that only has MS Visual Studio 2008 SP1 installed.
Unfortunately, I was unable to reproduce the reported issue on my local end. The IntegrationwithWebCombo.NET.aspx sample file was accessed without any issues.
I sent you a message in your registered email account, please kindly check your inbox and let me know your response.
I'll check my email, thank you.
This makes no sense to me since I also installed this on a clean system, however, mine has both VS2008 and VS2010. I had never installed WebUI Studio on this system and it's running Windows 7 Enterprise 32bit. I only use VS2010 for Team Systems related tasks since it's more reliable and has more features.
I guess I'm asking if you install it on a system that has both but select the option to integrate into VS2008, do you still have the same issue? Also, I'm curious, why doesn't the installation allow for integrating into both IDEs?
The test was taken on a PC that has following configuration:
During installation, the Intersoft WebUI Studio 2011 R1 SP1 will add Intersoft’s controls into both instance of MS Visual Studio (VS 2008 and VS 2010). And so does with the template (project template, file template, etc). Only the sample projects will be installed on specific Visual Studio version based on user selection.
We still can use/open the VS 2008 Sample on VS 2010 or vice versa by adding modifying some lines on the web.config file of the sample project.
Apologize for the delay in sending this.
Hello Yudi,
I have not heard anything since our conversation almost a month ago now. Any progress on what I had showed you? I'm going to get back to this soon so I need to know if we have a solution please.
Hello Yousif,
I enclosed a complete project of “integrate WebCombo into WebGrid” scenario. Please note that you will need to add the assembly files into the bin folder of the project which is mentioned in the assembly file list.txt. I’ve confirmed that both of the sample file and web.config file is identic with the attached sample on your previous post.
Please have the project tested on your end and let us know whether it works or not.
I also attached one simple sample that shows how to create WebGrid and WebCombo programmatically. In this sample, the WebCombo is used as WebGrid’s column editor. Please try to run the sample on your end and edit the “ShipVia” column.
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