string msg = string.Format(@"
                document.getElementById('{0}').style.backgroundImage = 'url(images/huangdi.jpg)';
                document.getElementById('{1}').style.backgroundImage = 'url(images/niubei.jpg)';", pageName1, pageName2);
            ScriptManager.RegisterStartupScript(upName, upName.GetType(), Guid.NewGuid().ToString(), msg, true);

相关文章: