Changing control ID in design view

Last post 01-13-2006 10:02 AM by Bexm. 5 replies.

Sort Posts:

  • Changing control ID in design view

    12-12-2005, 9:23 AM
    • Member
      169 point Member
    • Bexm
    • Member since 08-08-2005, 7:06 AM
    • UK
    • Posts 68

    Hello

    In VS 2003 I could change the ID of a control in the design view by going to the ID in the properties window and typing it in, now when I try this in VS 2005 I can type the new ID in but when I click away it reverts back to either the default ID ("ie Textbox1") of what ever it was before.

    Am I missing something or is this meant to happen?

    Thank you in advance

    Bex

     

  • Re: Changing control ID in design view

    12-12-2005, 1:36 PM
    • All-Star
      32,472 point All-Star
    • augustwind
    • Member since 07-21-2002, 11:16 PM
    • Garland, TX
    • Posts 4,546
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
    did you either press the enter key, or tab out of it?
    David Wier
    MCP/ASPInsider
    ASPNet101.com - where to look first!
    Replace It! - the newest from August Wind - search/replace in multiple files
    Control Grouper - easily control properties for multiple controls with one control!
    Calendar Express - The Best HTML Calendar Generator on the web!
    (Please 'Mark as Answer' when it applies)
  • Re: Changing control ID in design view

    12-12-2005, 5:26 PM
    Maybe another control already has that ID?
    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Changing control ID in design view

    12-13-2005, 7:37 AM
    • Member
      169 point Member
    • Bexm
    • Member since 08-08-2005, 7:06 AM
    • UK
    • Posts 68

    Ok I have been testing things now.

    I created a  new wesite and it let me change the ID.
    But then the site I was refering to above still wont let me change it in design view whether I juct click away, tab or press enter.

    May be just a one off?
    Sorry I should have tested this with other sites first!

     

  • Re: Changing control ID in design view

    12-19-2005, 2:46 PM
    I'm having this problem now. Its not letting me change a controls ID from the properties section.
    I'm having to switch to source view every time :(

    anyone know of any fix for this ?
  • Re: Changing control ID in design view

    01-13-2006, 10:02 AM
    • Member
      169 point Member
    • Bexm
    • Member since 08-08-2005, 7:06 AM
    • UK
    • Posts 68

    I thought I wasn't going mad.. this has happened again since my last post!

    I can't work out exactly what I am doing differently though that some times it works and sometimes it doesn't!

    Maybe a bug!?

     

Page 1 of 1 (6 items)