N
Nobody
I have an aspx page where I have a repeater control that repeats a asp:LinkButton. When I click on one of the links, I get a post back, and the page flashes. A friend told me to look into ATLAS/AJAX, but didn't go into much detail.
From what I read/gathered, I came up with this code:
<asp:SqlDataSource ID="dsCategories" runat="server" ConnectionString="<%$ ConnectionStrings:cstrDataSource %>" SelectCommand="SELECT [CategoryID], [Name] FROM [tblCategories] ORDER BY [Name]">
</asp:SqlDataSource>
<asp:Repeater ID="rptCategories" runat="server" DataSourceID="dsCategories">
<ItemTemplate>
<atlas:UpdatePanel ID="pnlCategories" mode="Conditional">
<Content>
<asp:LinkButton ID="lnkCategories" runat="server" Visible="true" Style="font-weight: bold; font-size: 10pt; color: black; font-family: Arial; text-decoration: none"
OnClick="rptCategories_OnClick" Text = '<%# DataBinder.Eval(Container.DataItem, "Name") %>'
/>
<br />
</Content>
<Triggers>
<atlas:ControlEventTrigger ControlID="lnkCategories" EventName="Click"/>
</Triggers>
</atlas:UpdatePanel>
</ItemTemplate>
</asp:Repeater>
so I have a repeater control, and inside the item template, I put the link button inside of an update panel, but this doesn't seem to stop the flashing at all, although it is calling rptCategories_OnClick... what am I doing wrong?
Thanks.
From what I read/gathered, I came up with this code:
<asp:SqlDataSource ID="dsCategories" runat="server" ConnectionString="<%$ ConnectionStrings:cstrDataSource %>" SelectCommand="SELECT [CategoryID], [Name] FROM [tblCategories] ORDER BY [Name]">
</asp:SqlDataSource>
<asp:Repeater ID="rptCategories" runat="server" DataSourceID="dsCategories">
<ItemTemplate>
<atlas:UpdatePanel ID="pnlCategories" mode="Conditional">
<Content>
<asp:LinkButton ID="lnkCategories" runat="server" Visible="true" Style="font-weight: bold; font-size: 10pt; color: black; font-family: Arial; text-decoration: none"
OnClick="rptCategories_OnClick" Text = '<%# DataBinder.Eval(Container.DataItem, "Name") %>'
/>
<br />
</Content>
<Triggers>
<atlas:ControlEventTrigger ControlID="lnkCategories" EventName="Click"/>
</Triggers>
</atlas:UpdatePanel>
</ItemTemplate>
</asp:Repeater>
so I have a repeater control, and inside the item template, I put the link button inside of an update panel, but this doesn't seem to stop the flashing at all, although it is calling rptCategories_OnClick... what am I doing wrong?
Thanks.