c# - Find object by css class from code behind -


i have table subtables. indexs of rows css value. possible code behind?

in example know witch row number childrow has.

<table id="ctl00_contentholder_tbl_main" class="tablesorter tablesorter-default" border="1" style="background-color:white;border-style:solid;" rules="all"> <thead> <tbody> <tr class="grey"> <tr class="grey"> <tr class="grey"> <tr class="childrow"> <tr class="grey"> <tr class="grey"> 

you can work in code-behind controls have runat="server" id="xxx" attributes. if control has these attributes can reference them , retrieve attributes (including css class name). if not html code treated text asp.net engine , not elements/controls.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -