Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET controls appearing twice on master page

Status
Not open for further replies.

Jaminxz

Programmer
Mar 18, 2009
2
GB
I'm new here so hello guys! hope you can help me.

I'm building a web-application for a college project and running into difficulties with controls. I'm trying to filter a gridview with a drop down list, but when i use the configure data source wizard every control on the page appears twice and not matter which i select my gridview doesn't build(i think the page might be getting 'confused' as to which one i'm using). I've definitely followed the tutorial right, rebuilt the page a million times and found that it even happens on new pages that are attached to master pages. It doesnt happen on new pages not in the master so i'm thinking possibly its something to do with my master page? does anybody have any ideas where i could start looking, or is this a bug in Visual Studio?
 
the more "code" you write use IDE wizards the less you can debug what's happening. I would recommend abandoning these in favor of actually writing code.

1. you are in control of what's happening
2. you can debug the code
3. you can test the code

check your master page to make sure you only have 1 tag for ContentPlaceHolder if you have 2 this could be why.
If not, delete the master page and re-create.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Also, this forum is not for homework assignments, sorry. I'm sure you can find answer using Google.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top