Click here to Skip to main content
16,005,121 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionNewsLetter with Images Pin
.NET- India 2-Sep-07 20:21
.NET- India 2-Sep-07 20:21 
AnswerRe: NewsLetter with Images Pin
Michael Sync2-Sep-07 20:56
Michael Sync2-Sep-07 20:56 
GeneralRe: NewsLetter with Images Pin
.NET- India 2-Sep-07 21:02
.NET- India 2-Sep-07 21:02 
QuestionFile Creation from binary format [modified] Pin
LishaDamian2-Sep-07 20:17
LishaDamian2-Sep-07 20:17 
QuestionClick Event Pin
BasharatAli2-Sep-07 20:14
BasharatAli2-Sep-07 20:14 
AnswerRe: Click Event Pin
Michael Sync2-Sep-07 20:53
Michael Sync2-Sep-07 20:53 
AnswerRe: Click Event Pin
Sandeep Akhare2-Sep-07 21:41
Sandeep Akhare2-Sep-07 21:41 
QuestionFilter Expression for ObjectDataSource Pin
boy.pockets2-Sep-07 20:02
boy.pockets2-Sep-07 20:02 
I am using the ObjectDataSource as my DataSource for a GridView. As part of the users functionality, I allow the user to provide text to act as a filter on the GridView. My problem is I don't know of any feasible way to get feedback on the outcome of the 'filter' (i.e. objectDataSource.FilterExpression). In particular, the things I want to know are:
1. if any exceptions have been thrown (i.e. exceptions to do with the data-type of the values, or column names in filter expression), and
2. how many rows the DataSource evaluates to (i.e. there may be a DataSource of 600 records, which having a filter expression applied to it, returns 200 records).

Currently, when a new FilterExpression is applied to the ObjectDataSource, the following events are fired:
1. gridViewObjectDataSource_Selected - the select method specified in the ObjectDataSource (gets the whole 'returnValue'; in my case a DataSet).
2. gridViewObjectDataSource_Filtering - the event handler that fires before the filterExpression is applied to the above mentioned return Value.

From here, I expected a method to capture the *Filtered event. but there does not seem to be anything to accommodate this.

In the doco, there is a Note in the ObjectDataSource.FilterExpression Property entry (http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.objectdatasource.filterexpression.aspx[^]), that seems to suggest that this functionality is not supported:

"You should validate any filter parameter value that you receive from the client. The runtime simply substitutes the parameter value into the filter expression and applies it to the DataSet or DataTable object that is returned by the Select method. If you are using the FilterExpression property as a security measure to limit the number of items that are returned, you must validate the parameter values before the filtering occurs."

So my questions are:
1. is there functionality in the ObjectDatSource to get the above mentioned feedback after a FilterExpression is applied? - and if not,
2. Is there a way to determine these details manually? (i.e. get the DataTable, and apply the filterExpression to it in the same way that it is done in the ObjectDataSource?)

cheers
Questionusing the MasterPay as a money transaction gateway Pin
sPaudel2-Sep-07 19:56
sPaudel2-Sep-07 19:56 
QuestionNewsLetter Pin
.NET- India 2-Sep-07 19:30
.NET- India 2-Sep-07 19:30 
AnswerRe: NewsLetter Pin
Michael Sync2-Sep-07 20:43
Michael Sync2-Sep-07 20:43 
QuestionProblem connect database via IIS 5.1 Pin
ctlqt122-Sep-07 19:29
ctlqt122-Sep-07 19:29 
Questionsqlbulkcopy Pin
rajmani2-Sep-07 19:23
rajmani2-Sep-07 19:23 
AnswerRe: sqlbulkcopy Pin
Ahmad Adnan2-Sep-07 19:38
Ahmad Adnan2-Sep-07 19:38 
GeneralRe: sqlbulkcopy Pin
rajmani2-Sep-07 21:32
rajmani2-Sep-07 21:32 
QuestionWhat is synchronization and asynchronization in asp.net Pin
rahul.net112-Sep-07 19:20
rahul.net112-Sep-07 19:20 
AnswerRe: What is synchronization and asynchronization in asp.net Pin
Michael Sync2-Sep-07 20:42
Michael Sync2-Sep-07 20:42 
GeneralRe: What is synchronization and asynchronization in asp.net Pin
rahul.net112-Sep-07 21:20
rahul.net112-Sep-07 21:20 
QuestionHow to change display data when getting boolean from db Pin
sandrider2-Sep-07 18:53
sandrider2-Sep-07 18:53 
AnswerRe: How to change display data when getting boolean from db Pin
Ahmad Adnan2-Sep-07 19:43
Ahmad Adnan2-Sep-07 19:43 
QuestionSystem.OutOfMemoryException Pin
jagannatha.y2-Sep-07 18:36
jagannatha.y2-Sep-07 18:36 
AnswerRe: System.OutOfMemoryException Pin
John-ph2-Sep-07 21:52
John-ph2-Sep-07 21:52 
Questionwhat are the ways exporting data containing large size picture along with other details Pin
imranafsari2-Sep-07 18:12
imranafsari2-Sep-07 18:12 
QuestionQuestion about Extending a Typed DataSet Using Partial Classes Pin
CalvinWang2-Sep-07 8:48
CalvinWang2-Sep-07 8:48 
QuestionDropdown list with Auto Complete Pin
mehrdadc482-Sep-07 7:56
mehrdadc482-Sep-07 7:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.