473,609 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1654
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.goo glegroups.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.goo glegroups.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.goo glegroups.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
2483
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 change its text contents from a link elsewhere in the page? I have a rought idea that I'll need something like 'id' in my <td> tags but while I have a greater understanding of server-side programming langauges like PHP, javascript is still very new...
2
3117
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
1352
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
3666
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) by default (0,0) is in the top-left corner of the form but right now I need it in the bottom left corner of my form (ie) my (0,0) coordinates.I dont know coding.I tried changing the form property location but this location property is to place...
4
2151
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 bottom-left of my form.Thrice I got the reply but unfortunately it did'nt work.Here is my coding. private sub form_load(...) dim y as integer y=me.height location.y = 0-y
1
1629
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 out how to reference it so I can change the URL depending on which Stored procedure I bind to it during form load. Is there a way to change it URL via VB. This is in a content form within a master page if that makes any difference. Thank...
7
2137
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 str1, str2 As String str1 = CStr(arlsFilePath.Item(x))
0
2152
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 RichTextBox1.LinkClicked event to launch a browser window. That works fine. The problem is that once the DetectUrls property is True the RichTextBox control shows the link in blue even if I select the text and change the SelectionColor to purple. For...
2
2543
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 is. But I am getting two distinct sets of coordinates if I change the angle from zero to 270. Here's the relevant code:
0
8130
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8406
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7002
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6057
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5510
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4021
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2531
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.