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 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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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> </asp:PlaceHolder></td>
Server-side,...
|
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
|
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...
|
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"....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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,...
|
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...
| |