473,385 Members | 1,597 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,385 software developers and data experts.

How to move Control Using CodeBehind

Dear friens,

Does anybody knows how to move controls (images, textboxes, buttons, etc..) using CodeBehind?

Regards,

Nov 18 '05 #1
8 4393
By using the word "move", do you mean "changing the location/coordinates of
control" or "moving the control to another page" or whatever?

"Robson Machado" <Robson Ma*****@discussions.microsoft.com> ¦b¶l¥ó
news:F0**********************************@microsof t.com ¤¤¼¶¼g...
Dear friens,

Does anybody knows how to move controls (images, textboxes, buttons, etc..) using CodeBehind?
Regards,

Nov 18 '05 #2
Sorry ...

I need to change the location/coordinates of
control

"Lau Lei Cheong" wrote:
By using the word "move", do you mean "changing the location/coordinates of
control" or "moving the control to another page" or whatever?

"Robson Machado" <Robson Ma*****@discussions.microsoft.com> ¦b¶l¥ó
news:F0**********************************@microsof t.com ¤¤¼¶¼g...
Dear friens,

Does anybody knows how to move controls (images, textboxes, buttons,

etc..) using CodeBehind?

Regards,


Nov 18 '05 #3
Sorry ...

I need to change the location/coordinates of control in the same page

"Lau Lei Cheong" wrote:
By using the word "move", do you mean "changing the location/coordinates of
control" or "moving the control to another page" or whatever?

"Robson Machado" <Robson Ma*****@discussions.microsoft.com> ¦b¶l¥ó
news:F0**********************************@microsof t.com ¤¤¼¶¼g...
Dear friens,

Does anybody knows how to move controls (images, textboxes, buttons,

etc..) using CodeBehind?

Regards,


Nov 18 '05 #4
I’m sorry …

I need to change the location/coordinates of
Control on the same page.
"Lau Lei Cheong" wrote:
By using the word "move", do you mean "changing the location/coordinates of
control" or "moving the control to another page" or whatever?

"Robson Machado" <Robson Ma*****@discussions.microsoft.com> ¦b¶l¥ó
news:F0**********************************@microsof t.com ¤¤¼¶¼g...
Dear friens,

Does anybody knows how to move controls (images, textboxes, buttons,

etc..) using CodeBehind?

Regards,


Nov 18 '05 #5
Since the page layout of ASP.NET page is in fact built by HTML, you have to
control
the location by putting them in table and control the width, height and
which cell does will the control be place in. and maybe you'll need to
generate the controls dynamically.

"Robson Carvalho Machado" <Robson Carvalho
Ma*****@discussions.microsoft.com> ¦b¶l¥ó
news:C1**********************************@microsof t.com ¤¤¼¶¼g...
Sorry ...

I need to change the location/coordinates of
control

"Lau Lei Cheong" wrote:
By using the word "move", do you mean "changing the location/coordinates of control" or "moving the control to another page" or whatever?

"Robson Machado" <Robson Ma*****@discussions.microsoft.com> |b?l¢Do
news:F0**********************************@microsof t.com ?????g...
Dear friens,

Does anybody knows how to move controls (images, textboxes, buttons,

etc..) using CodeBehind?

Regards,


Nov 18 '05 #6
use attributes to move it
dropdownlist1.attributes.add("left","10px"); top 50px for example

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl...
Since the page layout of ASP.NET page is in fact built by HTML, you have
to
control
the location by putting them in table and control the width, height and
which cell does will the control be place in. and maybe you'll need to
generate the controls dynamically.

"Robson Carvalho Machado" <Robson Carvalho
Ma*****@discussions.microsoft.com> ¦b¶l¥ó
news:C1**********************************@microsof t.com ¤¤¼¶¼g...
Sorry ...

I need to change the location/coordinates of
control

"Lau Lei Cheong" wrote:
> By using the word "move", do you mean "changing the
> location/coordinates of > control" or "moving the control to another page" or whatever?
>
> "Robson Machado" <Robson Ma*****@discussions.microsoft.com> |b?l¢Do
> news:F0**********************************@microsof t.com ?????g...
> > Dear friens,
> >
> > Does anybody knows how to move controls (images, textboxes, buttons,
> etc..) using CodeBehind?
> >
> > Regards,
> >
>
>
>


