473,385 Members | 1,912 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.

WebControls.Location property?

Jax
Can i change the location of a control in ASP.NET?
I'd like to have the ability to change an images' location
on the pressing of little arrows on the same page to
resize and move the image around.
Usually on an application level I would use the location
property but I can't seem to find this in ASP.NET the size
is available, but does anyone know how I can change the
location.

Thanks for any help passed my way.

jax
Nov 15 '05 #1
3 1342
You'll have to make the image's layout explicit (insdtead of normal HTML
flow - effectively chaning the HTML "position" attribute to "absolute"
instead of default or static) and use client-side script to move it (I
assume you don't want the page round-tripping to the server to do this).

-Rob Teixeira [MVP]

"Jax" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
Can i change the location of a control in ASP.NET?
I'd like to have the ability to change an images' location
on the pressing of little arrows on the same page to
resize and move the image around.
Usually on an application level I would use the location
property but I can't seem to find this in ASP.NET the size
is available, but does anyone know how I can change the
location.

Thanks for any help passed my way.

jax

Nov 15 '05 #2
Thats very helpful, thankyou very much Rob.
You make a very good point about client side script, it
would be ridiculous to post back to the server for every
single change that is made, it would appear that I will
have to learn some script (scripting in C# is undesirable
on the client side I assume as it would require the user
to have the .NET framework redist).
I am not very keen on the idea of using VBScript, would
Javascript be a good choice? Do you know of any decent
articles or source for information so I can learn what
script to use and how.
Again, highly appreciate of your responses thanks for
bailing me out again.

jax
-----Original Message-----
You'll have to make the image's layout explicit (insdtead of normal HTMLflow - effectively chaning the HTML "position" attribute to "absolute"instead of default or static) and use client-side script to move it (Iassume you don't want the page round-tripping to the server to do this).
-Rob Teixeira [MVP]

"Jax" <an*******@discussions.microsoft.com> wrote in messagenews:00****************************@phx.gbl...
Can i change the location of a control in ASP.NET?
I'd like to have the ability to change an images' location on the pressing of little arrows on the same page to
resize and move the image around.
Usually on an application level I would use the location
property but I can't seem to find this in ASP.NET the size is available, but does anyone know how I can change the
location.

Thanks for any help passed my way.

jax

.

Nov 15 '05 #3
Javascript would be ideal.
I know there are few examples like this in the MSDN library. Try searching
for the "position" and "offset" HTML attributes.

-Rob Teixeira [MVP]

<an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
Thats very helpful, thankyou very much Rob.
You make a very good point about client side script, it
would be ridiculous to post back to the server for every
single change that is made, it would appear that I will
have to learn some script (scripting in C# is undesirable
on the client side I assume as it would require the user
to have the .NET framework redist).
I am not very keen on the idea of using VBScript, would
Javascript be a good choice? Do you know of any decent
articles or source for information so I can learn what
script to use and how.
Again, highly appreciate of your responses thanks for
bailing me out again.

jax
-----Original Message-----
You'll have to make the image's layout explicit (insdtead

of normal HTML
flow - effectively chaning the HTML "position" attribute

to "absolute"
instead of default or static) and use client-side script

to move it (I
assume you don't want the page round-tripping to the

server to do this).

-Rob Teixeira [MVP]

"Jax" <an*******@discussions.microsoft.com> wrote in

message
news:00****************************@phx.gbl...
Can i change the location of a control in ASP.NET?
I'd like to have the ability to change an images' location on the pressing of little arrows on the same page to
resize and move the image around.
Usually on an application level I would use the location
property but I can't seem to find this in ASP.NET the size is available, but does anyone know how I can change the
location.

Thanks for any help passed my way.

jax

.

Nov 15 '05 #4

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

Similar topics

4
by: Chuck Farah | last post by:
I keep getting this error running a VB .NET web forms application. I exit visual studio kill the aspnet_wp.exe process and restart vs and works again. Any help would be appreciated. Just to...
13
by: Will Pittenger | last post by:
I have a Control derived class. When the parent of the control changes the control's Location property, the stack overflows. I have not found a way to find out what was on the stack when it does...
1
by: Jim Hammond | last post by:
Does a WebControls.Image object actually contain an image, and if so, how can I get it? As far as I can tell, the WebControls.Image class does not contain the image itself. It seems to only...
1
by: KMart | last post by:
Hello, I have a ASP.NET/C# application that uses the IE Web Controls. Everything was working fine. Then, for some unknown reason, everything stopped working. Here's the error information: ...
1
by: Lorenc | last post by:
Recently I am getting this error randomly while working with visual studio ..NET 2003 on a C# project and browsing my application. Everything comes to normal after rebooting. Can someone help on...
3
by: Brano | last post by:
HI all, I have a problem i have a web application that was working fine and this morning when i run it and click on a button that does Reponse.Redirect to a page i get this error : Server...
4
by: jesper_lofgren | last post by:
Hi there, I have some webcontrols that i want to add dynamically on a page. I have stored the path / namespace in database (ex MyNameSpace.WebControls.Control1) to the class/webcontrol. Lets...
3
by: dave | last post by:
We have an application that works perfectly in-house (tested on 3 different servers). It uses Microsoft.Web.UI.WebControls.dll for menubars and toolbars. Problem Description: We uploaded...
0
by: marcyb | last post by:
Can anyone help I am trying to get a WebControl toolbar to work this is my code for a toolbar in visual web developement 2005 express for C# <%@ Page Language="C#" Debug="true" %> <%@ Import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.