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

ASP.NET

 
GeneralRe: Auto switch to MS Access if SQL Server goes down Pin
stevenutt7-May-09 23:31
stevenutt7-May-09 23:31 
GeneralRe: Auto switch to MS Access if SQL Server goes down Pin
goodideadave8-May-09 11:21
goodideadave8-May-09 11:21 
GeneralRe: Auto switch to MS Access if SQL Server goes down Pin
stevenutt8-May-09 15:04
stevenutt8-May-09 15:04 
AnswerRe: Auto switch to MS Access if SQL Server goes down Pin
goodideadave12-May-09 6:10
goodideadave12-May-09 6:10 
QuestionHome Page Alert Pin
Anupbala7-May-09 22:11
Anupbala7-May-09 22:11 
AnswerRe: Home Page Alert Pin
N a v a n e e t h7-May-09 22:35
N a v a n e e t h7-May-09 22:35 
AnswerRe: Home Page Alert Pin
Abhijit Jana8-May-09 0:07
professionalAbhijit Jana8-May-09 0:07 
QuestionCopy selected data from one treeview to another Pin
meeram3957-May-09 22:01
meeram3957-May-09 22:01 
I have two treeviews in my form, which contains checkboxes for leaf nodes to select. The objective is to transport the selected nodes to second one. I am able to do that, but the issue is I'm not getting in a tree structure, just listing one by one. Can anybody please help?

Following is my code:
protected void AddUnit_Click(object sender, EventArgs e)
   {
       AddParentNode();

       for (int i = 0; i <= AvailableUnitsTreeView.Nodes.Count - 1; i++)
       {
           AddUnits(AvailableUnitsTreeView.Nodes[i]);
       }


   }

private void AddParentNode()
   {
       if (SelectedUnitsTreeView.Nodes.Count== 0)
       {
           TreeNode Parentnode = new TreeNode();
           Parentnode.Text = AvailableUnitsTreeView.Nodes[0].Text;
           Parentnode.Value = AvailableUnitsTreeView.Nodes[0].Value;
           SelectedUnitsTreeView.Nodes.Add(Parentnode);
           SelectedUnitsTreeView.Nodes[0].ShowCheckBox = false;
       }


   private void AddUnits(TreeNode node)
   {
       for (int i = 0; i <= node.ChildNodes.Count-1; i++)
       {
           AddUnits(node.ChildNodes[i]);
           if (node.ChildNodes[i].Checked == true)
           {
               SelectedUnitsTreeView.Nodes.Add(node);
               SelectedUnitsTreeView.Nodes.Add(node.ChildNodes[i]);
              // AvailableUnitsTreeView.Nodes.Remove(node.ChildNodes[i]);
           }

       }

   }


Cana anybody pls help how to achieve the tree structure in the second treeview also?

It's urgent. pls

Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

AnswerRe: Copy selected data from one treeview to another Pin
meeram3957-May-09 23:47
meeram3957-May-09 23:47 
Questionpass a value to class Pin
vnsraj7-May-09 21:54
vnsraj7-May-09 21:54 
AnswerRe: pass a value to class Pin
N a v a n e e t h7-May-09 22:08
N a v a n e e t h7-May-09 22:08 
AnswerRe: pass a value to class Pin
Abhijit Jana7-May-09 23:44
professionalAbhijit Jana7-May-09 23:44 
Questionmail sending problem through gmail account Pin
prateekfgiet7-May-09 21:42
prateekfgiet7-May-09 21:42 
AnswerRe: mail sending problem through gmail account Pin
Vasudevan Deepak Kumar7-May-09 21:56
Vasudevan Deepak Kumar7-May-09 21:56 
Questionneed licence for DirtyPanel.dll??? Urgent Pin
t1111117-May-09 21:31
t1111117-May-09 21:31 
AnswerRe: need licence for DirtyPanel.dll??? Urgent Pin
Vasudevan Deepak Kumar7-May-09 21:33
Vasudevan Deepak Kumar7-May-09 21:33 
AnswerRe: need licence for DirtyPanel.dll??? Urgent Pin
Abhijit Jana7-May-09 21:44
professionalAbhijit Jana7-May-09 21:44 
Questioncan i use the DirtyPanel.dll?? Pin
t1111117-May-09 21:26
t1111117-May-09 21:26 
AnswerRe: can i use the DirtyPanel.dll?? Pin
Vasudevan Deepak Kumar7-May-09 21:36
Vasudevan Deepak Kumar7-May-09 21:36 
QuestionWeb host AJAX support Pin
Matt Cavanagh7-May-09 21:09
Matt Cavanagh7-May-09 21:09 
AnswerRe: Web host AJAX support Pin
Vasudevan Deepak Kumar7-May-09 21:37
Vasudevan Deepak Kumar7-May-09 21:37 
AnswerRe: Web host AJAX support Pin
N a v a n e e t h7-May-09 22:06
N a v a n e e t h7-May-09 22:06 
QuestionAlert is not coming Pin
rakeshs3127-May-09 20:34
rakeshs3127-May-09 20:34 
AnswerRe: Alert is not coming Pin
Vasudevan Deepak Kumar7-May-09 21:04
Vasudevan Deepak Kumar7-May-09 21:04 
QuestionSession not working in class file Pin
vnsraj7-May-09 20:03
vnsraj7-May-09 20:03 

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.