when asp.net output a page ,I want to add some same parameters for all links() in this page
How I can do it ?
somesite.com/page.aspx => somesite.com/page.aspx?same=value
somesite.com/?anyp=hevalue => somesite.com/?anyp=hevalue&same=value
auto add same=value
If they are all server controls such as
<asp:LinkButton>then you can walk the Page.Controls collection and modify them. You would probably have much better luck doing this on the client side, however. jQuery is great for such things.