Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2006, 03:46 PM
Authorized User
 
Join Date: Apr 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default filtering datalist with linkbuttons

Hi,

I try to filter my data in a datalist using linkbuttons that are in the list (in fact, all values in the list are linkbuttons for the purpose of filtering). It should be done via postback, and I have other controls on the page that work just fine with this (using filterexpression to filter them).

However, I can't find any info on how to go from the user clicking the linkbutton in the datalist to do the actual fitering. I've tried to do an onclick event that goes to a sub that checks for type of linkbutton and its value, thereafter to set two hiddenfields to these values and then try to insert the hiddenfields' values in the filterexpression via filterparameters. I couldn't get this to work, and I guess it's not the right way anyhow. So I tried a datalist_itemcommand sub but don't know what to write.

Any help is very welcome! (VB, VWD Express, Asp.Net 2.0)

Pettrer


Coding is indeed a nine-to-five job; nine pm to five am.
__________________
Coding is indeed a nine-to-five job; nine pm to five am.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterating through the LinkButtons in a page. nocofoolme ASP.NET 2.0 Basics 23 August 13th, 2008 04:01 PM
Datalist inside datalist amit.jagtap ASP.NET 2.0 Professional 1 September 4th, 2007 05:03 AM
filtering datalist from within pettrer ASP.NET 2.0 Basics 2 August 11th, 2006 02:08 PM
DataGrid LinkButtons/Pushbuttons testsubject General .NET 0 June 27th, 2006 02:46 AM
LinkButtons Alaric VS.NET 2002/2003 1 November 7th, 2003 01:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.