TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Joel Karafin
NA
2
0
assigning the position of a control in a webform
Oct 14 2005 4:28 AM
I want to dynamically control the position of my webform controls at runtime. ".Top" isn't a property of these (webform) controls. "Style" seems to be a read-only property. I'm willing to dynamically create the control at runtime, but I can't find any methods/parameters that let me control the position. And when I try dynamically creating a textbox, I get:
Control 'ControlID_1' of type 'TextBox' must be placed inside a form tag with runat=server.
Here's the code I used:
TextBox tx=
new
TextBox();
tx.ID = "ControlID_1";
Page.Controls.Add(tx);
Can anyone help with a complete example?
Thanx!
Reply
Answers (
0
)
Parameter passing in public static void main method ???
Configurations of the .Net applications