Changing Background image at run time
Web Development
2
Posts
2
Posters
0
Views
1
Watching
-
Hi! i want to change background of my web form at run time using C# code in Asp.net web application. By using HTML tags i can do it like using "document.body.background" but i want to know how to use it in C#. Thanx
Hi, I worked with similar tech lately so I might be able to help you. Write the javascript needed to change the background image, then you can call it in the server side code, say on a button click { Response.Write(""); //Open Scrip Tags Response.Write("changeBackImage(\""+myImgUrl+"\");"); //Call JavaScript Method Response.Write(""); //Close Script Tag } You might need to play around in it Hope this helps Oliekrokenosterpikkelikkeastrysvoel