|
Rank: Newbie Groups: Member
Joined: 9/18/2011 Posts: 6
|
I'm trying to implement the free Progrss Bar, and it works great. But I cannot get it to update the results of the task that the Progress Bar was surrounding. In other words, the code in the xxx_RunTask event updates UI.controls on the page. But the StartTaskButton executes the xxx_RunTask event and does not issue a PostBack; therefore changes to the page are not seen by the user.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Please let us know whether you have a license on any of our product. We do not offer free tech support on free controls.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/18/2011 Posts: 6
|
Yes, I just purchased a developer license. I won't post it here, but the Order# is CPG853158Q53.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Thank you very much for your business! RunTask is a very special event that goes through a separate "channel". Only the status information is sent through that channel. So you can not update any controls directly inside RunTask. There are two ways to update other controls through RunTask: 1. Handle the ProgressBar's ClientSideOnValueChanged with JavaScript. Inside this function you can call our client side API to get the ProgressBar's current "value" (progress) and "extraData", then update other UI elements with JavaScript based on these information. Both "value" and "extraData" can be updated by UpdateProgress calls inside your RunTask handler; 2. Handle the ProgressBar's ClientSideOnDone with JavaScript and triggers an additional post back. Then update other UI elements inside that post back. Here are two working samples demonstrating these techniques: http://demo.essentialobjects.com/Demos/Progress%20Bar/Server%20Side%20Task%20-%20Advanced%201/Demo.aspxhttp://demo.essentialobjects.com/Demos/Progress%20Bar/Server%20Side%20Task%20-%20Advanced%202/Demo.aspxThe second sample uses a CallbackPanel to trigger the additional post back. However you can use anything. We have a separate ScriptEvent control that you can use to trigger post back as well. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/18/2011 Posts: 6
|
I followed the example for the Advanced 202 Demo, trying to implement a CallBackPanel. However, the example does not show the HTML for the CallBackPanel, so I added one ffrom the toolbox and got this (with transitional errors): <soap-env:envelope soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap-env:body> <a1:webcontroltoolboxitem id="ref-1" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/System.Web.UI.Design/System.Design%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db03f5f7f11d50a3a"> <locked>true</locked> <filter href="#ref-5"> </filter> <bitmap href="#ref-6"> </bitmap> <assemblyname href="#ref-7"> </assemblyname> <company id="ref-8">Essential Objects, Inc.</company> <displayname id="ref-9">CallbackPanel</displayname> <description id="ref-10">Callback control delivers capability to perform partial page update through AJAX (Asynchronous JavaScript and XML) call back request without reloading the whole page.</description> <typename id="ref-11">EO.Web.CallbackPanel</typename> <dependentassemblies href="#ref-12"> </dependentassemblies> <propertynames href="#ref-13"> </propertynames> <tooldata id="ref-14"><{0}:CallbackPanel runat="server" Width="200px" Height="150px"></{0}:CallbackPanel></tooldata> <persistchildren>1</persistchildren> </a1:webcontroltoolboxitem> <soap-enc:array id="ref-5" soap-enc:arraytype="a2:ToolboxItemFilterAttribute[2]" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.ComponentModel/System%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db77a5c561934e089"> <item href="#ref-15"> </item> <item href="#ref-16"> </item> </soap-enc:array> <a3:bitmap id="ref-6" xmlns:a3="http://schemas.microsoft.com/clr/nsassem/System.Drawing/System.Drawing%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db03f5f7f11d50a3a"> <data href="#ref-17"> </data> </a3:bitmap> <a4:assemblyname id="ref-7" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection"> <_name id="ref-18">EO.Web</_name> <_publickey href="#ref-19"> </_publickey> <_publickeytoken xsi:null="1"> </_publickeytoken> <_cultureinfo>127</_cultureinfo> <_codebase id="ref-20">file:///H:/AgmaBackup/Agma/EOWeb/Net20/EO.Web.dll</_codebase> <_version href="#ref-21"> </_version> <_hashalgorithm xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyHashAlgorithm">SHA1</_hashalgorithm> <_hashalgorithmforcontrol xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyHashAlgorithm">None</_hashalgorithmforcontrol> <_strongnamekeypair xsi:null="1"> </_strongnamekeypair> <_versioncompatibility xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyVersionCompatibility">SameMachine</_versioncompatibility> <_flags xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection" xsi:type="a4:AssemblyNameFlags">17</_flags> <_hashforcontrol xsi:null="1"> </_hashforcontrol> </a4:assemblyname> <soap-enc:array id="ref-12" soap-enc:arraytype="a4:AssemblyName[3]" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection"> <item href="#ref-22"> </item> <item href="#ref-23"> </item> <item href="#ref-24"> </item> </soap-enc:array> <soap-enc:array id="ref-13" soap-enc:arraytype="xsd:string[8]"> <item id="ref-25">Filter</item> <item id="ref-26">Bitmap</item> <item id="ref-27">AssemblyName</item> <item id="ref-28">Company</item> <item id="ref-29">DisplayName</item> <item id="ref-30">Description</item> <item id="ref-31">TypeName</item> <item id="ref-32">DependentAssemblies</item> </soap-enc:array> <a2:toolboxitemfilterattribute id="ref-15" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.ComponentModel/System%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db77a5c561934e089"> <filtertype>Require</filtertype> <filterstring id="ref-33">System.Web.UI</filterstring> <typeid id="ref-34">System.ComponentModel.ToolboxItemFilterAttributeSystem.Web.UI</typeid> </a2:toolboxitemfilterattribute> <a2:toolboxitemfilterattribute id="ref-16" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.ComponentModel/System%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db77a5c561934e089"> <filtertype>Allow</filtertype> <filterstring href="#ref-11"> </filterstring> <typeid xsi:null="1"> </typeid> </a2:toolboxitemfilterattribute> <soap-enc:array id="ref-17" xsi:type="SOAP-ENC:base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnMAABJzAYwiuQcAAAGZSURBVDhPzZM7T8JgFIb5f066Obi4mBgmBlgcFC+LGhdNMIEoTQDxAlFTJCYaI0RJCBdRExeiDsWgIHcUCr6er6U3y2JcbNJ8Xc7T9zxva7H8iytwmgV/8YC96B24cAauYBJrXAJL7is4N2OYsO2DBR2xecBuU+h47hnK9UUPHRFofADvDaDeBqYWecOQCRLLPknzPZpud2ioBZRqQKEMvFUB62xEBSgpDJDLzADQB1qfQLUpDxZKQLECTM9pAGUVwxqx7KOcgAEoAQNwkRRcoQRW/TE4PWdwrEdhXT7C5HwI4zO7GLX7tbXUFXQJOD6leukUOXSZF/JRJnid/Iw5dIDrW00im+r2AC8lECkSMVEtHEsyFS/sHLX7tAQB/gaHJ/cIhHPY2kljYzsprZAXyhBe8igKcdSY2IGXVzoNCYaJ4fg0RLGHPmumCxlAbyYmGMDgYFg1zIEo0gqDapUEAjUjJdBLHJbAG0mrEhUvTaq4QhLZaVrh56cq1XhANfqoRve5XOMK1bjAagwSQCfxTz8kLOZ/4zfAb04f4U/LDXEBAAAAAElFTkSuQmCC</soap-enc:array> <soap-enc:array id="ref-19" xsi:type="SOAP-ENC:base64">ACQAAASAAACUAAAABgIAAAAkAABSU0ExAAQAAAEAAQAXm4reXjgurH7gu11FpUrDAvCtQX753+Q+XzqpDoSdWkSgGcXFyllb7rpYwAXp+AiJI9E1lpg8q7t4H36GsM8+fpj5ol0+l84bYWy+aa5vQ5XlxdyeDxsA2NZodsFhausBo5M5O+zGfiT5GpKwbgnpzwIGXVoIKvCposyUWy0I4Q==</soap-enc:array> <a5:version id="ref-21" xmlns:a5="http://schemas.microsoft.com/clr/ns/System"> <_major>8</_major> <_minor>0</_minor> <_build>40</_build> <_revision>2</_revision> </a5:version> <a4:assemblyname id="ref-22" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection"> <_name id="ref-35">EO.Web</_name> <_publickey href="#ref-36"> </_publickey> <_publickeytoken xsi:null="1"> </_publickeytoken> <_cultureinfo>127</_cultureinfo> <_codebase id="ref-37">file:///H:/AgmaBackup/Agma/EOWeb/Net20/EO.Web.dll</_codebase> <_version href="#ref-38"> </_version> <_hashalgorithm xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyHashAlgorithm">SHA1</_hashalgorithm> <_hashalgorithmforcontrol xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyHashAlgorithm">None</_hashalgorithmforcontrol> <_strongnamekeypair xsi:null="1"> </_strongnamekeypair> <_versioncompatibility xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyVersionCompatibility">SameMachine</_versioncompatibility> <_flags xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection" xsi:type="a4:AssemblyNameFlags">17</_flags> <_hashforcontrol xsi:null="1"> </_hashforcontrol> </a4:assemblyname> <a4:assemblyname id="ref-23" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection"> <_name id="ref-39">System.Web</_name> <_publickey xsi:null="1"> </_publickey> <_publickeytoken href="#ref-40"> </_publickeytoken> <_cultureinfo>127</_cultureinfo> <_codebase xsi:null="1" xsi:type="xsd:anyType"> </_codebase> <_version href="#ref-41"> </_version> <_hashalgorithm xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyHashAlgorithm">None</_hashalgorithm> <_hashalgorithmforcontrol xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyHashAlgorithm">None</_hashalgorithmforcontrol> <_strongnamekeypair xsi:null="1"> </_strongnamekeypair> <_versioncompatibility xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyVersionCompatibility">SameMachine</_versioncompatibility> <_flags xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection" xsi:type="a4:AssemblyNameFlags">None</_flags> <_hashforcontrol xsi:null="1"> </_hashforcontrol> </a4:assemblyname> <a4:assemblyname id="ref-24" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection"> <_name id="ref-42">mscorlib</_name> <_publickey xsi:null="1"> </_publickey> <_publickeytoken href="#ref-43"> </_publickeytoken> <_cultureinfo>127</_cultureinfo> <_codebase xsi:null="1" xsi:type="xsd:anyType"> </_codebase> <_version href="#ref-44"> </_version> <_hashalgorithm xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyHashAlgorithm">None</_hashalgorithm> <_hashalgorithmforcontrol xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyHashAlgorithm">None</_hashalgorithmforcontrol> <_strongnamekeypair xsi:null="1"> </_strongnamekeypair> <_versioncompatibility xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies" xsi:type="a6:AssemblyVersionCompatibility">SameMachine</_versioncompatibility> <_flags xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection" xsi:type="a4:AssemblyNameFlags">None</_flags> <_hashforcontrol xsi:null="1"> </_hashforcontrol> </a4:assemblyname> <soap-enc:array id="ref-36" xsi:type="SOAP-ENC:base64">ACQAAASAAACUAAAABgIAAAAkAABSU0ExAAQAAAEAAQAXm4reXjgurH7gu11FpUrDAvCtQX753+Q+XzqpDoSdWkSgGcXFyllb7rpYwAXp+AiJI9E1lpg8q7t4H36GsM8+fpj5ol0+l84bYWy+aa5vQ5XlxdyeDxsA2NZodsFhausBo5M5O+zGfiT5GpKwbgnpzwIGXVoIKvCposyUWy0I4Q==</soap-enc:array> <a5:version id="ref-38" xmlns:a5="http://schemas.microsoft.com/clr/ns/System"> <_major>8</_major> <_minor>0</_minor> <_build>40</_build> <_revision>2</_revision> </a5:version> <soap-enc:array id="ref-40" xsi:type="SOAP-ENC:base64">sD9ffxHVCjo=</soap-enc:array> <a5:version id="ref-41" xmlns:a5="http://schemas.microsoft.com/clr/ns/System"> <_major>2</_major> <_minor>0</_minor> <_build>0</_build> <_revision>0</_revision> </a5:version> <soap-enc:array id="ref-43" xsi:type="SOAP-ENC:base64">t3pcVhk04Ik=</soap-enc:array> <a5:version id="ref-44" xmlns:a5="http://schemas.microsoft.com/clr/ns/System"> <_major>2</_major> <_minor>0</_minor> <_build>0</_build> <_revision>0</_revision> </a5:version> </soap-env:body> </soap-env:envelope>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Your Visual Studio's toolbox is not working correctly. You will want to delete the "EO.Web" tab from your toolbox and then manually add our controls back to your toolbox. See here for more details: http://doc.essentialobjects.com/library/1/installationanddeployment/install.aspxYou can also copy the code directly from the sample source code file. The full source code for the sample project is installed on your local machine (the default location is "C:\Program Files\Essential Objects\EO.Web Controls 2011\Samples" on 32 bit windows). The online version is just for you to see the result. Thanks!
|
|