By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,135 Members | 1,184 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,135 IT Pros & Developers. It's quick & easy.

Center Align Label and Hyperlink Control

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.