Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Passing parameters from a web page to an activex

8 views
Skip to first unread message

Roni.Brown

unread,
Jan 24, 2008, 5:45:11 AM1/24/08
to
Hi Everybody!

I have a web page written in asp.net that includes an activex control.
In order to pass parameters to the activex I use the <param> tag.
It is being read in the activex with the IPrpertyBag Read function.
One of the values in the param tag includes apostrophe (')

When read in the activex it is being truncated


<OBJECT ID="MYACTIVEX" ......

<PARAM NAME="ClassName" VALUE="Ken's Stroies">


......
</OBJECT>


CActiveXContain::Load(IPropertyBag * pPropBag, IErrorLog * pErrorLog)
{

........

::VariantClear(&varValue);

pPropBag->Read(L"CourseName",&varValue,0);

........
}

varValue is equal to "Ken"

Do you have any advice how to make the variable read the whole value
(Ken's stories)?

Thanks for any advice

0 new messages