thanks i understand that is what to do, but what i am wanting is to stop the name changing all together. is there some way to stop the control from being renamed?
>>> [EMAIL PROTECTED] 06/18/2005 4:48:18 AM >>> set the control id property. Then use document.getElementById to find it. It will be prefixed by the containing control + _. --- In [email protected], "davidrenz05" <[EMAIL PROTECTED]> wrote: > I have a WebUserControl that i am trying to run some client side code > on. > > When i put a "runat=server" property in the Textarea, the ID is > changed when the page is drawn. > > ie: > the element is --> > <textarea id="txtRemarks" rows=10 cols=35 NAME="tx > tRemarks"></textarea> > > it comes back like ---> > <textarea name="_ctl0:txtRemarks" id="_ctl0_txtRemarks" rows="10" > cols="35"></textarea> > > this is screwing up my clientside code. > it will work fine if it is standalone page,rather than a user control. > > anyone know how to prevent the element name change? > or is there a way? > or should i just make it its own page? > > thanks, > david Yahoo! Groups Links [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
