473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Using a PlaceHolder in a Web User Control

Hello,

I have two questions :

1 - I want to generate dynamically a personnalized table from a dataset. I want to create each of my rows and columns.
So, I use a HtmlTable and I build my Table with it. After, I add this control in a PlaceHolder to view my Table on my WebForm.
Ok, It works perfectly. I would want to know if it's the best method to build a table without using the classic WebTable component.

2 - Now, I want to use this method in a Web User Control. I place a PlaceHolder in my control and I build my table (like on my WebForms). But, I don't see my table !
I suppose that it because of the HtmlTable component in my Web User Control ?
How can I do it ?

Thanks in advance.

--------------------------------
From: Yannis CORRE

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5D7uSARTTUaHjmS/Lk+JJA==</Id>
Nov 18 '05 #1
1 1599
"Yannis CORRE via .NET 247" <an*******@dotnet247.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello,

I have two questions :

1 - I want to generate dynamically a personnalized table from a dataset. I want to create each of my rows and columns. So, I use a HtmlTable and I build my Table with it. After, I add this control in a PlaceHolder to view my Table on my WebForm. Ok, It works perfectly. I would want to know if it's the best method to build a table without using the classic WebTable component.

I don't know about "best", but if it doesn't cause any problems, I'd leave
it alone and continue with some other task.
2 - Now, I want to use this method in a Web User Control. I place a PlaceHolder in my control and I build my table (like on my WebForms). But, I
don't see my table ! I suppose that it because of the HtmlTable component in my Web User Control ? How can I do it ?


There's nothing inherent about user controls which should prevent this from
working.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi all, How do I iterate through a specific placeholder and remove or hide all controls contained within that placeholder? Regards John.
3
by: Yuriy | last post by:
Hello! I need populate PlaceHolder control dynamicaly and some of the control should be server controls and regular html controls. I try to do it but could not found methods to add javascript to...
2
by: Mike Speak | last post by:
I have a user control that I want to use to render 4 menu items (retrieved from db) on the top of each of my asp.net pages. The user control defines a table, with one TR and one TD. Within the...
1
by: Dan | last post by:
I have an asp.net page default.aspx with a user control and a placeholder control. <html> <body> <form id="myform" method="post" runat="server" /> <PageHeader:Header id="header1"...
1
by: Ralph Krausse | last post by:
I have a sample at http://68.162.218.198/PlaceHolderTest/WebForm1.aspx. I am trying to figure out how capture a button event when I dynamically place a web user control in a placeholder control. I...
9
by: Anders K. Jacobsen [DK] | last post by:
Hi I have this that adds some usercontrol (UCTodays.ascx) to a placeholder foreach(A a in B){ UCTodays ucline = (UCTodays )LoadControl("UCTodays.ascx");...
2
by: Kiran | last post by:
Hi, I use a lot of web user controls for web development. And I need all your views on this. (1)Does the functionality(Logic part) of a web user control should be included in the aspx page...
1
by: Joe | last post by:
Hello All, I have a user control which is composed of a label and a dropdownlist. In my code I add the user control to a placeholder on the webform. Now I want to be able to retrieve the...
0
by: benjamin.soulier | last post by:
Hello everyone, here is the problem I got : I have a Base Web User Control (like a user control containing a border, for design purpose). In this User Control, I put a PlaceHolder, and I put a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.