none
Visual Studio 2015 stops recognizing objects in my webform from the code behind VB.NET RRS feed

  • Question

  • I create a new <g class="gr_ gr_20 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" data-gr-id="20" id="20">Webform</g> with a VB code behind.  I add an object such as <g class="gr_ gr_237 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="237" id="237">a <</g>asp<g class="gr_ gr_881 gr-alert gr_gramm gr_inline_cards gr_run_anim Style replaceWithoutSep" data-gr-id="881" id="881">:label</g> id="lblTest" runat=server/> and then when I go to the code behind and go to use the lblTest it is not found.  Says the object is not defined.  I have run into this before but cannot remember the best solution.  I ended up starting a new project and adding the files to it and all was fine for a while.  

    Could this be a result of needing to clean out <g class="gr_ gr_805 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" data-gr-id="805" id="805">he</g> Visual Studio Temp Files?  Is there an easy fix?


    Michael Adkins

    Thursday, September 13, 2018 8:33 PM

All replies

  • Hi Michael Adkins,

    Thank you for posting in MSDN forum!

    Refer to your description, it seems this issue is about Web Form issue. Since our forum is to discuss the VS IDE issues, please redirect to Web Forms forum and start a new thread for a better support, thank you for your understanding.

    Best Regards,

    May


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Friday, September 14, 2018 6:17 AM