eng310
asked on
Setting Z-index (Z-order in vb6) and position of control in ASP.NET
dear guys,
i have used the asp.net to write my application, and i use the code-behind scenario.
i dunno how to set the textbox, image,.. and others contols in the "code-behind". i only can set the position in the front interface part (i use the grid layout).
this is bcos i want to do graphic drap-and-drop of some image control by clicking the button.
thanks you for whoever provide suggestion or opinion.
i have used the asp.net to write my application, and i use the code-behind scenario.
i dunno how to set the textbox, image,.. and others contols in the "code-behind". i only can set the position in the front interface part (i use the grid layout).
this is bcos i want to do graphic drap-and-drop of some image control by clicking the button.
thanks you for whoever provide suggestion or opinion.
ASKER
sorry,tq for u reply and comments. but i dun want to control the size.i want to change the position properties of the image control. but it is not avaible in "code-behind" of ASP.net. it is availabe only in windows form application
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by naveenkohli
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
TheLearnedOne
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by naveenkohli
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
TheLearnedOne
EE Cleanup Volunteer
** aspx file ***
<asp:TextBox ID="myTextBox" Runat="server"></asp:TextB
* in code behind file (C#) **
protected TextBox myTextBox;
private method ChangeTextBoxWidth()
{
myTextBox.Size.Width = 30;
}
this is just an example on how you can modify the apeearance.
-------------------
If you want to add control dynanmically... then best would be to drop a PlaceholderControl on the page. Put it where you want your controls to appear. And then code behind, create a new instance of your control and add it to Controls collection to PlaceHoldercontrol.
Naveen