[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

Controls disappearing, but can't replace

Hi,

     I have weird things happening on my webform.  I was in design mode, turned to listen to an office conversation, and when I turned around, a textbox and a combo box were gone.  One of them became a little grey button that said something about couldn't form control or something.  But I deleted it.  Then I tried to replace them.  If I click in the dropdown at the top of the properties box, there is no control listed with the names of the two that are gone.  But if I make a new textbox or combo and try to name them what the old ones were called, it tells me invalid property, a control already exists with that name.  In the HTML code I can't find an instance of those names either.  What happened to me?

JP
0
gleznov
Asked:
gleznov
  • 2
1 Solution
 
Ignacio Soler GarciaCommented:
This happens to me sometimes. Try to look at the Visual Studio automatic generated code and delete any ocurrence of the name of the variables. Then you can add them again. When this happens the best thing it to close the visual studio without saving and restart the vs again. You won't have the GUI corruption.

SoMoS
0
 
gleznovAuthor Commented:
Somehow it saved itself.  How do I see the auto-generated code?  Or is that the stuff in the + part at the front of the code?  I'll look there...

JP
0
 
gleznovAuthor Commented:
That was it.  Thanks so much!

JP
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now