开发者

How to Update a div tag in Master Page using a button click in Content page? or Wise versa

开发者 https://www.devze.com 2022-12-21 15:56 出处:网络
How to Update a 开发者_如何学编程div tag in Master Page using a button click in Content page? or Wise versaDo you get the data to be updated in a postback only? You can either do it using javascript i

How to Update a 开发者_如何学编程div tag in Master Page using a button click in Content page? or Wise versa


Do you get the data to be updated in a postback only? You can either do it using javascript if you get the data to be updated in the client side, or bring it to the client side on a postback and use some javascript method to update. If you get the data as some attribute of a server side class, ou can use server tags (as in classic ASP) in the master page like <div id="updatableDiv"><%=myClass.PropertWithUpdatedValue%></div> in the master page.

Update: refer How to change master page value from child page

0

精彩评论

暂无评论...
验证码 换一张
取 消