Ask a Question related to ASP.NET General, Design and Development.
-
MS News #1
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
-
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... -
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... -
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.... -
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 -
Fixing registry
Gavin Deadman wrote: In case you hadn't noticed, this group is called microsoft.public.windowsxp.basics. It is not called... -
Steve C. Orr, MCSD #2
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
-
MS News #3
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...for> 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> 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
-
Vincent V #4
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...> for> > 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>> > 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



Reply With Quote

