Click to See Complete Forum and Search --> : control doesn't show in design


Big Red
08-19-2009, 10:10 AM
I have a web application that has several controls that were created. (ex. cntProduct.ascx) I need to make some changes to this control. When I open the control and use the split view, the source code shows that a rad grid is on the page along with a couple other things. When I look at the design view, there is nothing there. It looks like nothing is on the page/control at all. Why is this? I want to be able to make changes using the design view but can't. How can I make everything appear in the design? (I'm using VS 2008, .NET 3.5)

ryanbutler
08-20-2009, 08:18 AM
You'll never see the user control (ascx) because it's a server-side control. As VS 2008 is only an editor, you'll make changed, build or re-build the solution and then preview using the browser.

Big Red
08-20-2009, 08:23 AM
Oh, alright. But I found something strange...

I was playing around with the source code and copying and pasting and deleting and adding a lot. if i go to then very end of my source code, hit enter a couple times and just type some letters/gibberish. Then press enter again and copy and paste my whole rad grid after those letters/gibberish, the pasted grid shows up in the design. I can delete the original radgrid and the pasted grid still shows up. When I then delete the letters/gibberish, the grid disappears. This doesn't seem normal, so i'm guessing it's a bug. But at least I can change the grid when it shows up and then when I'm ready to publish the site, I can delete the letters/gibberish and it should still show up on the web page even though it won't show up in design.