Re: How filter dropdownlist data

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You can handle ddl's DataBound or PreRender or Page.PreRender event to
remove items from the ddl's Items collection.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Cirene" <cirene@xxxxxxxxxxx> wrote in message
news:ugHvW5MwIHA.4896@xxxxxxxxxxxxxxxxxxxxxxx
I already have it bound to a sqldatasource and it's getting data. That's
no problem.

There are certain conditions where I want to PREVENT some selected items
from appearing in the drop down list. Any ideas on how to do this?

Thanks!


"Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx> wrote in
message news:ej%23hFyMwIHA.548@xxxxxxxxxxxxxxxxxxxxxxx
If the query populates a DataTable, you can run Select method with a
filter condition to produce a filtered array of rows.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Cirene" <cirene@xxxxxxxxxxx> wrote in message
news:%23QUUxpMwIHA.4476@xxxxxxxxxxxxxxxxxxxxxxx
I have a dropdownlist that is bound to a query.

Is it possible to further filter the items after the fact?

The dropdownlist is inside a
createuserwizard/createuserstep/contenttemplatecontainer.

Thanks.







.



Relevant Pages

  • Re: How filter dropdownlist data
    ... remove items from the ddl's Items collection. ... Software Developer ... Microsoft MVP ... Is it possible to further filter the items after the fact? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How filter dropdownlist data
    ... If the query populates a DataTable, you can run Select method with a filter ... condition to produce a filtered array of rows. ... Software Developer ... Microsoft MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: streaming images
    ... Software Developer & Consultant ... Microsoft MVP ... I have a ADO.NET dataset that contains a jpeg (blob data) and some ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: label in footertemplate of datagrid
    ... Software Developer & Consultant ... Microsoft MVP ... FooterTemplate of the DataList control? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Search for Text in .asp Files
    ... Ramesh - Microsoft MVP ... Something in Windows keeps changing the text filter back to the html filter. ... asp files 5 levels down which contain that same ...
    (microsoft.public.windowsxp.configuration_manage)