.net - Error when two server controls have same ID's -


i not programmer, dont have access code behind.

i style pages , whatnot.

problem: trying hide/show elements of page based on language selected.

some of these elements server controls , couple of them have specific id's , graphics associated.

i need change graphics language selected.

i have tried this:

   <%if request.querystring("lang")="es" then%> <div><asp:imagebutton id='go' imageurl='go-spanish.png'></asp:imagebutton></div> <% else %> <div><asp:imagebutton id='go' imageurl='go-english.png'></asp:imagebutton></div> <% end if %> 

no dice.

i tried using response.write write imagebuttons dynamically, does, arent visible in browser.

i tried changing image path in control dynamically , apparently isnt allowed.

could please give me idea of how work around this?

have 1 imagebutton , in page_load event set it's imageurl property based on selected language. cause issues if page_load event declared in code behind page though.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -