Click here to Skip to main content
15,910,981 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Access file under inetpub Pin
Ranjit Viswakumar4-Feb-09 12:26
Ranjit Viswakumar4-Feb-09 12:26 
GeneralRe: Access file under inetpub Pin
siva4554-Feb-09 16:40
siva4554-Feb-09 16:40 
QuestionMemmory allocation to perticular method Pin
Imran Khan Pathan3-Feb-09 20:29
Imran Khan Pathan3-Feb-09 20:29 
QuestionSending email - error in asp.net Pin
ashok@techxygen3-Feb-09 20:17
ashok@techxygen3-Feb-09 20:17 
AnswerRe: Sending email - error in asp.net Pin
SeMartens3-Feb-09 22:09
SeMartens3-Feb-09 22:09 
QuestionXML in ASP.NET Pin
.NET- India 3-Feb-09 20:10
.NET- India 3-Feb-09 20:10 
AnswerRe: XML in ASP.NET Pin
SeMartens3-Feb-09 22:14
SeMartens3-Feb-09 22:14 
GeneralRe: XML in ASP.NET Pin
.NET- India 4-Feb-09 0:04
.NET- India 4-Feb-09 0:04 
Sir Can you let me know ........


I've a GridView in which i'm fetching the data from the XMLFile.
My XML file is shown below. In this XML file i've a Active node and i want to display only the data where the Active is 1 that's mean to fetch only first record but it's bringing all records.

<TotalBhakti>
<Videos>
<ID>1</ID>
<Video>No Video(s)</Video>
<VideoTitle>No Video Title</VideoTitle>
<Description>No Description</Description>
<Guru>No Guru</Guru>
<Lord>No Lord</Lord>
<Category>No Category</Category>
<Genre>No Genre</Genre>
<Tag>No Tag</Tag>
<Active>1</Active>
</Videos>

<Videos>
<ID>2</ID>
<Video>No Video(s)</Video>
<VideoTitle>No Video Title</VideoTitle>
<Description>No Description</Description>
<Guru>No Guru</Guru>
<Lord>No Lord</Lord>
<Category>No Category</Category>
<Genre>No Genre</Genre>
<Tag>No Tag</Tag>
<Active>0</Active>
</Videos>
</TotalBhakti>



here is the code to display in the GridView
XmlDataSource data = new XmlDataSource();
data.DataFile = Server.MapPath("~/XMLFiles/XMLFile1.xml");
GridView1.DataSource = data;
GridView1.DataBind();
GeneralRe: XML in ASP.NET Pin
SeMartens4-Feb-09 0:08
SeMartens4-Feb-09 0:08 
GeneralRe: XML in ASP.NET Pin
.NET- India 4-Feb-09 0:15
.NET- India 4-Feb-09 0:15 
GeneralRe: XML in ASP.NET Pin
SeMartens4-Feb-09 1:30
SeMartens4-Feb-09 1:30 
QuestionMaster Page related question.. Pin
mr_muskurahat3-Feb-09 19:29
mr_muskurahat3-Feb-09 19:29 
AnswerRe: Master Page related question.. Pin
Christian Graus3-Feb-09 19:30
protectorChristian Graus3-Feb-09 19:30 
QuestionGMAPS Question Pin
Krazy Programmer3-Feb-09 19:09
Krazy Programmer3-Feb-09 19:09 
AnswerRe: GMAPS Question Pin
Christian Graus3-Feb-09 19:14
protectorChristian Graus3-Feb-09 19:14 
GeneralRe: GMAPS Question Pin
Krazy Programmer3-Feb-09 21:47
Krazy Programmer3-Feb-09 21:47 
AnswerRe: GMAPS Question Pin
Abhishek Sur3-Feb-09 20:45
professionalAbhishek Sur3-Feb-09 20:45 
GeneralRe: GMAPS Question Pin
Krazy Programmer3-Feb-09 21:49
Krazy Programmer3-Feb-09 21:49 
GeneralRe: GMAPS Question Pin
Abhishek Sur4-Feb-09 21:46
professionalAbhishek Sur4-Feb-09 21:46 
QuestionShare Point Pin
nikhil12343-Feb-09 18:47
nikhil12343-Feb-09 18:47 
AnswerRe: Share Point Pin
Christian Graus3-Feb-09 19:29
protectorChristian Graus3-Feb-09 19:29 
AnswerRe: Share Point Pin
Ranjit Viswakumar4-Feb-09 12:31
Ranjit Viswakumar4-Feb-09 12:31 
Questionweb parts created in VS2005 Pin
bishwambhar_sen3-Feb-09 18:40
bishwambhar_sen3-Feb-09 18:40 
AnswerRe: web parts created in VS2005 Pin
Abhishek Sur3-Feb-09 20:47
professionalAbhishek Sur3-Feb-09 20:47 
AnswerRe: web parts created in VS2005 Pin
Ranjit Viswakumar4-Feb-09 12:34
Ranjit Viswakumar4-Feb-09 12:34 

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.