Forum  Commercial Foru...  Commercial Foru...  Update Client From Server
Previous Previous
 
Next Next
New Post 3/17/2010 1:43 PM
Unresolved
  derekmhart@yahoo.com
685 posts
1st Level Poster


Update Client From Server 

I have an AspPageBox with an aspx file loaded into it via the path property. I need to update the client javascript with a simple variable. I am using an HTML hidden input box to do this. So in my asp.net code I have this to set a session variable.

VWGContext.Current("StopUploading") = "True"

In the PreRender event, I make sure the HTML field is properly set.
StopUploadingHiddenControl.Value = VWGContext.Current("StopUploading")

I know I can properly read this value in the client side javascript, because it works if I simply set a value on the OnLoad of the aspx control. However, I want to change this value dynamically. From everything I have read on doing this in traditional asp.net development, this should work.

Is there something additional the VWG needs to  have happen to force an update when a session variable, and/or an HTML control is used?

 
New Post 3/17/2010 3:56 PM
  palli
11189 posts
1st Level Poster




Re: Update Client From Server 

Hi Derek,

It is a little confusing what is where in this scenario. You have two seperate JavaScripts here, one for the VWG application and one for the AspPageBox page.

If I understand you correctly, you have an Html box in the VWG application, and you want from the client side JavaScript of the aspx page do an update of the client side value of the HtmlBox of the VWG application.

Is this what you are asking? If not, please explain in more detail, and preferably build a small sample application to demonstrate what you are trying to do, maybe with a simple VWG form with an AspPageBox including a simple aspx page where you show us what you want to do.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 3/17/2010 4:02 PM
  derekmhart@yahoo.com
685 posts
1st Level Poster


Re: Update Client From Server 

I have an asppagebox. I do not have an htmlbox. So I am writing code in the aspx.vb code behind page, and hoping I can read a variable, or a hidden text box control, directly in the javascript. I don't know if the aspx page inside the VWG asppagebox behaves EXACTLY  like if I was in traditional asp.net. When I set the session variable in the aspx.vb page, I want to force the client to get that to read it. Maybe I have to get into Ajax to do this?

 
New Post 3/18/2010 7:55 AM
  ori.cohen
4383 posts
1st Level Poster




Re: Update Client From Server 

Hello Derek,

First of all, basically the AspPageBox is a somewhat extended version of the HtmlBox control, so they are easily confused.

When an ASP.NET page is run through the AspPageBox Visual WebGui control, it behaves exactly as it would if it would run inside another ASP.NET application, because Visual WebGui basically runs over ASP.NET.

I cannot see why you would not be able to read values of ASP.NET elements that are marked as runat="server", when working with in ASP.NET that run inside an AspPageBox Visual WebGui control.
If however you encountered any problem with this scenario, please report them.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Update Client From Server
Assessment Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS