Click here to Skip to main content
13,249,035 members (48,672 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » Howto » Downloads


21 bookmarked
Posted 1 Feb 2007

ASP.NET: How to Resolve Client ID

, 1 Feb 2007
A method to resolve the client IDs of controls in containers.
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="myControl.ascx.cs" Inherits="ResolveClientId.myControl" TargetSchema=""%>
	<h4>How to resolve client ids in containers:</h4>
	<asp:TextBox ID="mytext" Runat=server></asp:TextBox>
	<input type=hidden id="ctrlPrefix" name="ctrlPrefix" value='<asp:Literal Runat=server ID=ctrlPrefix></asp:Literal>'> 
	<input type=button name="btnRead" value="Read Value" onclick="javascript:readValue('mytext')">

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

ozkar garcia
Architect OG-BITechnologies
United States United States

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171114.1 | Last Updated 1 Feb 2007
Article Copyright 2007 by ozkar garcia
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid