[EDIT: This is being posted now, but was started back in 2006, so might be a little out of date. My aim is to have no draft posts and this was too useful to delete.]
Anwyay, todays subject, minor though it is, is GridView commands...
...I wanted to have a grid with a couple of buttons: Up and Down, as link buttons, to re-order my content without an edit button.
The solution is simple enough:
- Add a Button column to your GridView
- Set it's 'button type' to Link (this is optional really)
- In the GridView's events panel, double-click RowCommand
- In the generated event handler you can place:
switch (e.CommandName) { .... }
Simple really.
Lastly, here's some resources I've been looking at recently:
- http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx
- http://weblogs.asp.net/scottgu/archive/2005/10/18/427754.aspx
- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ASPNETProvMod_Prt5.asp
- http://www.ondotnet.com/pub/a/dotnet/2005/01/10/liberty.html
- http://www.odetocode.com/Articles/440.aspx
- http://www.asp.net/QuickStart/aspnet/doc/profile/default.aspx
- http://www.theserverside.net/tt/articles/showarticle.tss?id=CreatingProfileProvider
- http://flimflan.com/blog/ProfileView.aspx
- http://weblogs.asp.net/scottgu/archive/2006/01/10/435038.aspx
- http://www.asp.net/sandbox/samp_profiles.aspx?tabindex=0&tabid=1
- http://msdn2.microsoft.com/en-us/library/83y98ckk.aspx
- http://www.google.com/search?hl=en&lr=&q=aspnet_regsql+command-line+utility+&btnG=Search
- http://www.learnvisualstudio.net/
- http://www.asp.net/learn/absolute/default.aspx?tabid=63
- http://www.microsoft.com/uk/msdn/security/link_library.mspx
- http://weblogs.asp.net/scottgu/archive/2006/04/13/Source-Code-for-the-Built_2D00_in-ASP.NET-2.0-Providers-Now-Available-for-Download.aspx
- http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx
No comments:
Post a Comment