开发者

JQuery to add item to Asp.Net PlaceHolder control

开发者 https://www.devze.com 2022-12-20 22:17 出处:网络
It looks to me that the ASP.Net PlaceHolder control doesn\'t emit any HTML, and therefore can\'t be used by clientside javascript or JQuery to add items to the PlaceHolder.Does anyone know of a way ar

It looks to me that the ASP.Net PlaceHolder control doesn't emit any HTML, and therefore can't be used by clientside javascript or JQuery to add items to the PlaceHolder. Does anyone know of a way around this limitation, or of an ASP.Net control that can be used to dyn开发者_如何学Goamically add items by client side code?


That is very true. Anyway, JavaScript cannot add controls to the PlaceHolder, only insert elements in its place.
You can use a client side <div></div>, or a Panel - they will all have the effect you're looking for.

0

精彩评论

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

关注公众号