|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Absolute vs. Relative vs. my sanity...developing web pages. I have a standard ASPX web page, the only two controls on the page are a Label Control (WebControls.Label) and a Button (WebControls.Button). If I place both controls using Layout = Relative they look correct on the web page. But when I run the project they're relocated off screen somewhere. If I go back to design mode and go into "Source" mode on the web page, I see that left is set to -275px, and top = -20px??? So, if I switch either of the controls to Layout = Absolute, both controls move OFF the web page (in design mode) and I have to go into Source again and manually set the left/top. Can someone tell me WTF is going on with the VS 2005 IDE and why would it do this? Is it because I have a dual monitor system or is it just some other sadistic bug in VS 2005? (cross posted on dotnet.general also -- apologize if this causes issues). Rob. I'd suggest you go with relative and manually remove the left & top
attributes so they'll stop giving you grief. Here's more info: http://SteveOrr.net/articles/ControlPositioning.aspx Show quoteHide quote "Rob R. Ainscough" <roba***@pacbell.net> wrote in message news:ulEDOlTQGHA.3460@TK2MSFTNGP15.phx.gbl... > Ok, I gotta say I now believe in Voodoo & Magic after working with VS 2005 > developing web pages. > > I have a standard ASPX web page, the only two controls on the page are a > Label Control (WebControls.Label) and a Button (WebControls.Button). If I > place both controls using Layout = Relative they look correct on the web > page. But when I run the project they're relocated off screen somewhere. > If I go back to design mode and go into "Source" mode on the web page, I > see that left is set to -275px, and top = -20px??? So, if I switch either > of the controls to Layout = Absolute, both controls move OFF the web page > (in design mode) and I have to go into Source again and manually set the > left/top. > > Can someone tell me WTF is going on with the VS 2005 IDE and why would it > do this? Is it because I have a dual monitor system or is it just some > other sadistic bug in VS 2005? > > (cross posted on dotnet.general also -- apologize if this causes issues). > > Rob. >
GridView
When are Session Variables Available in PostBacks? Set OnClientClick programmatically Intercepting the GridView Datalist question... Panel Controls Which row in GridView_RowCommand?? Control ID is changed within Content Control using Master Content WebParts drag/drop problems PREVENT an ASP.Net page from posting back when the ENTER key press |
|||||||||||||||||||||||