Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 17th, 2006, 12:38 AM
Authorized User
Join Date: Mar 2004
Location: Mesa, AZ, USA.
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Contents of a Web Control

Hi guys,

I was just wondering if anyone knew how to create a web user control when I can place my own contents. I guess that's kinda a bad description, but this is basically what I want to do.

<uc1:mycontrol id="mycontrol1" ...>
See, my control just creates a nifty border (3x3 cell table), and the contents go in the middle cell. It would be nice to be able to add my dynamic content the way described above.

I have tried, without success, creating a property for content, but it wasnt liked.
<uc1:mycontrol id="mycontrol" content="
" />
I dont really want to have to build a string and just display the string.

Thanks in advance, if people could understand what I'm trying to do ;p

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Control rwalker ASP.NET 2.0 Basics 3 April 25th, 2007 03:47 PM
How to protect the contents of web page Aaronmeng ASP.NET 2.0 Basics 0 October 24th, 2006 08:55 PM
set Focus to web control in Web form vivekshah C# 1 June 17th, 2006 03:25 AM
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM
What is web control? agbeltekin ASP.NET 1.x and 2.0 Application Design 3 September 19th, 2003 11:53 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.