Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Arulraja #1
JavaScript and Custom Controls
Hi,
I have a custom control(Child Control). Basically it renders a table.
It contains a Button Control. During the Click event of the Button
control I want to validate the User Inputs in the server side, if the
validation fails I put the value into the Hidden Input control.
Now, Onthe window_onload event I want to access the Hidden Input
field. But the problem is, even if I assign the IDto the Hidden Input
control at runtime, the HTML shows a differnt ID(it's adding the Child
control name_ctl7 soon). Because of this I am not able to use the
Javascript document.getelementbyId() function to the value.
Any help will be appreciated.
Thanks
Arul
Arulraja Guest
-
communication between an application, custom controls, and user controls
Hi, and many thanks in advance... I'm a little lost about how to proceed with communication between an application, custom controls, and user... -
Why the properties of web user controls which inherted from my custom base UI controls MISSED?
Why the properties of web user controls which inherted from my custom base UI controls MISSED? How should I to set enable? -
using javascript in User controls to access server controls of the user control
Hello all, I have an asp.net textbox (named txtHidden) and an HtmlButton(named btnAction). I wanted to write a javascript function which will get... -
user controls and javascript
Hi there, I have a user control and I need to carry out some client- side custom validation on the controls within the user control (hope that... -
Accessing Properties of Custom Controls child Controls
I am using a Custom Control on a page which renders a button control if required. I need to access the child button control's properties (i.e.... -
Andy Smith #2
JavaScript and Custom Controls
Do not hardcode id's into your script associated with your
control. Check out this article I wrote on combining
script with custom controls:
[url]http://weblogs.asp.net/asmith/posts/25465.aspx[/url]
__
Andy Smith
renders a table.>-----Original Message-----
>Hi,
>
>I have a custom control(Child Control). Basically itthe Button>It contains a Button Control. During the Click event ofside, if the>control I want to validate the User Inputs in the servercontrol.>validation fails I put the value into the Hidden InputHidden Input>
>Now, Onthe window_onload event I want to access theHidden Input>field. But the problem is, even if I assign the IDto theadding the Child>control at runtime, the HTML shows a differnt ID(it'suse the>control name_ctl7 soon). Because of this I am not able tovalue.>Javascript document.getelementbyId() function to the>
>Any help will be appreciated.
>
>Thanks
>Arul
>.
>Andy Smith Guest
-
Unregistered #3
Re: JavaScript and Custom Controls
http://www.4microsoftsolutions.com/post/Javascript-Embed-in-Custom-Control.aspx
Unregistered Guest



Reply With Quote

