An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Use the following string format.
pnlContent.Controls.Add(new LiteralControl(@"<button onclick=""alert('Hello World!');return false;"">Test Button Code Behind</button>"));
It is usually a bad idea to create dynamic controls in Web Forms due to how state management works in the framework. I would simply add the button HTML to the ListView and let the ListView handle the rendering.