I am trying to print out HTML to an area of my site based on the selection of a drop down box on the page.
I know I can add Response.Write("My HTML"); in the aspx file where I want the output to be but this needs to be done from the DropDown_SelectedIndexChanged event. This event should query some data in a database then output some information to the page for the user but obviously when using Response.Write in this event handler it will just print to the top of the page.
How can I output HTML code to an area of the webpage from this event, can the function be somehow moved to the ASPX code so it get outputted in the correct place.
Thanks for your help