Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I need to dynamically load a number of listbox controls on a webform. Is there a way that I can specifiy a position for the newly loaded controls?

 

 

Thanks in advance!

  • Moderators
Posted

There may be a better way of doing this, but here's one way....

PlaceHolder1.Controls.Add(new LiteralControl("<center>"));
label1.Width = System.Web.UI.WebControls.Unit.Parse("100%");
Label1.Height = System.Web.UI.WebControls.Unit.Parse("50pt");

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...