Nov 18 '05 #7
Ha... I didn't realise the use of attribute can be used this way. Thanks for
the information. :)

"Alvin Bruney [MVP]" <vapor at steaming post office> ¦b¶l¥ó
news:OW*************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
use attributes to move it
dropdownlist1.attributes.add("left","10px"); top 50px for example

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl...
Since the page layout of ASP.NET page is in fact built by HTML, you have
to
control
the location by putting them in table and control the width, height and
which cell does will the control be place in. and maybe you'll need to
generate the controls dynamically.

"Robson Carvalho Machado" <Robson Carvalho
Ma*****@discussions.microsoft.com> ¦b¶l¥ó
news:C1**********************************@microsof t.com ¤¤¼¶¼g...
Sorry ...

I need to change the location/coordinates of
control

"Lau Lei Cheong" wrote:

> By using the word "move", do you mean "changing the
> location/coordinates

of
> control" or "moving the control to another page" or whatever?
>
> "Robson Machado" <Robson Ma*****@discussions.microsoft.com> |b?l¢Do
> news:F0**********************************@microsof t.com ?????g...
> > Dear friens,
> >
> > Does anybody knows how to move controls (images, textboxes, buttons, > etc..) using CodeBehind?
> >
> > Regards,
> >
>
>
>



Nov 18 '05 #8
DropDownList1.Style["Left"] = "500";
DropDownList1.Style["top"] = "500";

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Robson Carvalho Machado" <Ro*******************@discussions.microsoft.com >
wrote in message news:2E**********************************@microsof t.com...
Dear Alvin,

I've tried your suggestion but it does not work.
Have you any other tip that can help me to solution this problem?
"Alvin Bruney [MVP]" wrote:
use attributes to move it
dropdownlist1.attributes.add("left","10px"); top 50px for example

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl...
> Since the page layout of ASP.NET page is in fact built by HTML, you
> have
> to
> control
> the location by putting them in table and control the width, height and
> which cell does will the control be place in. and maybe you'll need to
> generate the controls dynamically.
>
> "Robson Carvalho Machado" <Robson Carvalho
> Ma*****@discussions.microsoft.com> ¦b¶l¥ó
> news:C1**********************************@microsof t.com ¤¤¼¶¼g...
>> Sorry ...
>>
>> I need to change the location/coordinates of
>> control
>>
>> "Lau Lei Cheong" wrote:
>>
>> > By using the word "move", do you mean "changing the
>> > location/coordinates
> of
>> > control" or "moving the control to another page" or whatever?
>> >
>> > "Robson Machado" <Robson Ma*****@discussions.microsoft.com> |b?l¢Do
>> > news:F0**********************************@microsof t.com ?????g...
>> > > Dear friens,
>> > >
>> > > Does anybody knows how to move controls (images, textboxes,
>> > > buttons,
>> > etc..) using CodeBehind?
>> > >
>> > > Regards,
>> > >
>> >
>> >
>> >
>
>


Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tom Rowton | last post by:
This one has me a bit confused and I'm not finding what I need in the MSDN or by searching these forums, so here goes... I have a rather large, complex code-in-page WebForm (don't ask) and a...
0
by: adam | last post by:
i have custom user control and i'm trying to pass values to custom user control......I need help it seems to me i cannot pass the value to user control from dropdownlist. I have property in a...
2
by: paul meaney | last post by:
All, myself and another developer have been staring blankly at a screen for the past 48 hours and are wondering just what stunningly obvious thing we are missing. We are trying to load up 2...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
2
by: Eric | last post by:
I'm trying to dynamically load a user control using on the .NET framework (not Visual Studio). The control was designed in Visual Studio and is named: Disable.ascx The first line is: <%@...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
2
by: john | last post by:
Maybe I haven't had that "a-ha" moment yet, but I think the new approach to web projects is a step in the wrong direction. My main beef is that control over the assembly generation process has...
4
by: archana | last post by:
Hi all, i am having one user control. what i want is to add javascript which will gets called on button click of user control. but user control is not working if i add javascript in user...
1
by: Jordan S. | last post by:
I'm just wondering if this would work. Please note that I'm not asking *how* to raise events. I'm clear on that. What I'm not clear on is the sequence in which events are raised by custom controls...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.