如何在asp中的列表项中添加字符串值 [英] how to add string value in list items in asp

查看:57
本文介绍了如何在asp中的列表项中添加字符串值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp网站上使用以下我想在item1,item2等处添加字符串值

我该怎么做呢。

这个项目在aspx页面在div class div class =smartmarquee example

和ul class =container

li Item 1 li

喜欢这个.. < br $>

I am using following in asp web site I want to add string value at item1,item2 etc
how can i do this.
this items are in aspx page in div class div class="smartmarquee example"
and ul class="container"
li Item 1 li
like this..





  • 第1项
  • 第2项
  • 第3项
  • 第4项
  • 第5项
  • 第6项
  • 第7项
  • 第8项
  • Response.string




  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6
  • Item 7
  • Item 8
  • Response.string

推荐答案

通过添加runat =server进行列表服务器端控制,然后在渲染之前添加项目服务器端(即在触发添加项目的情况下)



如果这有帮助,请花时间接受解决方案。谢谢。
Make the list server side control by adding runat="server" and then add the item server-side before rendering (i.e. in the event that triggers adding the item)

If this helps please take time to accept the solution. Thank you.


这篇关于如何在asp中的列表项中添加字符串值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