Click here to Skip to main content
15,891,864 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: what is Difference between filestream and memorystream Pin
eyeseetee28-Jul-08 3:13
eyeseetee28-Jul-08 3:13 
QuestionSoap Call to a Webmethod platform Pin
Anoop Unnikrishnan28-Jul-08 1:26
Anoop Unnikrishnan28-Jul-08 1:26 
QuestionCreating a gridview programatically in asp.net 2.0 Pin
vijaylumar28-Jul-08 1:21
vijaylumar28-Jul-08 1:21 
AnswerRe: Creating a gridview programatically in asp.net 2.0 Pin
Sherin Iranimose28-Jul-08 2:43
Sherin Iranimose28-Jul-08 2:43 
QuestionOnline Test Creation Pin
kalyanapu28-Jul-08 1:15
kalyanapu28-Jul-08 1:15 
Questionhow to use user control in more two user controls. Pin
lakshmichawala28-Jul-08 0:38
lakshmichawala28-Jul-08 0:38 
AnswerRe: how to use user control in more two user controls. Pin
eyeseetee28-Jul-08 1:18
eyeseetee28-Jul-08 1:18 
QuestionSPQuery trouble Pin
Hakmeh Mohannad28-Jul-08 0:33
Hakmeh Mohannad28-Jul-08 0:33 
hi all
i dont know where to put this question but i think it would be here

i have the following SPQuery which it get its result from custom list inside sharepoint site

SPList splTerrorism = spsw.Lists[NaussLists.AttackedEntityName];
SPQuery spqTerrorismQuery = new SPQuery();
spqTerrorismQuery.Query = @"<Query><Where><And><And><And><And><And>";
spqTerrorismQuery.Query += "<And><And><And><And><Geq><FieldRef Name='DateOfAction' />";
spqTerrorismQuery.Query += "<Value Type='DateTime'>" + txtFrom.Text + "</Value>";
spqTerrorismQuery.Query += "</Geq><Leq><FieldRef Name='DateOfAction' />";
spqTerrorismQuery.Query += "<Value Type='DateTime'>" + txtTo.Text + "</Value></Leq></And>";
spqTerrorismQuery.Query += "<Contains><FieldRef Name='Country' /><Value Type='Lookup'>" + AllCountries + "</Value>";
spqTerrorismQuery.Query += "</Contains></And><Eq><FieldRef Name='City' /><Value Type='Lookup'>" + ddlCity.SelectedItem + "</Value>";
spqTerrorismQuery.Query += "</Eq></And><Contains><FieldRef Name='OperationName' /><Value Type='Text'>" + txtActionName.Text + "</Value>";
spqTerrorismQuery.Query += "</Contains></And><Contains><FieldRef Name='AttackingEntityName' />";
spqTerrorismQuery.Query += "<Value Type='Lookup'>" + AllAttackers + "</Value></Contains></And><Contains><FieldRef Name='AttackedEntityType' />";
spqTerrorismQuery.Query += "<Value Type='Lookup'>" + AllAttacked + "</Value></Contains></And><Contains><FieldRef Name='AttackedEntityName' />";
spqTerrorismQuery.Query += "<Value Type='Text'>" + ddlAttackedEntityName.SelectedItem + "</Value></Contains></And><Eq><FieldRef Name='WeaponType' /><Value Type='Lookup'>" + ddlWeaponType.SelectedItem + "</Value>";
spqTerrorismQuery.Query += "</Eq></And><Contains><FieldRef Name='ActionType' /><Value Type='Lookup'>" + AllActions + "</Value></Contains></And></Where></Query>";
SPListItemCollection splic = splTerrorism.GetItems(spqTerrorismQuery);


the problem is that all the list is displayed no matter what the value are even if there is no values at all

note : i made this CAML Query with U2U CAML Query Builder

Thank you
QuestionNot considering "If condition in inside the foreach statement" [modified] Pin
Member 387988128-Jul-08 0:13
Member 387988128-Jul-08 0:13 
AnswerRe: Not considering "If condition in inside the foreach statement" Pin
Blue_Boy28-Jul-08 0:50
Blue_Boy28-Jul-08 0:50 
GeneralRe: Not considering "If condition in inside the foreach statement" Pin
gaurav mangal28-Jul-08 2:24
gaurav mangal28-Jul-08 2:24 
GeneralRe: Not considering "If condition in inside the foreach statement" Pin
Blue_Boy28-Jul-08 4:59
Blue_Boy28-Jul-08 4:59 
AnswerRe: Not considering "If condition in inside the foreach statement" Pin
Sherin Iranimose28-Jul-08 3:23
Sherin Iranimose28-Jul-08 3:23 
Questionpercentage signs around sql parameter Pin
eyeseetee28-Jul-08 0:08
eyeseetee28-Jul-08 0:08 
AnswerRe: percentage signs around sql parameter Pin
Blue_Boy28-Jul-08 0:15
Blue_Boy28-Jul-08 0:15 
GeneralRe: percentage signs around sql parameter Pin
eyeseetee28-Jul-08 0:28
eyeseetee28-Jul-08 0:28 
GeneralRe: percentage signs around sql parameter Pin
Blue_Boy28-Jul-08 0:30
Blue_Boy28-Jul-08 0:30 
QuestionOnClientClick Pin
Reelix27-Jul-08 23:44
Reelix27-Jul-08 23:44 
AnswerRe: OnClientClick Pin
Blue_Boy28-Jul-08 0:08
Blue_Boy28-Jul-08 0:08 
GeneralRe: OnClientClick Pin
Reelix28-Jul-08 0:11
Reelix28-Jul-08 0:11 
GeneralRe: OnClientClick Pin
Blue_Boy28-Jul-08 0:16
Blue_Boy28-Jul-08 0:16 
Questionsqlbulk copy asp.net c# Pin
VijayVishwakarma27-Jul-08 22:20
VijayVishwakarma27-Jul-08 22:20 
AnswerRe: sqlbulk copy asp.net c# Pin
VijayVishwakarma28-Jul-08 0:04
VijayVishwakarma28-Jul-08 0:04 
AnswerRe: sqlbulk copy asp.net c# Pin
Ashfield28-Jul-08 1:12
Ashfield28-Jul-08 1:12 
GeneralRe: sqlbulk copy asp.net c# Pin
VijayVishwakarma28-Jul-08 20:10
VijayVishwakarma28-Jul-08 20:10 

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.