Monday, March 26, 2012

html encoding?

Hi,
I am trying to add a "src" attribute to an iframe by code as follows:
this.MyWin.Attribute.Add("src","page1.aspx?par1=1&par2=2");

But the output page always convert the '&" into &
How can I avoid this convertion?ThanksTry eitherHtmlEncode orHtmlDecode

No comments:

Post a Comment