Forum  General Visual ...  How do I...?  Communicate with hosting VWG application from a WebForm within an AspPageBox
Previous Previous
 
Next Next
New Post 7/24/2012 3:07 PM
  mojojojo
109 posts
5th Level Poster


Communicate with hosting VWG application from a WebForm within an AspPageBox 

 Hello,

I am following this example

The following line in the web form gives file not found error:

<script src="Resources.Gizmox.WebGUI.Forms.Skins.CommonSkin.Interfaces.js.wgx" type="text/javascript"></script>

Where is the location for this Javascript file? It seems that I cannot find it in my computer.

I also got PageContext not defined error on:

            var objEvent = VWG.Events.CreateEvent("<%= PageContext.ID %>", "message");

Are these two errors related?

 

 
New Post 7/25/2012 1:39 AM
  JamesC
850 posts
www.redcastle.co.uk
1st Level Poster




Re: Communicate with hosting VWG application from a WebForm within an AspPageBox 
Modified By JamesC  on 7/25/2012 5:40:41 AM)

Hi Mojojojo,

what version of VWG are you using?

if you are using > 6.3 then you need to read further down the article where it explains the changes that you would need to the script src path and the change required for the PageContext.ID

cheers james

 
New Post 7/25/2012 8:59 AM
  mojojojo
109 posts
5th Level Poster


Re: Communicate with hosting VWG application from a WebForm within an AspPageBox 

Thanks James.

I am working with WinWeb v6.4c. So "PageContext.ID" should be correct.

But where is the mentioned JavaScript file located?

 
New Post 7/25/2012 9:35 AM
  JamesC
850 posts
www.redcastle.co.uk
1st Level Poster




Re: Communicate with hosting VWG application from a WebForm within an AspPageBox 
Modified By JamesC  on 7/25/2012 12:41:22 PM)

Hi Mojojojo

I suspect then that you may have missed doing this part of the sample:

"When creating Aspx WebForms, the pages you create do by default inherit from System.Web.UI.Page. In order to have Visual WebGui specific attributes available within the WebForm, you need to change the inheritance so that your WebForm inherits from Gizmox.WebGUI.Forms.Hosts.AspPageBase."

you need to change the declaration of WebForm2 from this:

public partial class WebForm2 : System.Web.UI.Page

to this:

public partial class WebForm2 : Gizmox.WebGUI.Forms.Hosts.AspPageBase

cheers james

PS the file does not physically exist - it is an embedded  resource that is generated at IIS Runtime by the Gizmox dlls - which explains why you can't find it in Windows Explorer

 
New Post 7/25/2012 9:49 AM
  mojojojo
109 posts
5th Level Poster


Re: Communicate with hosting VWG application from a WebForm within an AspPageBox 

You are right James. Thanks for pointing out my oversight.

 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Communicate with hosting VWG application from a WebForm within an AspPageBox
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS