Home > Uncategorized > Ampersand Issues in Code

Ampersand Issues in Code

This is something that’s ticked me off repeatedly in the last few months. When I try to put a URL in say… the OnClientClick property of a ImageButton, and the URL has more than one argument (blah.aspx?a=1&b=2), the & gets replaces with &. This takes place I guess in the Render or RenderControl method. This also happens in Page.ClientScript.GetPostBackEventReference, and I’m sure these aren’t the only spots. Annoying!!! My only fix so far is just in the OnClickClick, call a javascript function that does yoru redirect, and pass it arguments.

Categories: Uncategorized Tags:
  1. No comments yet.
  1. No trackbacks yet.