我在留言板上有一个很大的块或文本,其中包含以#开头的字符串。我可以使用jquery将它们替换为包含字符串的链接吗?
例如,更改:
<div id="mydiv">This is my #block of text with #multiple hash strings</div>
至:
<div id="mydiv">This is my <a href="newpage.asp?block">#block</a> of text with <a href="newpage
我有一个运行在共享主机网站上的应用程序-它运行的是php MVC,但是应用程序中的一个文件夹,/ ASP.NET /,只是一个独立的留言板应用程序(Invision Power Board),在php中运行。
我在尝试将自己应用于asp.net应用程序时,不断遇到来自asp.net应用程序的web.config问题。我可以告诉它忽略带有php应用程序的文件夹吗?
我在一个留言板上工作,我想要有以下回复/引用系统:
@5432 //post number
This is a reply to a post
@5647
This is a reply to another post
这是纯文本,在服务器端我想替换它,这样它就结束了:
<a href="#5432>@5432</a>
...
我认为正则表达式应该是^@\d+,但我不知道如何实现它,特别是在多个并发的情况下。
这个ASP.NET + C#,顺便说一下。
我有一个留言板应用程序,它需要收集和显示消息,而不需要任何用户的输入或操作。我目前正在使用html元刷新标记刷新页面。我知道这不是一个很好的解决办法。这是我想要经常运行的相关部分,而不刷新页面。
{% if grams_list %} #if there exists any messages for the user
{% for g in grams_list %} #for each message
<h2 class="gram-display">{{ g.message }}</h2> #display the message
我正在使用ASP.NET创建一个web应用程序表单。以前,我使用复选框来接受一个用户输入,有3个选项:添加、编辑、删除。
使用一些服务器端和客户端代码在3种选择之间切换,并存储用户的最终答案。
然后我看到了“收音机按钮列表”。这是我的单子。
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>Create a new enrollment.</asp:ListItem>