Click here to Skip to main content
15,894,106 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Below is My Code Line:
var txt_prmin1 = parseInt(document.getElementById("<%=txt_prmin1.ClientID %>").value);
....
var txt_prmin1 = parseInt(document.getElementById("<%=txt_prmin{0}.ClientID %>","1").value);

I Want To Pass Argument to Change Client Id. but my code is not working

Kindly Help Me Out.
Thanks
Regards.
Gulab Chand
Posted
Updated 18-Mar-13 19:38pm
v2

1 solution

hi!!! use like this
JavaScript
var value= document.getElementById('<%= txt_prmin1.ClientID %>').value;

instead of
JavaScript
parseInt(document.getElementById("<%=txt_prmin1.ClientID %>").value);
 
Share this answer
 
v2
Comments
Member 3015492 19-Mar-13 3:51am    
I Want to Change Client Id At Run Time For Example
<%=txt_prmin1.ClientID %>
<%=txt_prmin2.ClientID %>
<%=txt_prmin3.ClientID %>
....
.....

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900