We help IT Professionals succeed at work.
Get Started

XBAP hosted in HTML can read string from HTML TextBox?

1,202 Views
Last Modified: 2013-12-14
I have a ASP.Net project, and I have added an iFrame to host an XBAP. Since several users may be hitting the application at the same time, the HTML carries with it a unique instance ID... it is usually just a unique number in a Label.

I would like the XBAP to have access to this ID because it will itself be making calls back to the server for some loose XAML, and it will need to reference the correct session folder for it's data (e.g. loose XAML graphics, unique to the user's session). Ideally, I would like the XBAP to just pull the Label.Caption from the HTML on the Client machine, and use it to construct the SiteOfOrigin reference string when it pulls down the loose XAML.

If that is not possible, is there some other way I can pass down the unique session ID string along with the XBAP stuff? (It needs to be XBAP and not loose XAML, since I need code-behind).

Someone mentioned the possibility of the HTML setting a cookie on the Client IE, and then having the XBAP reference that... can an XBAP reference IE cookies?
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE