Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use style.display on a repeater

Status
Not open for further replies.

lianaent

Programmer
Apr 26, 2007
10
US
I have a repeater with checkboxes and a dropdownlist. Depending on the value selected in the dropdownlist, I want the checkboxes to be displayed or not displayed.

Everything works fine, except for the initial display. If the repeater opens with the "non-display" dropdown value selected on any line, the checkboxes don't respond. That is, if I select a "display" dropdown value and the checkboxes are non-displayed, they remain so. However, it seems that as soon as the screen does a post-back, such as when adding a new row to the repeater, then all the dropdowns work properly. It's the initial setting that's the problem.

I'm fairly new to javascript, so maybe someone can see what I'm missing (I'm using asp.net 1.1).

This is the critical code inside the repeater ItemDataBound event:


ddlFieldTypes = CType(e.Item.FindControl("ddlFieldType"), DropDownList) 'The dropdown list
With ddlFieldTypes
.AutoPostBack = False
.EnableViewState = True
.DataSource = GetFieldTypes()
.DataValueField = "FieldTypeId"
.DataTextField = "FieldType"
.DataBind()
.SelectedValue = dtFields.Rows(e.Item.ItemIndex).Item("FieldTypeId"))
End With

' Here's the string defining the javascript function that sets the display mode of the checkbox. Note that each row of the repeater has a unique function defined by the dropdownlist ClientId. If the field type is "Note", then the checkbox should be invisible, otherwise visible.

Dim strFieldTypes As String
strFieldTypes = "<script language='javascript'> " & _
"function " & ddlFieldTypes.ClientID & "_SelectedIndexChanged()" & _
"{" & _
"var ftype = document.getElementById('" & ddlFieldTypes.ClientID & "');" & _
"var fname = ftype.options[ftype.selectedIndex].text;" & _
"var fsort1 = document.getElementById('" & chkSortField1.ClientID & "');" & _
"if (fname=='Note') {" & _
"fsort1.style.display = 'none';" & _
"} else {" & _
"fsort1.style.display = 'inline';" & _
"}" & _
"return true;" & _
"}" & _
"</script>"
' Register the startup script
If Not Page.IsStartupScriptRegistered(ddlFieldTypes.ClientID) Then
Page.RegisterStartupScript(ddlFieldTypes.ClientID, strFieldTypes)
End If

' Add the function to the dropdownlist onchange event.
ddlFieldTypes.Attributes.Add("onchange", "return " & ddlFieldTypes.ClientID & "_SelectedIndexChanged();")

THANKS!
Larry
 
Sorry, I forgot to mention that I'm initializing each row of the repeater depending on whether the field type is Note or not:

If it's Note:
chkSortField1.Style.Add("display", "none")
otherwise:
chkSortField1.Style.Add("display", "inline")

If I do NOT initialize the checkboxes as above, everything works fine except that the checkbox is visible initially on the rows with "Note" selected. Making another selection and then reselecting "Note" causes the checkbox to become invisibie.

If I DO initialize the checkboxes, then they are properly invisible on the "Note" rows initially, but they don't become visible when selecting something else. I put an alert in the javascript code to ensure that the proper code is firing. It is, but it's simply ignoring the style.display = "inline". It's remaining as thought it's "none".




 
Can you display the HTML that is created by your ASP.NET code?

I don't know hardly anything about asp.net, and I have a feeling that we could see what is happening when viewing the HTML source code.

[monkey][snake] <.
 
Do you really want to see all this?? lol, okay, here's what I get from View Source. Two things: First, in my sample above I removed two of the checkboxes for simplicity. The other two are chkSortField2 and chkDescending. Second, this is being run from SharePoint - so the ClientId's may look strange.

If this is not what you meant by the HTML source code, then I can show you the HTML from asp.net. However, asp.net divides the code into two parts - the HTML page and the code-behind page. I'm not sure seeing those parts would be any more useful. Here's the source:

<!-- _lcid="1033" _version="11.0.5510" _dal="1" -->
<!-- _LocalBinding -->

<html dir="ltr" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice">
<HEAD>
<META Name="GENERATOR" Content="Microsoft SharePoint">
<META Name="ProgId" Content="SharePoint.WebPartPage.Document">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META Name="CollaborationServer" Content="SharePoint Team Web Site">
<META HTTP-EQUIV="Expires" content="0">

