View Single Post
  #2 (permalink)  
Old 08-21-2008, 2:43 PM
JohnH's Avatar
JohnH JohnH is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,325
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

ascx is the extension for user controls, Add a "Web User Control" to your project, then use the visual designer to design it like any other Asp.net page. Add code-behind when you have the UI ready. That means most of your code in RenderContents is redundant.
__________________
Reply With Quote