mryogi76 Posted December 30, 2008 Posted December 30, 2008 (edited) I have a page say catalog.aspx. There are links on the left side say "Category" and "Books". When user clicks on a link corresponding usercontrol is loaded which shows Categories/Books depending on selection. To Show Categories/Books UserControls as - Category.ascx and Books.acsx have been used. Now the problem is - In Category.ascx I am hiding one of the grid columns. If user clicks categories.ascx and then clicks books.ascx, the books.ascx hides the particular column, even though it is not meants to. i.e. the code written in categories.ascx like "GridView1.Columns[1].Visible = false;" fires for books.ascx. I have no clue why. Please help. Regards YogiError Description.doc Edited December 31, 2008 by mryogi76 Quote
Administrators PlausiblyDamp Posted December 30, 2008 Administrators Posted December 30, 2008 Where is the grid defined? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
mryogi76 Posted December 31, 2008 Author Posted December 31, 2008 There are 2 grids in 2 different user controls. Read the document I have attached. (Error Description.doc) Quote
Administrators PlausiblyDamp Posted January 3, 2009 Administrators Posted January 3, 2009 Is there any code in the page that contains these user controls that references the grid controls? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.