I have a hyperlink on a page that sends certain variables e.g. Default.aspx?var1=x&var2=y
I then create an ImageButton dynamically thereafter. My ImageButton has its own event. It seems that the ImageButton inherits the values sent from the hyperlink. If I right click on the image button and view is properties via the browser it points to the following as well Default.aspx?var1=x&var2=y , I then tried to turn view state off which didnt work.
I also tried specifying the PostBackUrl so that the url variables are not sent. But then its event doesnt trigger.
Is there any way to not h