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

ASP.NET

 
AnswerRe: I cant seem to generate an async postback. Pin
TylerBrinks5-Feb-09 15:29
TylerBrinks5-Feb-09 15:29 
GeneralRe: I cant seem to generate an async postback. Pin
SomeGuyThatIsMe6-Feb-09 2:20
SomeGuyThatIsMe6-Feb-09 2:20 
QuestionProblem with Autocomplete Textbox in AJAX Pin
fasttoshiba5-Feb-09 7:23
fasttoshiba5-Feb-09 7:23 
AnswerRe: Problem with Autocomplete Textbox in AJAX Pin
fasttoshiba5-Feb-09 8:56
fasttoshiba5-Feb-09 8:56 
GeneralRe: Problem with Autocomplete Textbox in AJAX Pin
idanb22-Jun-11 22:43
idanb22-Jun-11 22:43 
Questionpopup from codebehind? Pin
laserbaronen5-Feb-09 4:22
laserbaronen5-Feb-09 4:22 
QuestionDetailsView Questions Pin
Dan Neely5-Feb-09 4:22
Dan Neely5-Feb-09 4:22 
QuestionTree View Control Pin
anandhakrishnan5-Feb-09 3:47
anandhakrishnan5-Feb-09 3:47 
Hi,

I am using Tree view control for navigation. I am using XmlDataSource control as the datasource for the tree view control. I have given below the Xml file content.

<?xml version="1.0" encoding="utf-8" ?>
<Countries>
<continent cont="NorthAmerica" Navigate="Header.aspx">
<country coun="United States of America">
<language lang="English"></language>
<capital cap="Washington D.C"></capital>
<cities city="Chicago"></cities>
</country>
</continent>
<continent cont="Europe">
<country coun="United Kingdom">
<language lang=" English"></language>
<capital cap="London"></capital>
<cities city="Bristol"></cities>
</country>
</continent>
&lt;/Countries&gt;


Html source:

<asp:TreeView ID="LeftNavigation" runat="server" DataSourceID="XmlDataSource1">
<DataBindings>
<asp:TreeNodeBinding DataMember="Countries" Text="Countries" NavigateUrlField="Navigate" />
<asp:TreeNodeBinding DataMember="continent" TextField="cont"/>
<asp:TreeNodeBinding DataMember="country" TextField="coun" />
<asp:TreeNodeBinding DataMember="language" TextField="lang" />
<asp:TreeNodeBinding DataMember="captial" TextField="cap" />
<asp:TreeNodeBinding DataMember="cities" TextField="city" />
</DataBindings>
</asp:TreeView>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/XMLFile.xml"></asp:XmlDataSource>



Here the binding working fine. But the navigation is not working. I have given the NavigateUrlField="Navigate". "Navigate" is having the url in xml file. Giving the binding error @ runtime. Pls help me!

Tnx.
AnswerRe: Tree View Control Pin
sarang_k5-Feb-09 5:11
sarang_k5-Feb-09 5:11 
QuestionDropDownList width Pin
Giorgi Dalakishvili5-Feb-09 3:38
mentorGiorgi Dalakishvili5-Feb-09 3:38 
AnswerRe: DropDownList width Pin
Abhishek Sur5-Feb-09 4:14
professionalAbhishek Sur5-Feb-09 4:14 
GeneralRe: DropDownList width Pin
Giorgi Dalakishvili5-Feb-09 6:42
mentorGiorgi Dalakishvili5-Feb-09 6:42 
GeneralRe: DropDownList width Pin
Abhishek Sur6-Feb-09 1:34
professionalAbhishek Sur6-Feb-09 1:34 
Questionabout asp Pin
umeshdaiya5-Feb-09 3:23
umeshdaiya5-Feb-09 3:23 
AnswerRe: about asp Pin
SeMartens5-Feb-09 3:41
SeMartens5-Feb-09 3:41 
QuestionRe: about asp Pin
TylerBrinks5-Feb-09 15:31
TylerBrinks5-Feb-09 15:31 
AnswerRe: about asp Pin
Ranjit Viswakumar5-Feb-09 16:34
Ranjit Viswakumar5-Feb-09 16:34 
QuestionCustom WEb Confirm Box Pin
siva4555-Feb-09 3:07
siva4555-Feb-09 3:07 
AnswerRe: Custom WEb Confirm Box Pin
Abhishek Sur5-Feb-09 4:20
professionalAbhishek Sur5-Feb-09 4:20 
AnswerRe: Custom WEb Confirm Box Pin
Ranjit Viswakumar5-Feb-09 16:53
Ranjit Viswakumar5-Feb-09 16:53 
GeneralRe: Custom WEb Confirm Box Pin
siva4555-Feb-09 18:28
siva4555-Feb-09 18:28 
QuestionXMLDataSource.Data not binding right Pin
Yisman25-Feb-09 2:00
Yisman25-Feb-09 2:00 
AnswerRe: XMLDataSource.Data not binding right Pin
ToddHileHoffer5-Feb-09 2:35
ToddHileHoffer5-Feb-09 2:35 
GeneralRe: XMLDataSource.Data not binding right Pin
Yisman27-Feb-09 22:44
Yisman27-Feb-09 22:44 
GeneralRe: XMLDataSource.Data not binding right Pin
ToddHileHoffer8-Feb-09 5:16
ToddHileHoffer8-Feb-09 5:16 

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.