Vipin RT
Vipin RT

Reputation: 298

Insert ASP.Net Controls into HTML template

I have an html template, that describe the position of each control and templates are getting from database. I have added certain custom tags like [txt],[chk] into html template. I want to replace this tags with asp.net controls like textbox,checkbox etc... at the time of page rendering. so i can write c# code on these controls.I want to implement these things on code behind.

Upvotes: 0

Views: 270

Answers (1)

Martin Kearn
Martin Kearn

Reputation: 2317

If you are using ASP.net web forms, simply copy your HTML template into an ASPX page and replace your placeholders with the relevant controls you want to use.

If you are using ASP.Net MVC, then you can use Razor to do this. http://weblogs.asp.net/scottgu/introducing-razor

Upvotes: 0

Related Questions