Hi,
I am using a Cssstom controller in my page and I want to get the Client side ID of the controllers from a java script in side the Controller..It slike this
Page-:patient.aspx
<epl:EditablePayersListField ID="PrimaryPayerName" IDPrefix="<%=this.id %>"
Value='<%# Bind("Primary") %>' runat="server" />
<epl:EditablePayersListField ID="PrimaryPayerName" IDPrefix="<%=this.id %>"
Value='<%# Bind("Secondry") %>' runat="server" />
<script language="javascript" type="text/javascript">
SomeFunctionInController("primary"); SomeFunctionInController("Secondry");
</scipt>
****************************************************
Controller:-EditablePayersListField.ascx
<asp:DropDownList size="5" style="display:none"
ID="ComboboxSelectList" runat="server">
</asp:DropDownList>
function SomeFunctionInController(prefix)
{
//Get the ComboboxSelectList element from here..using "prefix" to get the particular element
}
************************************************************
I want to get the Client side ID of this combo box in my JS at the epl:EditablePayersListField controller..
Ya i know I can take it by using <%=ComboboxSelectList.ClientID %>
but Problem happens when I am using it in two palces..Only last instantiated Id is coming..means(ctl00_MainAreaPlaceHolder_EncounterForm_Secondry_ComboboxSelectList)
Please reply me
..Any method is exceptable (Jqury ,JS)