473,403 Members | 2,071 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,403 software developers and data experts.

Positioning of the control at runtime....

Question is related to ASP.Net and controlling the position of these
controls.
I am using html table to placce my web controls. I am displaying same
datagrid and calendar controls at clicks of different buttons.
Since I am using same control for various clicks, it is hard for me to place
the controls at runtime for my required position.
Any suggestions of doing this will be a great help.
Johnson Smith
Nov 18 '05 #1
2 1770
Hi Johnson,

I'm afraid I am having trouble understanding your question. You stated first
that you are using an HTML table for layout and positioning of controls.
Then you said that it is hard for you to "place the controls at runtime for
my required position." Can you clarify? It seems like the table is supposed
to handle your positioning. Are you talking about Controls that you add
dynamically to the page? If so, and I may be off-base here regarding the
issue, but I think what you need is a Server Control in the page that you
can add Controls to. You can make any cell in your layout table into an
HtmlTableCell Control by adding a "runat=server" attribute to it, and adding
a declaration of the class for that Control in your CodeBehind. Then you can
programmatically add Controls to it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Johnson Smith" <JS******@yahoo.com> wrote in message
news:uK**************@tk2msftngp13.phx.gbl...
Question is related to ASP.Net and controlling the position of these
controls.
I am using html table to placce my web controls. I am displaying same
datagrid and calendar controls at clicks of different buttons.
Since I am using same control for various clicks, it is hard for me to place the controls at runtime for my required position.
Any suggestions of doing this will be a great help.
Johnson Smith

Nov 18 '05 #2
Kevin,
If you're looking for absolute positioning, you may need to add to the
style attributes the properties like Z-index, left, top etc. the
property to modify is .Style Let me know if that helps

Kevin Spencer wrote:
Hi Johnson,

I'm afraid I am having trouble understanding your question. You stated first
that you are using an HTML table for layout and positioning of controls.
Then you said that it is hard for you to "place the controls at runtime for
my required position." Can you clarify? It seems like the table is supposed
to handle your positioning. Are you talking about Controls that you add
dynamically to the page? If so, and I may be off-base here regarding the
issue, but I think what you need is a Server Control in the page that you
can add Controls to. You can make any cell in your layout table into an
HtmlTableCell Control by adding a "runat=server" attribute to it, and adding
a declaration of the class for that Control in your CodeBehind. Then you can
programmatically add Controls to it.


--
Regards,
Dilip Krishnan
dilipkrish at msn. com
Nov 18 '05 #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. ...
11
by: NS | last post by:
I am relativly new to css positioning and have a question regarding the display of a DHTML pop-up Here is the basic HTML I am using: <html> <head> <script language="JavaScript"> <!--
1
by: Bob Rosen | last post by:
I would like to place some button controls on a web page underneath a DataGrid control. Since the height of the DataGrid depends on the number of rows displayed, which is determined by user...
2
by: hzgt9b | last post by:
Using Visual studio 2003 and VB.NET, I want to programatically position a control (windows media player) on my form. For example, I want to position the control in 1 of 9 locations: topLeft,...
1
by: Harry | last post by:
Hi I am adding a textbox control at runtime that allows a user to enter a date. I also want to add a calendar icon beside the textbox so that the user can click on the calendar icon and have it...
1
by: Amilcar | last post by:
Hi there, I'm trying to change the position on a webform for a control (a Table control), at run time. The code I wrote for doimg this is: .... Table.Style.Add("LEFT", "120");...
1
by: asad | last post by:
Hello, I have some problem in Layout of my page when i put ASP.NET control on it, actually in this control i have created the links of my website and, i want to include this control in all of my...
2
by: Glenn T. Kitchen | last post by:
Hello Group, How do you position a web control you create at runtime? I thought: ===================================== Dim Label1 as Label = New Label Me.Controls.Add(Label1)...
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...
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?
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.