Click here to Skip to main content
15,913,941 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to Update Gridview with callback Pin
prolibertine20-Dec-06 23:00
prolibertine20-Dec-06 23:00 
Questionsecurity and SMTP [modified] Pin
whatever10120-Dec-06 10:21
whatever10120-Dec-06 10:21 
QuestionWhat's wrong with my asp:Literal??? [modified] Pin
code-frog20-Dec-06 10:15
professionalcode-frog20-Dec-06 10:15 
AnswerRe: What's wrong with my asp:Literal??? Pin
code-frog20-Dec-06 10:19
professionalcode-frog20-Dec-06 10:19 
GeneralRe: What's wrong with my asp:Literal??? Pin
minhpc_bk20-Dec-06 14:07
minhpc_bk20-Dec-06 14:07 
GeneralRe: What's wrong with my asp:Literal??? Pin
code-frog20-Dec-06 16:25
professionalcode-frog20-Dec-06 16:25 
GeneralRe: What's wrong with my asp:Literal??? Pin
minhpc_bk20-Dec-06 17:29
minhpc_bk20-Dec-06 17:29 
QuestionDisable root node collapse on treeview with databind? Pin
walkeraj20-Dec-06 9:59
walkeraj20-Dec-06 9:59 
I'm working on a faq/help page for an online application, and I bound an XmlDataSource to a treeview to simplify future revisions of the questions. It's pretty simple. The code is simply:

<asp:TreeView ID="TreeView1" runat="server" DataSourceID="AppHelpXmlDataSource" ImageSet="Faq" ShowLines="True" ExpandDepth="1">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="Purple" />
<SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="DarkBlue" HorizontalPadding="5px"
NodeSpacing="0px" VerticalPadding="0px" />
<DataBindings>
<asp:TreeNodeBinding DataMember="apphelp_questions" TextField="TEXT"/>
<asp:TreeNodeBinding DataMember="question" TextField="TEXT" />
<asp:TreeNodeBinding DataMember="answer" TextField="TEXT" />
</DataBindings>
</asp:TreeView>
<asp:XmlDataSource ID="AppHelpXmlDataSource" runat="server" DataFile="~/applicationhelp/questions.xml">
</asp:XmlDataSource>

---------------

And the XML File looks like this:

<?xml version="1.0" encoding="utf-8" ?>

<apphelp_questions TEXT="Please select your question:">
<question TEXT="How do I do this?">
<answer TEXT="This is how you do this."></answer>
</question>
</apphelp_questions>

---------------

This renders a nice treeview, but I don't want the users to be able to collapse the root node. I want it to display the "Please select your question:" text, and the text of the questions, and allow the user to expand the answers to each question. Is there any way to do this without hardcoding the root node text in the aspx file?
Questionsending data from child gridview to parent gridview Pin
srishree20-Dec-06 9:45
srishree20-Dec-06 9:45 
QuestionEmitting simple plain text rather than HTML Pin
Nadia Monalisa20-Dec-06 9:31
Nadia Monalisa20-Dec-06 9:31 
AnswerRe: Emitting simple plain text rather than HTML Pin
Netricity20-Dec-06 11:58
Netricity20-Dec-06 11:58 
GeneralRe: Emitting simple plain text rather than HTML Pin
Nadia Monalisa21-Dec-06 8:01
Nadia Monalisa21-Dec-06 8:01 
QuestionCSV file - How to Pin
alexfromto20-Dec-06 9:15
alexfromto20-Dec-06 9:15 
AnswerRe: CSV file - How to Pin
ToddHileHoffer20-Dec-06 9:23
ToddHileHoffer20-Dec-06 9:23 
QuestionModifing web gridview control Pin
Quecumber25620-Dec-06 8:52
Quecumber25620-Dec-06 8:52 
AnswerRe: Modifing web gridview control Pin
ToddHileHoffer20-Dec-06 9:07
ToddHileHoffer20-Dec-06 9:07 
GeneralRe: Modifing web gridview control Pin
Quecumber25620-Dec-06 9:29
Quecumber25620-Dec-06 9:29 
GeneralRe: Modifing web gridview control Pin
ToddHileHoffer20-Dec-06 9:51
ToddHileHoffer20-Dec-06 9:51 
GeneralRe: Modifing web gridview control Pin
Quecumber25620-Dec-06 10:26
Quecumber25620-Dec-06 10:26 
QuestionSort Datagrid Pin
ADY00720-Dec-06 7:58
ADY00720-Dec-06 7:58 
AnswerRe: Sort Datagrid Pin
ToddHileHoffer20-Dec-06 8:14
ToddHileHoffer20-Dec-06 8:14 
GeneralRe: Sort Datagrid Pin
ADY00720-Dec-06 10:08
ADY00720-Dec-06 10:08 
GeneralRe: Sort Datagrid Pin
Haissam20-Dec-06 11:09
Haissam20-Dec-06 11:09 
Questionrender values from check box and update to database on button click Pin
srishree20-Dec-06 7:56
srishree20-Dec-06 7:56 
AnswerRe: render values from check box and update to database on button click Pin
ToddHileHoffer20-Dec-06 8:11
ToddHileHoffer20-Dec-06 8:11 

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.