I want to set the class for the repeater when doPostBack for this dataID i wan but dun noe can / can not? Below code is only an example:
<body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server" EnablePageMethods="true" /> <asp:UpdatePanel ID="UpdatePanel2" runat="server" > <ContentTemplate> <asp:Repeater ID="Repeater1" runat="server" DataSourceID="dsInbox"> <ItemTemplate> <tr id="trInbox"> <td width="370px" height="25px"><div align="left" class="style95"> <%# DisplaySubject(Eval("inbSubject").ToString(), Eval("inbMsg").ToString())%></div></td> <td width="80px" height="25px"><div align="left" class="style95"> <%# Eval("inbCreatedAt","{0:MM-dd-yyyy}") %></div></td> <td width="94px" height="25px"><div align="left" class="style95"> <%# Eval("DataId") %></div></td> </tr> </ItemTemplate> </asp:Repeater> </ContentTemplate> </asp:UpdatePanel>
for c # code i can create class / style i wan
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { Repeater1.DataBind();
source share