Ask a Question related to ASP.NET General, Design and Development.
-
Sean Gamino #1
problem with name created when control is rendered.
Hello,
I am creating a html server control that is in a datalist. I need to access
this controls value on the client via javascript but the name is being
overwritten with a unique value generated by ASP.Net. This makes it rather
impossible to access the control in javascript because I do not know what
the name of the control is.
Is there a way I can keep the original name that I assign it?
Thanks,
Sean Gamino
Sean Gamino Guest
-
RegisterClientScriptBlock with rendered control?
Hi, Are there any issues using ClientScriptManager.RegisterClientScriptBlock in a rendered control? I'm calling this function within the... -
User Control not rendered in Visual Studio
I have created a custom composite server control. When I drag the control from the toolbox into Visual Studio it does not display in Visual Studio,... -
Dynamically created control in Datagrid problem
I created a datagrid with 4 bound columns and 1 template column. I am using the ITEMDATABOUND event to add a control to the template column, if... -
Repeater control in a rendered custom control
I have created a custom control that puts a html wrapper around some code so <myc:cPanel ...>more html</myc:cPanel> will draw a html table which... -
ControlDesigner not invoked on custom control when control is rendered within another custom control
I have a custom control that has a simple designer (derived from System.Web.UI.Design.ControlDesigner) associated with it (using the... -
John Saunders #2
Re: problem with name created when control is rendered.
You're better off telling your JavaScript code what the unique ID of the
control actually is.
If your control is in a datalist, won't there be multiple copies of it? In
that case, you _need_ unique IDs.
--
John Saunders
Internet Engineer
[email]john.saunders@surfcontrol.com[/email]
"Sean Gamino" <sean.gamino@redstone.army.mil> wrote in message
news:OYWP4V8TDHA.2128@TK2MSFTNGP12.phx.gbl...access> Hello,
> I am creating a html server control that is in a datalist. I need torather> this controls value on the client via javascript but the name is being
> overwritten with a unique value generated by ASP.Net. This makes it> impossible to access the control in javascript because I do not know what
> the name of the control is.
>
> Is there a way I can keep the original name that I assign it?
>
> Thanks,
> Sean Gamino
>
>
John Saunders Guest



Reply With Quote

