Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi..
how to assign multiple values frm javascript in c# page load.. and how can assign it in lables or textboxes..
please help me...



thank you..
Posted

1 solution

Here are some guidline to do your work
1) You have to first write javascript function in which find asp lable and assign javascript variable value
JavaScript
document.getElementById('<%=TextBoxId.ClientID%>').Value=//Javascript variable vale

2) Call javascript function on page load
C#
ClientScript.RegisterStartupScript(GetType(), "", "YourJscriptFunction", true);
 
Share this answer
 
v3
Comments
NaniCh 18-Aug-12 8:34am    
thank you for u r help...
here how can i assign getting values to lables in pageload...?

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