searching a xml record

Posted by Ganesh under ASP.NET on 11/25/2008 | Views : 1170 | Status : [Member] | Replies : 2
In ASP.NET & C#.NET,

There is one dropdownlist, textbox & button controls in page.



My xml look like...



<emp>

<empdetails>

<ename>aaa<\ename>

<age>25<\age>

<city>chennai<\chennai>

<\empdetails>

<empdetails>

<ename>bbb<\ename>

<age>25<\age>

<city>chennai<\chennai>

<\empdetails>

</emp>



Now dropdownlist contains 3 values like ename, age & city.



Now I want to select any one (like name or age or city), And continuously i'm giving value in textbox. It means, i select name in dropdown, and give value "aaa" in textbox. Then I click button control.



Now my gridview will show the details of which employee named "aaa" and them full record. I mean, the output should be display



"aaa 25 chennai"


Earliest reply will be more helpful. Thanks guys




Responses

Posted by: Poster on: 11/25/2008 [Member] Starter

Up
0
Down
I think you have multiple need.

You can learn how to work with XML file and bind data with the help of this article http://www.dotnetfunda.com/articles/article199.aspx and basic database operation using this sample demo http://www.dotnetfunda.com/UserFiles/Samples/HAT.zip

Thanks

Ganesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response