Click here to Skip to main content
15,894,405 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLINQ Pin
Amit Patel198511-Nov-09 23:02
Amit Patel198511-Nov-09 23:02 
AnswerRe: LINQ Pin
Eduard Keilholz11-Nov-09 23:37
Eduard Keilholz11-Nov-09 23:37 
AnswerRe: LINQ Pin
Shameel12-Nov-09 6:48
professionalShameel12-Nov-09 6:48 
QuestionLooking for solution / article for multi parameters search engine Pin
elidotnet11-Nov-09 21:40
elidotnet11-Nov-09 21:40 
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Christian Graus11-Nov-09 22:12
protectorChristian Graus11-Nov-09 22:12 
GeneralRe: Looking for solution / article for multi parameters search engine Pin
elidotnet11-Nov-09 22:34
elidotnet11-Nov-09 22:34 
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Abhishek Sur11-Nov-09 22:22
professionalAbhishek Sur11-Nov-09 22:22 
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Abhishek Sur11-Nov-09 22:29
professionalAbhishek Sur11-Nov-09 22:29 
Ohh... you might be asking for how to search using SQL ??

is this is so, read basic books on SQL.

Let me give you one instance on how the query look like:
Say you want to search name, state and city based on variables. If variables doesnt have value, your search doesnt need to hamper. Do like this :
SELECT * FROM TABLE
WHERE (CASE WHEN ISNULL(@P_NAME,'') = '' THEN '' ELSE NAME END)= ISNULL(@P_NAME,'')
AND (CASE WHEN ISNULL(@P_CITY,'') = '' THEN '' ELSE CITY END)= ISNULL(@P_CITY,'')
AND (CASE WHEN ISNULL(@P_STATE,'') = '' THEN '' ELSE STATE END)= ISNULL(@P_STATE,'')


Note : It could be optimized.

Thus if you ask 
@P_Name = 'xxx'
@P_CITY = NULL
@P_STATE = 'yyyy'


It will not consider @P_CITY as search criteria..
Hopefully this gives you an idea.

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

QuestionCrystal Reports showing blank page after few hours in Asp.net Pin
hammadahsan11-Nov-09 20:55
hammadahsan11-Nov-09 20:55 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
sashidhar11-Nov-09 21:46
sashidhar11-Nov-09 21:46 
GeneralRe: Crystal Reports showing blank page after few hours in Asp.net Pin
hammadahsan11-Nov-09 22:04
hammadahsan11-Nov-09 22:04 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
Abhishek Sur11-Nov-09 22:07
professionalAbhishek Sur11-Nov-09 22:07 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
Shameel12-Nov-09 6:53
professionalShameel12-Nov-09 6:53 
QuestionStrange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 20:41
professionalVimalsoft(Pty) Ltd11-Nov-09 20:41 
AnswerRe: Strange Issues on ASP.NET App Pin
Christian Graus11-Nov-09 21:02
protectorChristian Graus11-Nov-09 21:02 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 21:08
professionalVimalsoft(Pty) Ltd11-Nov-09 21:08 
GeneralRe: Strange Issues on ASP.NET App Pin
Christian Graus11-Nov-09 21:11
protectorChristian Graus11-Nov-09 21:11 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 22:35
professionalVimalsoft(Pty) Ltd11-Nov-09 22:35 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 23:40
professionalVimalsoft(Pty) Ltd11-Nov-09 23:40 
AnswerRe: Strange Issues on ASP.NET App Pin
Abhishek Sur11-Nov-09 22:39
professionalAbhishek Sur11-Nov-09 22:39 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 22:50
professionalVimalsoft(Pty) Ltd11-Nov-09 22:50 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 23:41
professionalVimalsoft(Pty) Ltd11-Nov-09 23:41 
GeneralRe: Strange Issues on ASP.NET App Pin
Abhishek Sur11-Nov-09 23:51
professionalAbhishek Sur11-Nov-09 23:51 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 23:52
professionalVimalsoft(Pty) Ltd11-Nov-09 23:52 
GeneralRe: Strange Issues on ASP.NET App Pin
Shameel12-Nov-09 6:57
professionalShameel12-Nov-09 6:57 

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.