Click here to Skip to main content
15,920,053 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to print a web page report Pin
ypsyong14-Jul-06 18:22
ypsyong14-Jul-06 18:22 
AnswerRe: How to print a web page report Pin
enjoycrack15-Jul-06 20:16
enjoycrack15-Jul-06 20:16 
QuestionASP.Net Current Active User Sessions Pin
Clickok14-Jul-06 13:23
Clickok14-Jul-06 13:23 
AnswerRe: ASP.Net Current Active User Sessions Pin
enjoycrack15-Jul-06 20:18
enjoycrack15-Jul-06 20:18 
QuestionWhat's the problem? Pin
User 309585914-Jul-06 11:26
User 309585914-Jul-06 11:26 
AnswerRe: What's the problem? Pin
Mircea Grelus15-Jul-06 0:48
Mircea Grelus15-Jul-06 0:48 
AnswerRe: What's the problem? Pin
RichardGrimmer17-Jul-06 2:58
RichardGrimmer17-Jul-06 2:58 
QuestionTreeView built dynamically: IHierarchicalDataSource and how to set Node.Text [modified] Pin
phuryn14-Jul-06 10:15
phuryn14-Jul-06 10:15 
Hello there is a problem. I use TreeView controll as a data source giving a class that implements
IHierarchicalDataSource interface with method HierarchicalDataSourceView GetHierarchicalView(string myPath)
Under the big structure of next and next classes there is:

class MyNode : IHierarchyData

I put objects of this class into

class Enumerable : List<mynode>, IHierarchicalEnumerable

Enumerable know myPatch value and using some QueryService static class asks about the structure of the tree.

Enumerable( string _patch ) creates collection of children for node specified by _patch

There is a problem::::

The "shape" of the tree (parents, children) is as expected but i don't know where to set Text displayed by the node. IHierarchyData doesnt't contain information abuut the text - only obout patch and the children. Where to put this information. At praesent every Node has text: "MyNode" which as I think was generated automatically.

MyNode looks like this:

public class MyNode : IHierarchyData

{

// children - does it heve any children

// jako type - i give here a name of specyfied node

// patch - if we haveroot->parent->child1, patch looks like this: "/root/parent/child1"

public MyNode(string path, bool children, string type)

{

DelimiterArray = new char[1];

DelimiterArray[0] = '/';

NodeValues = path.Split(DelimiterArray);

_Path = path;

_HasChildren = children;

_Type = type;

_Text = "Ufo";

_Value = "Delphin";

}

#region IHierarchyData Members

char[] DelimiterArray; // see constructor

string[] NodeValues; // see constructor


public IHierarchicalEnumerable GetChildren()

{

return new Enumerable(_Path);

}

public IHierarchyData GetParent()

{

throw new Exception("The method or operation is not implemented.");

}

string _Text;



public string Text

{

get { return _Text; }

set { _Text = value; }

}

string _Value;

public string Value

{

get { return _Value; }

set { Value = value; }

}


bool _HasChildren;

public bool HasChildren

{

get { return _HasChildren; }

}

public object Item

{

get { return this as object; }

}

string _Path;

public string Path

{

get { return _Path; }

}

string _Type;

public string Type

{

get { return _Type; }

}

#endregion

}

Thanks, Paul Poland

-- modified at 16:15 Friday 14th July, 2006
QuestionDataList Pin
ADY00714-Jul-06 10:12
ADY00714-Jul-06 10:12 
AnswerRe: DataList Pin
deepaktripathi14-Jul-06 11:05
deepaktripathi14-Jul-06 11:05 
AnswerRe: DataList Pin
deepaktripathi14-Jul-06 11:07
deepaktripathi14-Jul-06 11:07 
QuestionReportviewer control in c#+ASP.net2.0 + postgres Pin
deepaktripathi14-Jul-06 9:51
deepaktripathi14-Jul-06 9:51 
QuestionDataset output to Label [modified] Pin
NiPsTeRs14-Jul-06 7:16
NiPsTeRs14-Jul-06 7:16 
AnswerRe: Dataset output to Label Pin
Not Active14-Jul-06 9:09
mentorNot Active14-Jul-06 9:09 
GeneralRe: Dataset output to Label Pin
NiPsTeRs14-Jul-06 11:11
NiPsTeRs14-Jul-06 11:11 
QuestionUsing asynchronous socket on asp.net page Pin
Rookie14-Jul-06 6:16
Rookie14-Jul-06 6:16 
AnswerRe: Using asynchronous socket on asp.net page Pin
Not Active14-Jul-06 6:52
mentorNot Active14-Jul-06 6:52 
QuestionSqlDataSource Pin
adamoz14-Jul-06 6:00
adamoz14-Jul-06 6:00 
AnswerRe: SqlDataSource Pin
Mohamed El Gohary14-Jul-06 6:43
Mohamed El Gohary14-Jul-06 6:43 
Questiondo master Pages support style sheets? [modified] Pin
bluewavestrider14-Jul-06 5:42
bluewavestrider14-Jul-06 5:42 
AnswerRe: do master Pages support style sheets? Pin
Not Active14-Jul-06 6:49
mentorNot Active14-Jul-06 6:49 
QuestionPassing values using Image button instead of 'Submit' button Pin
swissmiss8614-Jul-06 5:17
swissmiss8614-Jul-06 5:17 
AnswerRe: Passing values using Image button instead of 'Submit' button Pin
Not Active14-Jul-06 6:52
mentorNot Active14-Jul-06 6:52 
QuestionRe: Passing values using Image button instead of 'Submit' button Pin
swissmiss8625-Jul-06 4:21
swissmiss8625-Jul-06 4:21 
QuestionAm I right? Pin
cloudking1196614-Jul-06 3:51
cloudking1196614-Jul-06 3:51 

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.