asp.net - Changing the underlying HTML of an asp:DetailsView -


i need dramatically change underlying html of existing detailsview control, far beyond available in properties of templatefield control.

for instance, there specific sizes of gaps between fields implemented rows , columns in structural table. 'required' marker table cell has background color. things that.

isn't there way provide whole new template detailsview control?

ninja edit:

per request, here totally obtuse requirement detailsview formatting.

  <tr>       <td>           <table class="question_spacer io_table" width="100%">               <tbody>                   <tr class="io_label " id="blah">                       <td colspan="2" oncontextmenu="some javascript;">                         <span style="margin-left: 1px;" id="blah" class="changed" title="mandatory - must populated before submit" oclass="mandatory">&nbsp;</span>                         <label for="blah">what full name?</label></td>                   </tr>                   <tr>                       <td>&nbsp;</td>                       <td width="100%">                         <input value="blah" class="cat_item_option" type="hidden" id="blah" onchange="somejavascript" name="blah">                         <input type="hidden" onchange="javascripthere" value="sys_user" id="blah" name="blah">                         <input value="" type="hidden" id="blah">                         <input title="" value="" class="questionsetreference" onkeyup="js" onkeydown="js" onkeypress="js" ac_order_by="name" ac_columns="user_name" id="blah" name="blah" onfocus="js">                         <a tabindex="1" style="padding-right:4px;" id="blah" onclick="js">                           <img title="lookup using list" height="16" src="images/reference" border="0" width="18">                         </a>                         <span style="" id="name">                           <a tabindex="1" id="catalog_super_diamond_anchor" onmouseout="js" onclick="js" onmousemove="js">                             <img height="16" style="align: left; display: " width="16" src="images/icons/hover_icon.gifx" border="0" id="blah" name="blah">                           </a>                           <img height="16" style="align: left; display: none;" width="16" tabindex="1" src="images/s.gifx" border="0" id="blah" name="view.sys_user.no">                         </span>                       </td>                   </tr>               </tbody>           </table>       </td>   </tr> 

i hoping 'simple' example. example html want output? example has confused me more lol. detailview fit in there or produce that?

if want produced detailview need use templatefield , implement ondatabinding of controls within templatefield customizing require can manipulate @ control level anything...

what part can't working using templatefield?


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -