To Ajaxify it within an update panel, add a Trigger for the Gridview1 object and the PageIndexChanging event.
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
// get rid of the details view
DetailsView1.DataSource = null;
DetailsView1.DataBind();
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.
Thursday, November 29, 2007
How to implement Ajaxified details view hide on PageIndexChanging
Previously I showed how to enable DetailsView with a Select button (link). But here is how to get rid of the DetailsView if Paging is enabled by using the PageIndexChanging method.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2007
(41)
-
▼
November
(11)
- How to implement Ajaxified details view hide on Pa...
- Generate Random numbers
- Implementing Dynamic Hyperlink of Current Page
- Fixing WebForms.PageRequestManagerServerErrorExcep...
- How to implement Select on a GridView1 with Paging...
- How to enable paging on a GridView that is bound t...
- Using Yahoo Mail Web Service hints
- Well documented C# code sample
- Caching Methods in ASP.NET 2.0
- Modifying labels in MasterPage From MasterPage use...
- Setup an email form for .NET 2.0
-
▼
November
(11)
5 comments:
...please where can I buy a unicorn?
...please where can I buy a unicorn?
[url=http://italtubi.com/tag/levitra-10-mg/ ]compra levitra onlin [/url] yvPenso che questo sia una splendida idea acquistare levitra leicmzdpeg [url=http://www.mister-wong.es/user/COMPRARCIALIS/comprar-viagra/]comprar viagra[/url]
Good day!
I am new to this forum and look forward to making some new friends
so how is everyone doing? Dennis from [url=http://www.myonlinepayday.com]Online Payday Loans[/url] website!
slunseHiedeed xaikalitag Arempseup [url=http://uillumaror.com]iziananatt[/url] Abormthoumb http://gusannghor.com Darpoormacync
Post a Comment