Converting asp to aspx encoding problem

S

Satya

Hi I am new using a group and using asp net and vb net.
I have the following problem.

To resume, in my aspx.vb page I have:

strListeGroup.Append("<input type='button' class='buttonPurchasing'
name='btnModify' value='Modify'
onclick=""document.location.href='USER_ADMIN_GROUP_MODIFY.ASPX?MODE=MODIFY&GROUP="
& strGroup & "&COMPANY=" & strCompany & "';"" tabindex='-1'>")

my problem is when strGroup = "Sophie's" then the aspx page doesn't
work.
In my aspx I got :
<input type='button' class='buttonPurchasing' name='btnModify'
value='Modify'
onclick="document.location.href='USER_ADMIN_GROUP_MODIFY.ASPX?MODE=MODIFY&GROUP=Sophie's&COMPANY=MyCompany'";
tabindex='-1'>
the problem seems to be in
onclick="document.location.href='USER_ADMIN_GROUP_MODIFY.ASPX?MODE=MODIFY&GROUP=Sophie's&COMPANY=MyCompany'
because of the " ' "

In my aspx page I have:
<%=strListeGroup.toString()%>

I try a lot of things but anythings work :eek:(
my encoding is utf-8

Please HELP me ! thank you !
 

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,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top