473,385 Members | 1,647 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,385 software developers and data experts.

Positioning a dynamic user control?

Hello all,

i think i have a simple problem however im unsure how to go about solving
it. Any pointers welcome.

I am loading a usercontrol dynamically when a page loads depending on some
input parameters. Now, I understand that I can use the Controls.Add()
members to add the control to a page, but exactly how would I go about
placing this control exactly where I want it on the page?

I.e.

<td{my control here} </td>

What is the process to make the control appear within the td tags?

Thanks everyone.
Taz

Sep 27 '06 #1
2 1141
Look at PlaceHolder class.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Tarun Mistry" <no****@nospam.comwrote in message
news:ux**************@TK2MSFTNGP05.phx.gbl...
Hello all,

i think i have a simple problem however im unsure how to go about solving
it. Any pointers welcome.

I am loading a usercontrol dynamically when a page loads depending on some
input parameters. Now, I understand that I can use the Controls.Add()
members to add the control to a page, but exactly how would I go about
placing this control exactly where I want it on the page?

I.e.

<td{my control here} </td>

What is the process to make the control appear within the td tags?

Thanks everyone.
Taz

Sep 27 '06 #2
Thanks, exactly what I needed.

Taz

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:eo*************@TK2MSFTNGP06.phx.gbl...
Look at PlaceHolder class.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Tarun Mistry" <no****@nospam.comwrote in message
news:ux**************@TK2MSFTNGP05.phx.gbl...
>Hello all,

i think i have a simple problem however im unsure how to go about solving
it. Any pointers welcome.

I am loading a usercontrol dynamically when a page loads depending on
some input parameters. Now, I understand that I can use the
Controls.Add() members to add the control to a page, but exactly how
would I go about placing this control exactly where I want it on the
page?

I.e.

<td{my control here} </td>

What is the process to make the control appear within the td tags?

Thanks everyone.
Taz


Sep 27 '06 #3

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

Similar topics

9
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
2
by: theComputer7 | last post by:
I cut down the code to make this half way understandable... I have read Data Grid girls caution about over use of dynamic controls. I truly believe what I am doing requires dynamically inserted...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
1
by: Steve Booth | last post by:
I have a web form containing a button that when selected adds a user control to a place holder. The user control contains a button. The first time the user control is added the contained button...
2
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web...
9
by: Tarscher | last post by:
hi all, I have this seemingly simple problem. I have lost a lot of time on it though. When a user selects a value from a dropdownlist (static control) a dynamic control is generated. I have...
0
by: Eniac | last post by:
Hi, I've been working on a custom user control that needs to be modified and the validation is causing me headaches. The control used to generate a table of 4 rows x 7 columns to display all...
3
balabaster
by: balabaster | last post by:
I've got a user control that builds a table of dynamic data based on a :LINQ class holding the data. The data is loaded using the LoadData(DataInstance) method. The table it builds contains a...
2
Frinavale
by: Frinavale | last post by:
I've created a ASP.NET control that displays a "book" of schedules. It dynamically displays scheduling times and allows the user to page through the schedules. It also lets the user edit the...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.