473,398 Members | 2,427 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,398 software developers and data experts.

How to change the X and Y coordinates for a .NET WebForm Hyperlink

I am relatively new with C# and ASP.NET. I created an application
using WinForms in which I have several hyperlinks. I want their
position on the webpage to be determined (dynamically) based on the
state of the user. I have been checking online, but I can't find
anywhere that explains how I can change the position (coordinates) of
my HyperLink object in a way similar to below:

Hyperlink h;

h.X = 124;
h.Y = 212;

Any help would be greatly appreciated. Thanks!

-Jarrett

Jun 5 '06 #1
3 1650
you could put it into a DIV and postition the DIV

--
Regards

John Timney
Microsoft MVP

<ja*************@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I am relatively new with C# and ASP.NET. I created an application
using WinForms in which I have several hyperlinks. I want their
position on the webpage to be determined (dynamically) based on the
state of the user. I have been checking online, but I can't find
anywhere that explains how I can change the position (coordinates) of
my HyperLink object in a way similar to below:

Hyperlink h;

h.X = 124;
h.Y = 212;

Any help would be greatly appreciated. Thanks!

-Jarrett

Jun 5 '06 #2
normally this would be done in client script, as only client script can get
the actual rendered layout positions. any good javascript book will tell how
to walk the dom to calc and set postitions.

-- bruce (sqlwork.com)

<ja*************@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I am relatively new with C# and ASP.NET. I created an application
using WinForms in which I have several hyperlinks. I want their
position on the webpage to be determined (dynamically) based on the
state of the user. I have been checking online, but I can't find
anywhere that explains how I can change the position (coordinates) of
my HyperLink object in a way similar to below:

Hyperlink h;

h.X = 124;
h.Y = 212;

Any help would be greatly appreciated. Thanks!

-Jarrett

Jun 5 '06 #3

bruce barker (sqlwork.com) wrote:
normally this would be done in client script, as only client script can get
the actual rendered layout positions. any good javascript book will tell how
to walk the dom to calc and set postitions.

-- bruce (sqlwork.com)

<ja*************@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I am relatively new with C# and ASP.NET. I created an application
using WinForms in which I have several hyperlinks. I want their
position on the webpage to be determined (dynamically) based on the
state of the user. I have been checking online, but I can't find
anywhere that explains how I can change the position (coordinates) of
my HyperLink object in a way similar to below:

Hyperlink h;

h.X = 124;
h.Y = 212;

Any help would be greatly appreciated. Thanks!

-Jarrett

When I say the state of the user, I am referring to the state of
variables that were passed into the program prior to the loading of the
page. I am not referring to the client environment variables. For
example:

if(var == true)
{
place link in col 1
}
else
{
place link nin col 2
}

This is just an idea of what I'm doing. Since this really has nothing
to do with the client environment or interaction, I would think there
would be a non-client way of solving it.

Jun 6 '06 #4

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

Similar topics

14
by: Reply Via Newsgroup | last post by:
Folks, Say I have a table, ten columns, ten rows - Each with a word in it. I want to change the values of some/all of the cells in the table via a hyperlink. How do I reference each cell and...
2
by: Roby SGM | last post by:
Hi. In a webform (VB.NET) how can I open a new instance of the browser ? Thank you Roby
5
by: Miguel Ramirez | last post by:
Hello All, How can I call a WebForm from another WebForm when user clicks a button? Any help will be appreciate, Regards, Miguel.
4
by: K.N.Ranjit | last post by:
Hi to all friends out there, I'm facing this problem for atleast 2 days but still have'nt yet solved my problem.I send the mail few days back (ie) in VB.net how to shift my form coordinates (ie)...
4
by: K.N.Ranjit | last post by:
Hi, This is the 4th mail I'm sending regarding this problem. I'm really not been able to sort this problem out.I'm not been able to change my starting position of my cordinates from top-left to...
1
by: Vear | last post by:
I have a gridview inside a content placeholder that has the first column as a hyperlink. I changed it from a Hyperlinkfield to a Template field so I could name the hyperlink control. I can't figure...
7
by: dotnetnoob | last post by:
i keep getting Object references not set to an instance of an object from this code: Private Sub EqBinding() Dim x As Integer x = 0 Do If CStr(arlsType.Item(x)) = "Bacnet Point" Then Dim...
0
by: =?Utf-8?B?Um9nZXI=?= | last post by:
In my app I would like to change the color of the hyperlink from blue to purple when a user clicks the hyperlink in a RichTextBox. The DetectUrls property is set to True and I handle the...
2
by: laredotornado | last post by:
Hi, I'm using php 4.4.4. Maybe I'm misreading the docs, but in the imagettfbbox manual (http://us2.php.net/imagettfbbox), it says that text coordinates are the same regardless of what the angle...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.