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

Center Align Label and Hyperlink Control

This should be simple, I did it with a datagrid easily enough. Using VS Net
1.1, I want a label over the datagrid and a hyperlink below it (from
WebForms toolbox), with BOTH of them centered (text and control) over the
page. In other words, everything centered, automatic with window size.

If you have a solution not using VS (or HTML substitutes but would prefer
using VS controls, clearly need datagrid and aspx), I'm all ears also.

Thanks in advance to all

Nov 18 '05 #1
3 8637
Can't you just wrap the label, datagrid and hyperlink inside a div like
this:

<div align="center">
<asp:label..../>
<asp:datagrid.../>
<asp:hyperlink.../>
</div>

Maybe I missed your need?

Ken

"Tom Bernsen" <t.*******@worldnet.att.net> wrote in message
news:us*************@TK2MSFTNGP09.phx.gbl...
This should be simple, I did it with a datagrid easily enough. Using VS
Net
1.1, I want a label over the datagrid and a hyperlink below it (from
WebForms toolbox), with BOTH of them centered (text and control) over the
page. In other words, everything centered, automatic with window size.

If you have a solution not using VS (or HTML substitutes but would prefer
using VS controls, clearly need datagrid and aspx), I'm all ears also.

Thanks in advance to all


Nov 18 '05 #2
Ken,

Thanks, although I had to do some serious tweaking in VS.Net, your
suggestion was the basis of the solution. I suppose this is another thread,
but it seems to me that the HTML editor in VS.NET is a pain, I'm almost
tempted to do something like write all possible HTML elsewhere, bring it
into VS, and then add anything I need from there.....thoughts?

Thanks Again,

Tom Bernsen

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
Can't you just wrap the label, datagrid and hyperlink inside a div like
this:

<div align="center">
<asp:label..../>
<asp:datagrid.../>
<asp:hyperlink.../>
</div>

Maybe I missed your need?

Ken

"Tom Bernsen" <t.*******@worldnet.att.net> wrote in message
news:us*************@TK2MSFTNGP09.phx.gbl...
This should be simple, I did it with a datagrid easily enough. Using VS
Net
1.1, I want a label over the datagrid and a hyperlink below it (from
WebForms toolbox), with BOTH of them centered (text and control) over the page. In other words, everything centered, automatic with window size.

If you have a solution not using VS (or HTML substitutes but would prefer using VS controls, clearly need datagrid and aspx), I'm all ears also.

Thanks in advance to all

Nov 18 '05 #3
Hi Tom,

Yes, the GUI editor can be a pain. At times, I've created content in
DreamWeaver and then pasted the HTML code into the Source view of VS.NET.

I'm assuming that your HTML was too complex to create manually directly into
Source view.

Ken

"Tom Bernsen" <t.*******@worldnet.att.net> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
Ken,

Thanks, although I had to do some serious tweaking in VS.Net, your
suggestion was the basis of the solution. I suppose this is another
thread,
but it seems to me that the HTML editor in VS.NET is a pain, I'm almost
tempted to do something like write all possible HTML elsewhere, bring it
into VS, and then add anything I need from there.....thoughts?

Thanks Again,

Tom Bernsen

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
Can't you just wrap the label, datagrid and hyperlink inside a div like
this:

<div align="center">
<asp:label..../>
<asp:datagrid.../>
<asp:hyperlink.../>
</div>

Maybe I missed your need?

Ken


Nov 18 '05 #4

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

Similar topics

4
by: Philipp Lenssen | last post by:
Is it possible in IE6+NS7 to center-align a div of fixed width which itself contains elements which use "position: absolute"? Using "margin-left: auto" and "margin-right: auto" works well to center...
2
by: Todd | last post by:
I am adding a Label server control to an ASPX page using the .NET IDE. I can't figure out how to center it automatically. I know you can do it by editing the html and making it: <asp:Label...
7
by: Jeff Thies | last post by:
I've got a page with content that I want aligned in the center, with equal margins on both sides (text, left aligned). It seems to me that this is a complex thing to get right on most browsers...
0
by: Tom Jorgenson | last post by:
I need to create a custom control that behaves like a HyperLink control EXCEPT where I can get into the events somewhere to programmatically decided whether to actually perform the link request, or...
6
by: sck10 | last post by:
Hello, Can you control the window attributes (toolbar, scrollbars, left and right exc.) when using the hyperlink control as you would when using javascript? For examle, I am using the...
4
by: Mark Rae | last post by:
Hi, I have an <asp:PlaceHolder control on a page in an ASP.NET 1.1 app, as follows: <td nowrap><asp:PlaceHolder ID="phClientWebsite" Runat=server>&nbsp;</asp:PlaceHolder></td> Server-side,...
2
by: Daves | last post by:
I'm dynamically adding Hyperlink controls to a Label control. Can I somehow add " : " string after each hyperlink control so that the links appear like Link1 :: Link2 :: Link 3
2
by: Dinesh | last post by:
Dear All, Can u tell me how to center align a div (Panel) in Asp.Net 2.0. If we use align="center" then it will be converted to text-align:center which will align all the content of the div's...
0
by: Dhananjay | last post by:
hi all i have a problem on populating a message on asp:label server control.I am able to insert records into the table.but it is not populating any message like "Records entered successfully"....
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: 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?
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
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...
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.