Passing parameters from a web page to an activex

R

Roni.Brown

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top