Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Here I am Using asp:Update Panel for Repeater Control but it is not working. My Code is
asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Panel ID="pnlDgJobDetailsFound" runat="server" ScrollBars="Auto" Visible="false">
<asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
<HeaderTemplate>
<table border="0" align="center" valign="top" cellpadding="3" cellspacing="1">
</HeaderTemplate>
<ItemTemplate>
<tr>
<td bgcolor="#ffffff" align="center" valign="top">
<table>
<tr>
<td align="left" width="320">
<a href='<%# DataBinder.Eval(Container.DataItem, "ENGID", "moreengagements.aspx?id={0}") %>'>

<b>
<%# DataBinder.Eval(Container.DataItem, "ENGTITLE") %>
</b></a>
</td>
<td align="right" width="300">
<
<%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "PublishingDate")).ToLongDateString() %>
</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left">
<%# DataBinder.Eval(Container.DataItem, "header") %>
. . .
</td>
</tr>
</table>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
<br />
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
The Problem i am facing is when i am clicking on href it will navigate to another page so the page is getting postback. but is there any alternative that my page should navigate but it should not be refreshed.
Posted

Actually when u r redirecting to next page the full page will refresh. we cannot avoid this refresh by using update panel. update panel will help only inside the page.

U add this tag above of html tag,
<meta content="BlendTrans(Duration=0.01)" http-equiv="Page-Exit" />

This will work only in IE.
 
Share this answer
 
Well, what does a requirement mean by allow navigate but don't refresh page?

If you are navigating from one page to other, the whole page needs a re-construct and thus a full postback. You cannot avoid it and it is the way.

You can use update panel to refresh partial portions of the same page only.
 
Share this answer
 
Comments
Vigneshb6 26-Nov-10 6:31am    
I am telling the same thing to my TL.***** Fellow not listening.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900