editing page html from form load

red_ghost

Member
Joined
Mar 13, 2007
Messages
13
Location
Green Bay WI
Programming Experience
3-5
in the form load I would like to edit the page's html. This is dependant on the person logged in. all I would like to do is replace the img tag's images with the ones for that user. How would I go about editing a pages html from the load subroutine?
 
Well, I found out another way. I made a panel with 100% height and 100% width and set the z-index to 1. From that I can change the background depending on the user's settings.
 
During the page's load event, you can change the properties of any control with it's runat tag set to server. This also works for HTML controls such as the HTML Image control (<img>) with runat="server". You will also need to set the control's id tag to a unique value. As an alternative, there is also the ASP.NET image control. You may also want to look into User Profiles.
 
Back
Top