Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 21st, 2016, 08:30 PM
Authorized User
Points: 150, Level: 2
Points: 150, Level: 2 Points: 150, Level: 2 Points: 150, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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,
Reply With Quote
  #2 (permalink)  
Old January 24th, 2016, 02:43 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

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.


Imar Spaanjaars
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!
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 sastry532@gmail.com 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

All times are GMT -4. The time now is 08:47 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.