views:

101

answers:

3

I'm new to VB .NET, and if possible, I'd like something like Rails partials - bits of HTML template that can be referenced in a page's script, possibly within a loop. I know there might not be anything like that.

+4  A: 

User Controls

dommer
A: 

You can read html into a string, and spit it out with a placeholder / literal control. the function is like so:

Dim tmp as string = GetHtmlFragement()
Placeholder1.controls.add(New LiteralControl(tmp))
Rick Ratayczak
A: 

Sounds like a job for jquery.

Jim Evans
I thought that when I was cooking dinner. "Hmm, this chicken is not quite done. Sounds like a job for jquery." That's not a generic answer for anything.
Rick Ratayczak