Datalist control
-
Hi friends, I am using datalist controls.I want to access that control using javascript.Is it possible ? How can do this. plz help me
Thank& Regards Vijay s
-
Hi friends, I am using datalist controls.I want to access that control using javascript.Is it possible ? How can do this. plz help me
Thank& Regards Vijay s
A datalist control will be rendered as HTML table or div tags. Why do you want to access them through JS ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Hi friends, I am using datalist controls.I want to access that control using javascript.Is it possible ? How can do this. plz help me
Thank& Regards Vijay s
Hi, can you explain for what purpose you want to do so ? Descriptive message plz....
Thanks, Sun Rays Rate this post if you like answer. My Articles
-
Hi friends, I am using datalist controls.I want to access that control using javascript.Is it possible ? How can do this. plz help me
Thank& Regards Vijay s
Vijayitsb wrote:
I want to access that control using javascript.Is it possible ?
you can access any control on the client-side through JavaScript using the following statement
document.getElementById(ClientID)
. Note: Every child control placed in the DataList will have a Unique clientId for each item.- Regards -
JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
-
A datalist control will be rendered as HTML table or div tags. Why do you want to access them through JS ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Hi friends, I am using datalist controls.I want to access that control using javascript.Is it possible ? How can do this. plz help me
Thank& Regards Vijay s
Hi, check this.. http://forums.asp.net/t/1014000.aspx[^]
Thanks, Sun Rays Rate this post if you like answer. My Articles
-
Because I am using checkbox in DataList.If i click checkall button all checkbox are selected.I have done this in server side.but i like to do this in client side
Thank& Regards Vijay s
Vijayitsb wrote:
but i like to do this in client side
In the "Check all" check box call a JS function from Onclick event. Loop through all datalist records and check the other checkboxes. To get how many rows datalist have, keep a public variable and assign the row count to there. You can take this variable value to JS and start loop.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Hi friends, I am using datalist controls.I want to access that control using javascript.Is it possible ? How can do this. plz help me
Thank& Regards Vijay s
you dont need to access datalist control to access checkBox you just need to send number of rows for ur purpose and then loop through all the rows.. for(var rowNum=1; rowNum<=parseInt(TotalRows,10); rowNum++) { if(document.getElementById('checkBox'+rowNum).checked = true; } I guess this code can help u out..
-
you dont need to access datalist control to access checkBox you just need to send number of rows for ur purpose and then loop through all the rows.. for(var rowNum=1; rowNum<=parseInt(TotalRows,10); rowNum++) { if(document.getElementById('checkBox'+rowNum).checked = true; } I guess this code can help u out..