Home ASP.net C# - Custom html tag and replace with dynamic data
Reply: 0

ASP.net C# - Custom html tag and replace with dynamic data

Reza
1#
Reza Published in 2017-09-14 04:16:11Z

In my website template, I want to use some custom Html tags that when site is loading, converts to some other tags!

For example I want the blow code:

<div class='latestnews'>
    <get-news data-count="10">
         <a href="<-newsLink->"> <-newsTitle-> </a>
    </get-news>
</div>

to convert like this:

<div class='latestnews'>
    <div id="someid">
         <a href="http://somesite.com/news/12">Some news title</a>
         <a href="http://somesite.com/news/13">Some other news title</a>
         .......................(upto 10)
    </div>
</div>

my plan is to let final website admin, changes website template, using some custom tags I tell them.

how can I convert these custom tags to final tags?
I'm using asp.net MVC C#. (webform code is also good with me)

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.496485 second(s) , Gzip On .

© 2016 Powered by cudou.com design MATCHINFO