Fixing an Id for a HTML Tag

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Fixing an Id for a HTML Tag

    Hi all

    is there a way to fix an id

    like id=txtCheckedItems

    aspx changes it to _ctl0_eee_txtCheckedItems

    in
    <input name="_ctl0:eee:txtCheckedItems" id="_ctl0_eee_txtCheckedItems"
    type="hidden" size="28" />

    How else can this be done


    Thank for your help

    Jim


    MS News Guest

  2. Similar Questions and Discussions

    1. Fixing images in Contribute
      Hello All I am having a problem with an image, the image wont open fully, i am using contribute to try and fix the problem. The image works fine in...
    2. Fixing 9b install
      Folks, I want to share my experience with Flash 9b. I upgraded to IE 7. Then, I upgraded to Flash 9b. Somehow, I was not able to visit any...
    3. Fixing Layers
      I am fairly new to Dreamweaver so I am sorry if I don't explain this problem very well. I am using a hidden layers for a site I am designing....
    4. red eyes fixing
      how can i do, or use. to fix the red eyes in some pictures that i have. i haft to use a filter??, or what can i do. Thanx fo the help
    5. Fixing registry
      Gavin Deadman wrote: In case you hadn't noticed, this group is called microsoft.public.windowsxp.basics. It is not called...
  3. #2

    Default Re: Fixing an Id for a HTML Tag

    ASP.NET renames them to prevent naming conflicts and to keep the naming
    consistent.
    You can get the true ID at run time from the ClientID property of the
    control.
    You also should be able to inherit a control and override this property for
    more manual control of the naming.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "MS News" <sql_agentman@hotmail.com> wrote in message
    news:urmHj5WVDHA.2164@TK2MSFTNGP09.phx.gbl...
    > Hi all
    >
    > is there a way to fix an id
    >
    > like id=txtCheckedItems
    >
    > aspx changes it to _ctl0_eee_txtCheckedItems
    >
    > in
    > <input name="_ctl0:eee:txtCheckedItems" id="_ctl0_eee_txtCheckedItems"
    > type="hidden" size="28" />
    >
    > How else can this be done
    >
    >
    > Thank for your help
    >
    > Jim
    >
    >

    Steve C. Orr, MCSD Guest

  4. #3

    Default Re: Fixing an Id for a HTML Tag

    What about getting to that control at the Client Side via JavaScript
    I have to generate dynamic javascript?

    Thanks Steve
    "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    news:#JYl47WVDHA.1896@TK2MSFTNGP12.phx.gbl...
    > ASP.NET renames them to prevent naming conflicts and to keep the naming
    > consistent.
    > You can get the true ID at run time from the ClientID property of the
    > control.
    > You also should be able to inherit a control and override this property
    for
    > more manual control of the naming.
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD
    > [url]http://Steve.Orr.net[/url]
    >
    >
    > "MS News" <sql_agentman@hotmail.com> wrote in message
    > news:urmHj5WVDHA.2164@TK2MSFTNGP09.phx.gbl...
    > > Hi all
    > >
    > > is there a way to fix an id
    > >
    > > like id=txtCheckedItems
    > >
    > > aspx changes it to _ctl0_eee_txtCheckedItems
    > >
    > > in
    > > <input name="_ctl0:eee:txtCheckedItems" id="_ctl0_eee_txtCheckedItems"
    > > type="hidden" size="28" />
    > >
    > > How else can this be done
    > >
    > >
    > > Thank for your help
    > >
    > > Jim
    > >
    > >
    >
    >

    MS News Guest

  5. #4

    Default Re: Fixing an Id for a HTML Tag

    You can created a Public Variable in ur code with the client id
    Ie
    Public MyString as string
    Page load / maybe INIT
    MyString = mycontrol.id / clinetid
    in ur htmlcode where u need client id in javascript <% =MyString %>
    somthing like that

    "MS News" <sql_agentman@hotmail.com> wrote in message
    news:#x#4uPYVDHA.3148@tk2msftngp13.phx.gbl...
    > What about getting to that control at the Client Side via JavaScript
    > I have to generate dynamic javascript?
    >
    > Thanks Steve
    > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    > news:#JYl47WVDHA.1896@TK2MSFTNGP12.phx.gbl...
    > > ASP.NET renames them to prevent naming conflicts and to keep the naming
    > > consistent.
    > > You can get the true ID at run time from the ClientID property of the
    > > control.
    > > You also should be able to inherit a control and override this property
    > for
    > > more manual control of the naming.
    > >
    > > --
    > > I hope this helps,
    > > Steve C. Orr, MCSD
    > > [url]http://Steve.Orr.net[/url]
    > >
    > >
    > > "MS News" <sql_agentman@hotmail.com> wrote in message
    > > news:urmHj5WVDHA.2164@TK2MSFTNGP09.phx.gbl...
    > > > Hi all
    > > >
    > > > is there a way to fix an id
    > > >
    > > > like id=txtCheckedItems
    > > >
    > > > aspx changes it to _ctl0_eee_txtCheckedItems
    > > >
    > > > in
    > > > <input name="_ctl0:eee:txtCheckedItems" id="_ctl0_eee_txtCheckedItems"
    > > > type="hidden" size="28" />
    > > >
    > > > How else can this be done
    > > >
    > > >
    > > > Thank for your help
    > > >
    > > > Jim
    > > >
    > > >
    > >
    > >
    >
    >

    Vincent V Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139