Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 23, 2007 02:27 PM by mkCan
Member
187 Points
65 Posts
Jan 22, 2007 07:10 PM|LINK
How can I refresh the second part of my web page. The web page hase two parts:
Part 1- Gridview with AJAX for sorting or page indexing
<atlas:UpdatePanel ID="UpdateGrid" runat="server" Mode="conditional"> <ContentTemplate> <asp:GridView AllowSorting="True" OnSorting="gridView_Sorting" OnSelectedIndexChanged="GridView_SelectedIndexChanged" AllowPaging="True" OnPageIndexChanging="GridView_PageIndexChanging"> </asp:GridView>
</ContentTemplate> </atlas:UpdatePanel>
Part Two:
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0" OnActiveViewChanged="MultiView1_ActiveViewChanged">
<asp:View ID="Tab1" runat="server">
<!-- DETAIL section -->
<asp:TextBox ID="name" runat="server"></asp:TextBox> <asp:TextBox ID="prim" runat="server"></asp:TextBox>
</asp:view> </asp:MultiView>
After sorting or Indexing page with AJAX the program updates name.text and ... without binding.
Is there anyway to refresh the second part. Can I refresh MutiView or View?
Thanks,
MK
Contributor
4755 Points
1139 Posts
Jan 22, 2007 09:26 PM|LINK
Jan 22, 2007 09:48 PM|LINK
Thanks for your reply,
I do not know how can I use trigger. Can you give me an example.
Jan 22, 2007 10:15 PM|LINK
<asp:button id=”btnOutside” runat=”server” text=”I’m a button” />
<asp:UpdatePanel ID="upMinutesTreeView" runat="server" UpdateMode="conditional">
<ContentTemplate>
<div class="toolbar">
<asp:button id=”btnTest” runat=”server” text=”I’m a button” />
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnInside" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="btnOutside" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
There's a sample for ya.
I tell the updatepanel that there are 2 buttons that can force it to do an Update. One is outside the panel, and the other is inside.
The panel will only update if one of those two buttons are clicked (or have the click event raised).
Jan 23, 2007 02:27 PM|LINK
I tried It . But still does not do anything. This my short codes. I can not figure it out. Is there anything wrong with my code.
Thanks.
<atlas:UpdatePanel ID="UpdateGrid" runat="server" Mode="conditional">
</atlas:UpdatePanel>
<!-- second UpdatePanel for Refreshing -->
<atlas:UpdateProgress ID="progress1" runat="server">..... </atlas:UpdateProgress>
<atlas:UpdatePanel ID="UpdatePanel1" runat="server" Mode="conditional">
<
<!-- First View -->
</asp:MultiView>
mkCan
Member
187 Points
65 Posts
refreshing the second part of page.
Jan 22, 2007 07:10 PM|LINK
How can I refresh the second part of my web page. The web page hase two parts:
Part 1- Gridview with AJAX for sorting or page indexing
<atlas:UpdatePanel ID="UpdateGrid" runat="server" Mode="conditional">
<ContentTemplate>
<asp:GridView AllowSorting="True" OnSorting="gridView_Sorting"
OnSelectedIndexChanged="GridView_SelectedIndexChanged"
AllowPaging="True"
OnPageIndexChanging="GridView_PageIndexChanging">
</asp:GridView>
</ContentTemplate>
</atlas:UpdatePanel>
Part Two:
<asp:MultiView
ID="MultiView1"
runat="server"
ActiveViewIndex="0" OnActiveViewChanged="MultiView1_ActiveViewChanged">
<asp:View ID="Tab1" runat="server">
<!-- DETAIL section -->
<asp:TextBox ID="name" runat="server"></asp:TextBox>
<asp:TextBox ID="prim" runat="server"></asp:TextBox>
</asp:view>
</asp:MultiView>
After sorting or Indexing page with AJAX the program updates name.text and ... without binding.
Is there anyway to refresh the second part. Can I refresh MutiView or View?
Thanks,
MK
RTernier
Contributor
4755 Points
1139 Posts
Re: refreshing the second part of page.
Jan 22, 2007 09:26 PM|LINK
My Site | My Examples | My Blog
mkCan
Member
187 Points
65 Posts
Re: refreshing the second part of page.
Jan 22, 2007 09:48 PM|LINK
Thanks for your reply,
I do not know how can I use trigger. Can you give me an example.
Thanks,
MK
RTernier
Contributor
4755 Points
1139 Posts
Re: refreshing the second part of page.
Jan 22, 2007 10:15 PM|LINK
<asp:button id=”btnOutside” runat=”server” text=”I’m a button” />
<asp:UpdatePanel ID="upMinutesTreeView" runat="server" UpdateMode="conditional">
<ContentTemplate>
<div class="toolbar">
<asp:button id=”btnTest” runat=”server” text=”I’m a button” />
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnInside" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="btnOutside" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
There's a sample for ya.
I tell the updatepanel that there are 2 buttons that can force it to do an Update. One is outside the panel, and the other is inside.
The panel will only update if one of those two buttons are clicked (or have the click event raised).
My Site | My Examples | My Blog
mkCan
Member
187 Points
65 Posts
Re: refreshing the second part of page.
Jan 23, 2007 02:27 PM|LINK
I tried It . But still does not do anything. This my short codes. I can not figure it out. Is there anything wrong with my code.
Thanks.
<atlas:UpdateProgress ID="ProgressIndicator" runat="server"> <ProgressTemplate> ..</ProgressTemplate></atlas:UpdateProgress><atlas:UpdatePanel ID="UpdateGrid" runat="server" Mode="conditional">
<ContentTemplate> <asp:GridView AllowSorting="True" ID="SummaryGridView" runat="server" selectedindex="0" OnSorting="gridView_Sorting" OnSelectedIndexChanged="SummaryGridView_SelectedIndexChanged" AllowPaging="True" > <Columns> ....</Columns></asp:GridView></ContentTemplate>
</atlas:UpdatePanel>
<!-- second UpdatePanel for Refreshing -->
<asp:Menu runat="server" OnMenuItemClick="Menu1_MenuItemClick"><Items>..</Items></asp:Menu><atlas:UpdateProgress ID="progress1" runat="server">..... </atlas:UpdateProgress>
<atlas:UpdatePanel ID="UpdatePanel1" runat="server" Mode="conditional">
<ContentTemplate>
<
asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0" OnActiveViewChanged="MultiView1_ActiveViewChanged"><!-- First View -->
<asp:View ID="Tab1" runat="server"> --- </asp:View> <asp:View ID="Tab5" runat="server"> ---</asp:View></asp:MultiView>
</ContentTemplate> <Triggers><atlas:ControlEventTrigger ControlID="SummaryGridView" EventName="PageIndexChanging" /> </Triggers></atlas:UpdatePanel>