<Title ID=onetidTitle>Home - Tab Maintenance</Title>
<script src="/_layouts/1033/owsbrows.js"></script>
<Link REL="stylesheet" Type="text/css" HREF="/_layouts/1033/styles/ows.css">
<!--mstheme-->
<META Name="Microsoft Theme" Content="default">
<META Name="Microsoft Border" Content="none">
<script><!--
if (browseris.mac && !browseris.ie5up)
{
var ms_maccssfpfixup = "/_layouts/1033/styles/owsmac.css";
document.write("<link rel='stylesheet' Type='text/css' href='" + ms_maccssfpfixup + "'>");
}
//--></script>
<style>
v\:* { behavior: url(#default#VML) }
o\:* { behavior: url(#default#VML) }
.shape { behavior: url(#default#VML) }
</style>
<link type="text/xml" rel='alternate' href="_vti_bin/spdisco.aspx" />
</HEAD>
<body marginwidth="0" marginheight="0" scroll="yes">
<script>
var navBarHelpOverrideKey = "wssmain";
</script>
<table class="ms-main" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
<!-- Banner -->
<TR>
<TD COLSPAN=3 WIDTH=100%>
<!--Top bar-->
<table class="ms-bannerframe" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td nowrap valign="middle"><img ID=onetidHeadbnnr0 alt="Logo" src="/_layouts/images/logo.gif"></td>
<td class=ms-banner width=99% nowrap ID="HBN100" valign="middle">
<!--webbot bot="Navigation"
S-Type="sequence"
S-Orientation="horizontal"
S-Rendering="html"
S-Btn-Nml="<a ID='onettopnavbar#LABEL_ID#' href='#URL#' accesskey='J'>#LABEL#</a>"
S-Btn-Sel="<a ID='onettopnavbar#LABEL_ID#' href='#URL#' accesskey='J'>#LABEL#</a>"
S-Btn-Sep="&amp;nbsp;&amp;nbsp;&amp;nbsp;"
B-Include-Home="FALSE"
B-Include-Up="FALSE"
S-Btn-Nobr="FALSE"
U-Page="sid:1002"
S-Target startspan -->
<a ID='onettopnavbar1002-0' href='/sites/laadmin/tabmaint/default.aspx' accesskey='J'>Home</a>&nbsp;&nbsp;&nbsp;<a ID='onettopnavbar1002-1' href='/sites/laadmin/tabmaint/_layouts/1033/viewlsts.aspx' accesskey='J'>Documents and Lists</a>&nbsp;&nbsp;&nbsp;<a ID='onettopnavbar1002-2' href='/sites/laadmin/tabmaint/_layouts/1033/create.aspx' accesskey='J'>Create</a>&nbsp;&nbsp;&nbsp;<a ID='onettopnavbar1002-3' href='/sites/laadmin/tabmaint/_layouts/1033/settings.aspx' accesskey='J'>Site Settings</a>&nbsp;&nbsp;&nbsp;<a ID='onettopnavbar1002-4' href='javascript:HelpWindowKey(&quot;NavBarHelpHome&quot;)' accesskey='J'>Help</a>
<!--webbot bot="Navigation" endspan -->
</td>
<td class=ms-banner>&nbsp;&nbsp;</td>
<td nowrap class=ms-banner style="padding-right: 7px">
<a id="onetidPortalConn" href="/sites/laadmin"><nobr>Up to Legal Affairs Admin</nobr></a>
</td>
</tr>
</table>
</TD>
</TR>
<!-- Title -->
<tr> <td colspan=3 class="ms-titleareaframe"> <div class="ms-titleareaframe"> <table width=100% border=0 class="ms-titleareaframe" cellpadding=0 cellspacing=0> <tr> <td style="padding-bottom: 0px"> <table style="padding-top: 0px;padding-left: 2px" cellpadding=0 cellspacing=0 border=0> <tr> <td align=center nowrap style="padding-top: 4px" width="132" height="46"> <img ID=onetidtpweb1 src="_layouts/images/HOME3.gif" alt="Icon" height="49" width="49"> </td> <td><IMG SRC="/_layouts/images/blank.gif" width=22 height=1 alt=""></td> <td nowrap width="100%" style="padding-top: 0px"> <table cellpadding=0 cellspacing=0> <tr> <td nowrap class="ms-titlearea"> Tab Maintenance </td> </tr> <tr> <td ID=onetidPageTitle class="ms-pagetitle">Home<!-- --></td> </tr> </table> </td> <td align=right valign=top> <table cellpadding=0 cellspacing=0 height=100%> <tr> <td class='ms-searchcorner'><img src='/_layouts/images/blank.gif' width=6px alt='/></td><td nowrap height=32 ID=onetidSearch colspan=2 class='ms-searchform'><form name='frmSiteSearch' method='post' class='ms-searchform' action=' src='/_layouts/images/blank.gif' width=2px alt='/><img src='/_layouts/images/magnify.gif' alt=' style='vertical-align: 3'><img src='/_layouts/images/blank.gif' width=4px alt='/><INPUT Type=TEXT id='idSearchString' size=25 style='vertical-align: 3' name='SearchString' display='inline' maxlength=255 ACCESSKEY=S class='ms-searchbox' title='Search this site'><img src='/_layouts/images/blank.gif' width=4px alt='/></form></td><td class='ms-searchform'><a target='_self' href='javascript:' onClick="javascript:SubmitSearchRedirect('tabmaint/_layouts/1033/searchresults.aspx');javascript:return false;" title='Go' ACCESSKEY=O ID=onetIDGoSearch><img border='0' src='/_layouts/images/gosearch.gif' style='vertical-align: 1'></a>&nbsp;<br></td><td class='ms-searchform'>&nbsp;</td> </tr> <tr style="padding-right:1px"><td colspan=5 nowrap style="padding-bottom: 3px; padding-top: 1px; vertical-align: bottom" align=right class="ms-vb"> <span class='ms-SPLink'> <span class='ms-HoverCellInActive' onmouseover="this.className='ms-HoverCellActive'"; onmouseout="this.className='ms-HoverCellInActive'"> <a style='cursor:hand' title="Change Web Parts in shared view. These changes will apply to all users." tabindex="0" accesskey="\" id="ModifyPageLink" onkeydown="MSOMenu_KeyboardClick(this, 13, 40)" onclick="MSOWebPartPage_OpenMenu(MSOMenu_SettingsMenu, this);" >Modify Shared Page<img align="absbottom" src="/_layouts/images/menudark.gif" alt="Change Web Parts in shared view. These changes will apply to all users." /></a> </span> </span> &nbsp; </td></tr> </table> </td> </tr> </table> <table cellpadding=0 cellspacing=0 border=0 width=100%> <tr> <td class="ms-titlearealine" height=1 colspan=5><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td> </tr> </table> </td> </tr> </table> </div> </td> </tr>
<tr valign=top height=100%>
<!-- Navigation -->
<TD id="webpartpagenavbar" widthchange="175" height=100% class=ms-nav>
<table height=100% border=0 cellpadding=2 cellspacing=0 class=ms-navframe>
<tr>
<td valign=top id="onetidWatermark" class="ms-navwatermark" style="padding-top: 4px;padding-right: 0px;" dir="ltr">
<!--[if gte vml 1]><v:shapetype id="_x0000_t136"
coordsize="21600,21600" o:spt="136" adj="10800" path="m@7,l@8,m@5,21600l@6,21600e">
<v:formulas>
<v:f eqn="sum #0 0 10800"/>
<v:f eqn="prod #0 2 1"/>
<v:f eqn="sum 21600 0 @1"/>
<v:f eqn="sum 0 0 @2"/>
<v:f eqn="sum 21600 0 @3"/>
<v:f eqn="if @0 @3 0"/>
<v:f eqn="if @0 21600 @1"/>
<v:f eqn="if @0 0 @2"/>
<v:f eqn="if @0 @4 21600"/>
<v:f eqn="mid @5 @6"/>
<v:f eqn="mid @8 @5"/>
<v:f eqn="mid @7 @8"/>
<v:f eqn="mid @6 @7"/>
<v:f eqn="sum @6 0 @5"/>
</v:formulas>
<v:path textpathok="t" o:connecttype="custom" o:connectlocs="@9,0;@10,10800;@11,21600;@12,10800"
o:connectangles="270,180,90,0"/>
<v:textpath on="t" fitshape="t"/>
<v:handles>
<v:h position="#0,bottomRight" xrange="6629,14971"/>
</v:handles>
<o:lock v:ext="edit" text="t" shapetype="t"/>
</v:shapetype>
<v:shape id="navWatermark" type="#_x0000_t136" style='width:139pt;
height:17.25pt;rotation:-90' fillcolor="#cbdbf8;" stroked="f">



<v:textpath style='font-family:"Arial";font-size:18pt;font-weight:bold;
v-text-spacing:2;v-text-spacing-mode:tightening' string="Quick Launch"/>






</v:shape><![endif]-->
<script>
if (browseris.ie5up && document.all("navWatermark") && document.all("onetidWatermark")) {
document.all("navWatermark").fillcolor=document.all("onetidWatermark").currentStyle.color;
}
</script>
</td>
<td valign=top style="padding-top: 8px;padding-right: 0px;padding-left: 0px">
<TABLE CELLPADDING=1 cellspacing=0 BORDER=0 width=126px style="margin-right: 3px">
<TR><TD class="ms-navheader"><A HREF="_layouts/1033/viewlsts.aspx?BaseType=1">Documents</A></TD></TR>
<TR><TD style="height: 6px"><!--webbot bot="Navigation" S-Btn-Nobr="FALSE" S-Type="sequence" S-Rendering="html" S-Orientation="Vertical" B-Include-Home="FALSE" B-Include-Up="FALSE" U-Page="sid:1004" S-Bar-Pfx="<table border=0 cellpadding=4 cellspacing=0>" S-Bar-Sfx="</table>" S-Btn-Nml="<tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td><img src='_layouts/images/blank.gif' ID='100' alt='Icon' border=0>&amp;nbsp;</td><td valign=top><a ID=onetleftnavbar#LABEL_ID# href='#URL#'>#LABEL#</td></tr></table></td></tr>" S-Target TAG="BODY" startspan --><!--webbot bot="Navigation" endspan --></TD></TR>
<TR><TD class="ms-navheader"><A HREF="_layouts/1033/viewlsts.aspx?BaseType=1&ListTemplate=109">Pictures</A></TD></TR>
<TR><TD style="height: 6px"><!--webbot bot="Navigation" S-Btn-Nobr="FALSE" S-Type="sequence" S-Rendering="html" S-Orientation="Vertical" B-Include-Home="FALSE" B-Include-Up="FALSE" U-Page="sid:1005" S-Bar-Pfx="<table border=0 cellpadding=4 cellspacing=0>" S-Bar-Sfx="</table>" S-Btn-Nml="<tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td><img src='_layouts/images/blank.gif' ID='100' alt='Icon' border=0>&amp;nbsp;</td><td valign=top><a ID=onetleftnavbar#LABEL_ID# href='#URL#'>#LABEL#</td></tr></table></td></tr>" S-Target TAG="BODY" startspan --><!--webbot bot="Navigation" endspan --></TD></TR>
<TR><TD class="ms-navheader"><A HREF="_layouts/1033/viewlsts.aspx?BaseType=0">Lists</A></TD></TR>
<TR><TD style="height: 6px"><!--webbot bot="Navigation" S-Btn-Nobr="FALSE" S-Type="sequence" S-Rendering="html" S-Orientation="Vertical" B-Include-Home="FALSE" B-Include-Up="FALSE" U-Page="sid:1003" S-Bar-Pfx="<table border=0 cellpadding=4 cellspacing=0>" S-Bar-Sfx="</table>" S-Btn-Nml="<tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td><img src='_layouts/images/blank.gif' ID='100' alt='Icon' border=0>&amp;nbsp;</td><td valign=top><a ID=onetleftnavbar#LABEL_ID# href='#URL#'>#LABEL#</td></tr></table></td></tr>" S-Target TAG="BODY" startspan --><!--webbot bot="Navigation" endspan --></TD></TR>
<TR><TD class="ms-navheader"><A HREF="_layouts/1033/viewlsts.aspx?BaseType=3">Discussions</A></TD></TR>
<TR><TD style="height: 6px"><!--webbot bot="Navigation" S-Btn-Nobr="FALSE" S-Type="sequence" S-Rendering="html" S-Orientation="Vertical" B-Include-Home="FALSE" B-Include-Up="FALSE" U-Page="sid:1006" S-Bar-Pfx="<table border=0 cellpadding=4 cellspacing=0>" S-Bar-Sfx="</table>" S-Btn-Nml="<tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td><img src='_layouts/images/blank.gif' ID='100' alt='Icon' border=0>&amp;nbsp;</td><td valign=top><a ID=onetleftnavbar#LABEL_ID# href='#URL#'>#LABEL#</td></tr></table></td></tr>" S-Target TAG="BODY" startspan --><!--webbot bot="Navigation" endspan --></TD></TR>
<TR><TD class="ms-navheader"><A HREF="_layouts/1033/viewlsts.aspx?BaseType=4">Surveys</A></TD></TR>
<TR><TD style="height: 6px"><!--webbot bot="Navigation" S-Btn-Nobr="FALSE" S-Type="sequence" S-Rendering="html" S-Orientation="Vertical" B-Include-Home="FALSE" B-Include-Up="FALSE" U-Page="sid:1007" S-Bar-Pfx="<table border=0 cellpadding=4 cellspacing=0>" S-Bar-Sfx="</table>" S-Btn-Nml="<tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td><img src='_layouts/images/blank.gif' ID='100' alt='Icon' border=0>&amp;nbsp;</td><td valign=top><a ID=onetleftnavbar#LABEL_ID# href='#URL#'>#LABEL#</td></tr></table></td></tr>" S-Target TAG="BODY" startspan --><!--webbot bot="Navigation" endspan --></TD></TR>
<TR><TD style="padding-left:0px;padding-right:0px"><img width=1px src='/_layouts/images/blank.gif' ID='100' alt='Icon' border=0></TD></TR>
</table>
</td>
</tr>
</table>
</TD>
<!-- Contents -->
<td><IMG SRC="/_layouts/images/blank.gif" width=5 height=1 alt=""></td>
<td class="ms-bodyareaframe" valign="top" style="width:100%">
<form name="_ctl12" method="post" action="default.aspx" id="_ctl12">
<input type="hidden" name="MSOTlPn_ShowSettings" value="False" />
<input type="hidden" name="__REQUESTDIGEST" value="0xDA2FF095F3A9DD58C861B93872CD92FB,26 Apr 2007 14:37:50 -0000" />
<input type="hidden" name="MSOTlPn_SelectedWpId" value="" />
<input type="hidden" name="MSOTlPn_Button" value="none" />
<input type="hidden" name="MSOGallery_FilterString" value="" />
<input type="hidden" name="MSOWebPartPage_PostbackSource" value="" />
<input type="hidden" name="MSOLayout_InDesignMode" value="" />
<input type="hidden" name="MSOWebPartPage_Shared" value="" />
<input type="hidden" name="MSO_PageHashCode" value="-1148701241" />
<input type="hidden" name="MSOLayout_LayoutChanges" value="" />
<input type="hidden" name="MSOGallery_SelectedLibrary" value="" />
<input type="hidden" name="MSOTlPn_View" value="0" />
<input type="hidden" name="__VIEWSTATE" value="dDwtMTI2MzIwMjYzNjt0PDtsPGk8MTM+Oz47bDx0PDtsPGkkRlbGV0ZTs+
Ph6UGYE20rTc/UTvzj/C/AKI8BLN" />
<SCRIPT language='javascript' src='/_layouts/1033/owsbrows.js'></SCRIPT>

<script> var MSOWebPartPageFormName = '_ctl12';</script>

<SCRIPT language='javascript' src='/_layouts/1033/ows.js'></SCRIPT>

<script language='javascript'>
<!--
function MSOTlPn_ShowToolPaneWrapper(toolPaneView, source)
{
document.forms['_ctl12'].MSOWebPartPage_PostbackSource.value=source;
if( arguments[2] == null ) MSOTlPn_ShowToolPane(toolPaneView);
else MSOTlPn_ShowToolPane(toolPaneView, arguments[2]);
}
//-->
</script>


<SCRIPT language='javascript' src='/_layouts/1033/msstring.js'></SCRIPT>

<script language='javascript'>
<!--
function MSOTlPn_ShowToolPane(toolPaneView)
{
if (document.forms['_ctl12'].MSOGallery_FilterVisible) document.forms['_ctl12'].MSOGallery_FilterVisible.value = 'false';
document.forms['_ctl12'].MSOTlPn_View.value = toolPaneView;
if (arguments.length > 1) document.forms['_ctl12'].MSOTlPn_SelectedWpId.value = arguments[1];
else document.forms['_ctl12'].MSOTlPn_SelectedWpId.value = ';
document.forms['_ctl12'].submit();
}
//-->
</script>


<SCRIPT LANGUAGE='JavaScript' >
<!--
//-->
</SCRIPT>

<link href="/_layouts/1033/styles/Menu.css" rel="stylesheet"/><style type="text/css">
.ms-SrvMenuUI { behavior:url("/_layouts/1033/Menu.htc"); }
</style><script src="/_layouts/1033/Menu.js" type="text/JavaScript" language="JavaScript"></script><script type="text/JavaScript" language="JavaScript">
<!--
var L_Menu_BaseUrl="var L_Menu_LCID="1033";
var L_Menu_SiteTheme="";
//-->
</script>

<SCRIPT language='javascript' src='/_layouts/1033/ie55up.js'></SCRIPT>


<table style="margin-top: 4px" cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td class="ms-descriptiontext" valign="top" colspan=4>

</td>
</tr>

<tr>
<td valign="top" colspan=4>
<!-- Top Zone -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="MSOZoneCell_WebPartWPQ1" vAlign="top"><table TOPLEVEL border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr class="ms-WPHeader">
<td accesskey="W" tabindex="0" title="Tab Control Maintenance - The SmartPart User Control Webpart with a dropdown list." id="WebPartTitleWPQ1" style="width:100%;"><div class="ms-WPTitle"><nobr><span>Tab Control Maintenance</span><span id="WebPartCaptionWPQ1"></span></nobr></div></td><td align="right" onkeydown="MSOMenu_KeyboardClick(WebPartWPQ1_MenuLink, 13, 40)" style="width:10px;padding-right:2px"><a onclick="MSOWebPartPage_OpenMenu(MSOMenu_WebPartMenu, this, WebPartWPQ1,'False');" id="WebPartWPQ1_MenuLink" style="cursor:hand;"><img src="/_layouts/images/Menu1.gif" tabindex="0" class="ms-HoverCellInActive" onmouseout="this.className='ms-HoverCellInActive'" onmouseover="this.className='ms-HoverCellActiveDark'" border="0" align="absmiddle" title="Web Part Menu" alt="Web Part Menu" /></a></td>
</tr>
</table></td>
</tr><tr>
<td class="" valign="top"><div WebPartID="b4634733-8f8a-4b8c-945e-dce9288b8184" HasPers="false" id="WebPartWPQ1" width="100%" class="ms-WPBody" allowDelete="false" style="" >
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD colSpan="2"></TD>
</TR>
<TR>
<TD bgColor="#c3d4e6" colSpan="2" height="2"></TD>
</TR>
<TR>
<TD colSpan="2" height="20"></TD>
</TR>
<TR>
<TD colSpan="2" height="25">&nbsp;<span id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_lblTabBinName" style="width:70px;">Tab Name:</span>&nbsp;&nbsp;<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:txtTabBinName" type="text" value="new tab" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_txtTabBinName" title="Enter tab name" style="width:376px;" /></TD>
</TR>
<TR>
<TD width="100%" height="25">
<table id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_tblFields" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<TD valign="top" align="left" width="100%">
<table border="1">
<tr bgcolor="#ffcc99">
<td width="160"><b>Field Name</b></td>
<td width="200"><b>Description</b></td>
<td width="160"><b>Field Type</b></td>
<td width="60"><b>View</b></td>
<td width="60"><b>Require</b></td>
<td width="100"><b>Sort Order<br />
&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;Desc</b></td>
<td width="16" align="center"><b>X</b></td>
</tr>
</table>

<table border="1">
<tr bgcolor="#ffcccc">
<td width="160">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl1:txtFieldName" type="text" value="Edit" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl1_txtFieldName" disabled="disabled" onblur="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl1_txtFieldName_LostFocus()" style="width:150px;" />
</td>
<td width="200">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl1:txtFieldDesc" type="text" value="Edit" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl1_txtFieldDesc" disabled="disabled" style="width:190px;" />
</td>
<td width="160">
<select name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl1:ddlFieldType" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl1_ddlFieldType" disabled="disabled" onchange="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl1_
ddlFieldType_SelectedIndexChanged();" style="height:28px;width:150px;">
<option value="1">Integer</option>
<option value="2">Text</option>
<option value="3">Note</option>
<option value="4">DateTime</option>
<option value="5">Counter</option>
<option value="6">Choice</option>
<option value="7">Lookup</option>
<option value="8">Boolean</option>
<option value="9">Number</option>
<option value="10">Currency</option>
<option value="11">URL</option>
<option selected="selected" value="12">Computed</option>
<option value="13">Threading</option>
<option value="14">Guid</option>
<option value="15">MultiChoice</option>
<option value="16">GridChoice</option>
<option value="17">Calculated</option>
<option value="18">File</option>
<option value="19">Attachments</option>
<option value="20">User</option>
<option value="21">Recurrence</option>
<option value="22">CrossProjectLink</option>
<option value="23">ModStat</option>
<option value="24">Error</option>
<option value="25">MaxItems</option>

</select>
</td>
<td width="60">
<span disabled="disabled" style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl1_chkDefaultView" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl1:chkDefaultView" checked="checked" disabled="disabled" /></span>
</td>
<td width="60">
<span disabled="disabled" style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl1_chkRequired" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl1:chkRequired" checked="checked" disabled="disabled" /></span>
</td>
<td width="100">
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl1_chkSortField1" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl1:chkSortField1" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl1_chkSortField1_CheckedChanged()" /></span>&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl1_chkSortField2" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl1:chkSortField2" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl1_chkSortField2_CheckedChanged()" /></span>&nbsp;&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl1_chkDescending" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl1:chkDescending" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl1_chkDescending_CheckedChanged()" /></span>
</td>
<td align="center" width="16" valign="middle" height="20">


</td>
</tr>
</table>

<table border="1">
<tr bgcolor="#ffcccc">
<td width="160">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl2:txtFieldName" type="text" value="Contracting Party" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_
rptrFields__ctl2_txtFieldName" disabled="disabled" onblur="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl2_txtFieldName_LostFocus()" style="width:150px;" />
</td>
<td width="200">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl2:txtFieldDesc" type="text" value="Contracting Party" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl2_txtFieldDesc" disabled="disabled" style="width:190px;" />
</td>
<td width="160">
<select name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl2:ddlFieldType" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl2_ddlFieldType" disabled="disabled" onchange="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl2_
ddlFieldType_SelectedIndexChanged();" style="height:28px;width:150px;">
<option value="1">Integer</option>
<option value="2">Text</option>
<option value="3">Note</option>
<option value="4">DateTime</option>
<option value="5">Counter</option>
<option value="6">Choice</option>
<option value="7">Lookup</option>
<option value="8">Boolean</option>
<option value="9">Number</option>
<option value="10">Currency</option>
<option value="11">URL</option>
<option selected="selected" value="12">Computed</option>
<option value="13">Threading</option>
<option value="14">Guid</option>
<option value="15">MultiChoice</option>
<option value="16">GridChoice</option>
<option value="17">Calculated</option>
<option value="18">File</option>
<option value="19">Attachments</option>
<option value="20">User</option>
<option value="21">Recurrence</option>
<option value="22">CrossProjectLink</option>
<option value="23">ModStat</option>
<option value="24">Error</option>
<option value="25">MaxItems</option>

</select>
</td>
<td width="60">
<span disabled="disabled" style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl2_chkDefaultView" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl2:chkDefaultView" checked="checked" disabled="disabled" /></span>
</td>
<td width="60">
<span disabled="disabled" style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl2_chkRequired" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl2:chkRequired" checked="checked" disabled="disabled" /></span>
</td>
<td width="100">
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl2_chkSortField1" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl2:chkSortField1" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl2_chkSortField1_CheckedChanged()" /></span>&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl2_chkSortField2" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl2:chkSortField2" checked="checked" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl2_chkSortField2_CheckedChanged()" /></span>&nbsp;&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__
ctl0_rptrFields__ctl2_chkDescending" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:
_ctl0:rptrFields:_ctl2:chkDescending" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_
rptrFields__ctl2_chkDescending_CheckedChanged()" /></span>
</td>
<td align="center" width="16" valign="middle" height="20">


</td>
</tr>
</table>

<table border="1">
<tr bgcolor="#ffcccc">
<td width="160">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_
ctl0:rptrFields:_ctl3:txtFieldName" type="text" value="Effective Date" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl3_
txtFieldName" disabled="disabled" onblur="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl3_
txtFieldName_LostFocus()" style="width:150px;" />
</td>
<td width="200">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl3:txtFieldDesc" type="text" value="Effective Date" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl3_txtFieldDesc" disabled="disabled" style="width:190px;" />
</td>
<td width="160">
<select name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl3:ddlFieldType" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl3_ddlFieldType" disabled="disabled" onchange="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl3_ddlFieldType_
SelectedIndexChanged();" style="height:28px;width:150px;">
<option value="1">Integer</option>
<option value="2">Text</option>
<option value="3">Note</option>
<option selected="selected" value="4">DateTime</option>
<option value="5">Counter</option>
<option value="6">Choice</option>
<option value="7">Lookup</option>
<option value="8">Boolean</option>
<option value="9">Number</option>
<option value="10">Currency</option>
<option value="11">URL</option>
<option value="12">Computed</option>
<option value="13">Threading</option>
<option value="14">Guid</option>
<option value="15">MultiChoice</option>
<option value="16">GridChoice</option>
<option value="17">Calculated</option>
<option value="18">File</option>
<option value="19">Attachments</option>
<option value="20">User</option>
<option value="21">Recurrence</option>
<option value="22">CrossProjectLink</option>
<option value="23">ModStat</option>
<option value="24">Error</option>
<option value="25">MaxItems</option>

</select>
</td>
<td width="60">
<span disabled="disabled" style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl3_chkDefaultView" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl3:chkDefaultView" checked="checked" disabled="disabled" /></span>
</td>
<td width="60">
<span disabled="disabled" style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl3_chkRequired" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl3:chkRequired" checked="checked" disabled="disabled" /></span>
</td>
<td width="100">
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl3_chkSortField1" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl3:chkSortField1" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_
rptrFields__ctl3_chkSortField1_CheckedChanged()" /></span>&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl3_chkSortField2" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_
ctl0:rptrFields:_ctl3:chkSortField2" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl3_chkSortField2_CheckedChanged()" /></span>&nbsp;&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_
rptrFields__ctl3_chkDescending" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl3:chkDescending" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl3_
chkDescending_CheckedChanged()" /></span>
</td>
<td align="center" width="16" valign="middle" height="20">


</td>
</tr>
</table>

<table border="1">
<tr bgcolor="#ffcccc">
<td width="160">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl4:txtFieldName" type="text" value="Expiration Date" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl4
_txtFieldName" disabled="disabled" onblur="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_txtFieldName_LostFocus()" style="width:150px;" />
</td>
<td width="200">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_
ctl0:rptrFields:_ctl4:txtFieldDesc" type="text" value="Expiration Date" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_
rptrFields__ctl4_txtFieldDesc" disabled="disabled" style="width:190px;" />
</td>
<td width="160">
<select name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_ctl4:ddlFieldType" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl4_ddlFieldType" disabled="disabled" onchange="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_ddlFieldType_SelectedIndexChanged();" style="height:28px;width:150px;">
<option value="1">Integer</option>
<option value="2">Text</option>
<option value="3">Note</option>
<option selected="selected" value="4">DateTime</option>
<option value="5">Counter</option>
<option value="6">Choice</option>
<option value="7">Lookup</option>
<option value="8">Boolean</option>
<option value="9">Number</option>
<option value="10">Currency</option>
<option value="11">URL</option>
<option value="12">Computed</option>
<option value="13">Threading</option>
<option value="14">Guid</option>
<option value="15">MultiChoice</option>
<option value="16">GridChoice</option>
<option value="17">Calculated</option>
<option value="18">File</option>
<option value="19">Attachments</option>
<option value="20">User</option>
<option value="21">Recurrence</option>
<option value="22">CrossProjectLink</option>
<option value="23">ModStat</option>
<option value="24">Error</option>
<option value="25">MaxItems</option>

</select>
</td>
<td width="60">
<span disabled="disabled" style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_chkDefaultView" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl4:chkDefaultView" checked="checked" disabled="disabled" /></span>
</td>
<td width="60">
<span disabled="disabled" style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_chkRequired" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl4:chkRequired" checked="checked" disabled="disabled" /></span>
</td>
<td width="100">
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_chkSortField1" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl4:chkSortField1" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_chkSortField1_CheckedChanged()" /></span>&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_chkSortField2" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl4:chkSortField2" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_chkSortField2_CheckedChanged()" /></span>&nbsp;&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_chkDescending" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl4:chkDescending" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl4_chkDescending_CheckedChanged()" /></span>
</td>
<td align="center" width="16" valign="middle" height="20">


</td>
</tr>
</table>

<table border="1">
<tr bgcolor="#ffcccc">
<td width="160">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:txtFieldName" type="text" value="nother field" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_txtFieldName" onblur="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_txtFieldName_LostFocus()" style="width:150px;" />
</td>
<td width="200">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:txtFieldDesc" type="text" value="nother field ta show" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_txtFieldDesc" style="width:190px;" />
</td>
<td width="160">
<select name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:ddlFieldType" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_ddlFieldType" onchange="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl5_
ddlFieldType_SelectedIndexChanged();" style="height:28px;width:150px;">
<option value="1">Integer</option>
<option value="2">Text</option>
<option selected="selected" value="3">Note</option>
<option value="4">DateTime</option>
<option value="5">Counter</option>
<option value="6">Choice</option>
<option value="7">Lookup</option>
<option value="8">Boolean</option>
<option value="9">Number</option>
<option value="10">Currency</option>
<option value="11">URL</option>
<option value="12">Computed</option>
<option value="13">Threading</option>
<option value="14">Guid</option>
<option value="15">MultiChoice</option>
<option value="16">GridChoice</option>
<option value="17">Calculated</option>
<option value="18">File</option>
<option value="19">Attachments</option>
<option value="20">User</option>
<option value="21">Recurrence</option>
<option value="22">CrossProjectLink</option>
<option value="23">ModStat</option>
<option value="24">Error</option>
<option value="25">MaxItems</option>

</select>
</td>
<td width="60">
<span style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_chkDefaultView" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:chkDefaultView" checked="checked" /></span>
</td>
<td width="60">
<span style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_chkRequired" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:chkRequired" checked="checked" /></span>
</td>
<td width="100">
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_chkSortField1" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:chkSortField1" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl5_
chkSortField1_CheckedChanged()" /></span>&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_chkSortField2" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:chkSortField2" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl5_
chkSortField2_CheckedChanged()" /></span>&nbsp;&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_chkDescending" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:chkDescending" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl5_
chkDescending_CheckedChanged()" /></span>
</td>
<td align="center" width="16" valign="middle" height="20">
<input type="image" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl5:ibtnDelete" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl5_ibtnDelete" title="Delete selected field." src=" alt="" border="0" style="height:16px;width:16px;" />

</td>
</tr>
</table>

<table border="1">
<tr bgcolor="#ffcccc">
<td width="160">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:txtFieldName" type="text" value="dad" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
txtFieldName" onblur="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
txtFieldName_LostFocus()" style="width:150px;" />
</td>
<td width="200">
<input name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:txtFieldDesc" type="text" value="dad" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
txtFieldDesc" style="width:190px;" />
</td>
<td width="160">
<select name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:ddlFieldType" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl6_ddlFieldType" onchange="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
ddlFieldType_SelectedIndexChanged();" style="height:28px;width:150px;">
<option value="1">Integer</option>
<option selected="selected" value="2">Text</option>
<option value="3">Note</option>
<option value="4">DateTime</option>
<option value="5">Counter</option>
<option value="6">Choice</option>
<option value="7">Lookup</option>
<option value="8">Boolean</option>
<option value="9">Number</option>
<option value="10">Currency</option>
<option value="11">URL</option>
<option value="12">Computed</option>
<option value="13">Threading</option>
<option value="14">Guid</option>
<option value="15">MultiChoice</option>
<option value="16">GridChoice</option>
<option value="17">Calculated</option>
<option value="18">File</option>
<option value="19">Attachments</option>
<option value="20">User</option>
<option value="21">Recurrence</option>
<option value="22">CrossProjectLink</option>
<option value="23">ModStat</option>
<option value="24">Error</option>
<option value="25">MaxItems</option>

</select>
</td>
<td width="60">
<span style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl6_chkDefaultView" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:chkDefaultView" /></span>
</td>
<td width="60">
<span style="width:55px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl6_chkRequired" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:chkRequired" checked="checked" /></span>
</td>
<td width="100">
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl6_chkSortField1" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:chkSortField1" checked="checked" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
chkSortField1_CheckedChanged()" /></span>&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
chkSortField2" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:chkSortField2" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
chkSortField2_CheckedChanged()" /></span>&nbsp;&nbsp;
<span style="width:20px;"><input id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
chkDescending" type="checkbox" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:chkDescending" checked="checked" onclick="return Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
chkDescending_CheckedChanged()" /></span>
</td>
<td align="center" width="16" valign="middle" height="20">
<input type="image" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:rptrFields:_
ctl6:ibtnDelete" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__
ctl6_ibtnDelete" title="Delete selected field." src=" alt="" border="0" style="height:16px;width:16px;" />

</td>
</tr>
</table>

</TD>
</tr>
</table>

<input type="submit" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:btnAddField" value="Add Field" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_btnAddField" style="width:70px;" /></TD>
<td vAlign="bottom" align="left" width="100%">&nbsp;</td>
<TR>
<TD bgColor="#c3d4e6" colSpan="2" height="2"></TD>
</TR>
<TR>
<TD vAlign="bottom" colSpan="2" height="50">&nbsp;&nbsp;<input type="submit" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:btnAdd" value="Save" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_btnAdd" title="Add a new tab" style="width:70px;" />&nbsp;
<input type="submit" name="Top:g_b4634733_8f8a_4b8c_945e_dce9288b8184:_ctl0:btnEdit" value="Cancel" id="Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_btnEdit" title="Change the current tab" style="width:70px;" />&nbsp;
&nbsp;
&nbsp;
</TD>
</TR>
<TR>
<TD bgColor="#c3d4e6" colSpan="2" height="2"></TD>
</TR>
<TR>
<TD colSpan="2"></TD>
</TR>
</TABLE>
</div></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>

<tr>
<!-- Middle column -->
<td valign="top" width="70%">

&nbsp;
</td>
<td>&nbsp;</td>

<!-- Right column -->
<td valign="top" width="30%">

&nbsp;
</td>
<td>&nbsp;</td>
</tr>

<tr>
<td valign="top" colspan=4>
<!-- Bottom Zone -->

</td>
</tr>

</table>
&nbsp;
<!-- FooterBanner closes the TD, TR, TABLE, BODY, And HTML regions opened above -->
&nbsp;
<script language='javascript'> function Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl6_
txtFieldName_LostFocus(){var fdesc = document.getElementById('Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__
ctl0_rptrFields__
ctl6_txtFieldDesc');var fname = document.getElementById('Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__
ctl0_rptrFields__
ctl6_txtFieldName');if (fdesc.value==') {fdesc.value = fname.value;}return true;}</script>

<script language='javascript'> function Top_g_b4634733_8f8a_4b8c_945e_dce9288b8184__ctl0_rptrFields__ctl5_
txtFieldName_LostFocus(){var fdesc = document.getElementById('Top_g_b463473
 
Your code was too long to post. Perhaps a URL would be better?

On a side note, have you ever considered learning to hand-code HTML & JavaScript? The output from .Net is appalling (generally, so nothing personal!). It has no DOCTYPE, would never validate, is probably less-than accessible, screen-reader or SEO friendly.

Well-formed, well-coded HTML is a joy to read, understand, and work with, and is certainly a whole lot easier for any 3rd-parties to pick up (such as those trying to debug it ;-)).

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
No offense taken!

Because, I want the best of both worlds? I thought I'd never have to learn javascript! Haha! I don't even want to read that mess above.

However, the asp.net html code looks a whole lot cleaner in the IDE, and is much easier to understand. The main reason I started using javascript was to avoid all the annoying post-backs, and also to do client-side work that can't be done from server controls. Unfortunately, I'm working in Sharepoint and I'm not even sure if pure HTML is possible. I've done some pure web parts and Rendering, and it's not something I want to continue doing.

Anyway, I didn't think this would be such a sticky problem. I'm just trying to toggle a checkbox display on and off depending on the selection from a dropdownlist. Like I said, it works fine, unless I initialize the checkbox display to none. The repeater row with the checkboxes set to none initially never toggle. If I add a new row, those checkboxes toggle beautifully.

I thought it might have to do with the fact that I'm initializing the displays using .net code but toggling them using javascript (note that I changed it from a style.add to a style.item):

chkSortField1.Style.Item("display") = "none"

However, I don't know any way to fire javascript outside an event.

Nobody else has encountered this?? I guess I have to live with it! If the user wants to see the checkboxes, they can delete that row and add a new row.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top