Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2016, 08:30 PM
Authorized User
 
Join Date: Aug 2014
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
Smile Re-Justify of ASP.NEt Page

Hi and TIA:

I have a fairly wide asp.net page with both a GridView (showing current data,which is wide left to right) and a DetaisView (for entering new data).

My problem is that if I make a change in a dropdown list I have in my DetailsView the entire web page "re-justifies" itself so that I loose my menu on the left side of the page. Page scrolls right and I loose my menu visibility.

This happens when I have "narrowed" my page so that the entire left to right is NOT visible. If I have the page maximized, of course, there is no problem. Not being able to see all of the GridView data in a "narrowed" page is OK as I figure the user can scroll left to right

What I would like is that when I make a change in my drop down list the page either stays the same (in orientation) or gives me a scroll left. Making a dropdownlist change should not re-justify my entire web page.

I've done some looking but no luck so far.

Thank you,
Cliff
 
Old January 24th, 2016, 02:43 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Cliff,

Since this is not related to my book directly you're far better off posting this in a genera ASP.NET category here: http://p2p.wrox.com/asp-net-4-5-709/ That way you'll attract more viewers.

That said: it sounds like a CSS issue. If the data i the Grid changes, then the browser can divide the available width across all columns in a different way and / or resize the entire grid.

Try setting an explicit width on the grid ad its columns.

If that doesn't help, please supply a lot more information and code.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to include an ASP.NET page in many other ASP.NET pages to avoid to rewriting code lizanta BOOK: Beginning ASP.NET 4 : in C# and VB 1 August 7th, 2011 01:34 PM
Posting form data from ASP.NET page to another page [email protected] BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 January 22nd, 2009 10:46 AM
[Resolved] String - right justify value snufse ASP.NET 2.0 Basics 3 November 14th, 2008 12:29 PM
access C#.Net page as action of calssic ASP page mansharma_s ASP.NET 1.x and 2.0 Application Design 6 January 7th, 2008 10:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.