HighTechTalks DotNet Forums  

Is any way to palce a control(button/label) at a location on a panelin a webPage ASP.net 2.0in runtime??

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss Is any way to palce a control(button/label) at a location on a panelin a webPage ASP.net 2.0in runtime?? in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
chandan
 
Posts: n/a

Default Is any way to palce a control(button/label) at a location on a panelin a webPage ASP.net 2.0in runtime?? - 12-06-2007 , 12:08 AM






Hi,
Is any way to palce a control(button/label) at a location on a panel
in a webPage in runtime??



I am trying to place a control at mouse click position on the a panel
in a
page.also I am not getting the mouse down position on the panel ,I am
working on that.Actually I am windows Programmer and all those things
are done in windows very smoothly.


Let me know if any solution!! send me some link for sample for this
problem


Cheers,
Chandan Kumar


Reply With Quote
  #2  
Old   
John Padilla
 
Posts: n/a

Default RE: Is any way to palce a control(button/label) at a location on a pan - 12-15-2007 , 02:31 PM






There sure is.

you need to decide when you want to add something to the panel (an event)

insid the event you do this:

say your panel's ID = myPanel

string[] count = new string[2];
count[0] = "btOne";
count[1] = "btTwo";

myPanel.Controls.Add((new TextBox()).ID = count[0]);
myPanel.Controls.Add((new TextBox()).ID = count[1])

You can add any type of control at run time this way that you can do at
designtime.

Hope this helps!
"chandan" wrote:

Quote:
Hi,
Is any way to palce a control(button/label) at a location on a panel
in a webPage in runtime??



I am trying to place a control at mouse click position on the a panel
in a
page.also I am not getting the mouse down position on the panel ,I am
working on that.Actually I am windows Programmer and all those things
are done in windows very smoothly.


Let me know if any solution!! send me some link for sample for this
problem


Cheers,
Chandan Kumar



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.