Question : asp.net I am getting an error on a filter expreesion?


this is the portion that works sometimes, but when it fails it hangs up solid and i need to clear cache

And ((Year >= '{2}') And (Year <= '{3}'))"
-------------------------------
the function works correctly, but i feel if the user does not enter a min max year in the form the wildcard char i use as the default  value '%' which works sometimes, is what is giving me the paramerter error the wrong value.

----------

Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

------------------------------------------------------------------------------------------------------------------------
 FilterExpression="(Type LIKE '{0}') And (Make LIKE '{1}') And ((Year >= '{2}') And (Year <= '{3}'))">

         <FilterParameters>
                   <asp:ControlParameter  ControlID="ddlType" PropertyName="SelectedValue" />
                   <asp:ControlParameter  ControlID="ddlMake" PropertyName="SelectedValue" />
                   <asp:ControlParameter  ControlID="ddlYearMin" PropertyName="SelectedValue" />
                   <asp:ControlParameter  ControlID="ddlYearMax" PropertyName="SelectedValue" />
                 
         </FilterParameters>

Answer : asp.net I am getting an error on a filter expreesion?

Sorry Experts... I found the solution elsewhere.

For your reference, here is the link to it...
http://www.visualstudiodev.com/visual-basic-express-edition/trying-to-debug-receive-requested-operation-requires-elevation-48897.shtml

This is the part that helped me...
Does you application have the words "setup",  "update", "install", or any of the other key phrases that Vista uses in  its heuristics to identify setup programs? If so, you don't need to run  Visual Studio as an administrator. You just need to either change the  name of your program or add a manifest file (which is difficult under VS  2005 editions) and mark it so that Vista UAC doesn't perform heuristics  testing on it.

The name of my app had the word Update in it...

Thank to anyone that was trying to find a solution for me.

Take care!
Random Solutions  
 
programming4us programming4us