how to reflect changes in server-control to client?

M

Mike

Hi,
I am strugling with a simple problem which I can't seem to resolve.
I have an asp.net page which contains a server-control (flytreeview,
which is a kind
of a tree to be exact).
The tree is being updated by some other process through remoting.
When the page loads, I init the tree, and in my browser I can see the
initialized tree.
The problem is that every time that I receive update to tree from the
remote process,
I don't see any change in the browser window.
I checked, and made sure that the tree is indeed updated, i.e. it
contains new nodes,
but I never see them in browser.
My guess is that I have to make some post-back to client, to reflect
the changes that
occured in server control, but I have no idea how to do that.

Thanx alot,
Mike
 
G

Guest

Hi Mike,

Could you please check if there is any Refresh() Method is there for that
Tree Control. If it is there, After populating, you just call Refresh.

could you please give some more info on flytreeview like which 3rd party
control, what properties and methods it has .....

Bye
Venkat_KL
 
M

Mike

Hi,
The company that developed the control is caled "9Rays.Net", and the
full name of the control is "FlyTreeView for ASP.NET".
There is no even a slightest hint for some refresh method or postback,
or post method in the flytreeview class.
I posted a question on their site, but no answer there.
Another reason why I'm asking this here, is that I thought that maybe a
problem is
not with the control but with some fundamental conceptual
misunderstanding that I have regarding working with ASP.Net pages.

Here is a list of all members of the class: (sorry for the long lisg,
but you asked for it :))


Public Instance Properties
AccessKey (inherited from WebControl) - Gets or sets the access key
(underlined letter) that allows you to quickly navigate to the Web
server control.
Attributes - (inherited from WebControl) Gets the collection of
arbitrary attributes (for rendering only) that do not correspond to
properties on the control.
BackColor (inherited from WebControl) - Gets or sets the background
color of the Web server control.
BackgroundImage - Gets or sets background image url for the
FlyTreeView control.
BindingContainer (inherited from Control) -
BorderColor (inherited from WebControl) - Gets or sets the border
color of the Web control.
BorderStyle - Overloaded. Gets or sets the border style of the Web
server control.
BorderWidth (inherited from WebControl) - Gets or sets the border
width of the Web server control.
ChildIndent - Space in pixels between neighbour node levels.
ClientID (inherited from Control) - Gets the server control
identifier generated by ASP.NET.
ClientRuntimePath - Sets or gets the relative or absolute path to
client runtime files required by control.
Controls (inherited from Control) - Gets a ControlCollection object
that represents the child controls for a specified server control in
the UI hierarchy.
ControlStyle (inherited from WebControl) - Gets the style of the Web
server control. This property is used primarily by control developers.
ControlStyleCreated (inherited from WebControl) - Gets a value
indicating whether a Style object has been created for the ControlStyle
property. This property is primarily used by control developers.
CssClass (inherited from WebControl) - Gets or sets the Cascading
Style Sheet (CSS) class rendered by the Web server control on the
client.
DataFields (inherited from FlyControlBase) - Gets alternative data
source field names to be used when data binding.
DataMember (inherited from FlyControlBase) - Gets or sets the
specific data member in a multimember data source to bind to a control.

DataSource (inherited from FlyControlBase) - Gets or sets the source
containing a list of values used to populate the nodes within the
control.
DefaultNodeType - Default NodeType applied to root nodes.
Enabled (inherited from WebControl) - Gets or sets a value
indicating whether the Web server control is enabled.
EnableViewState (inherited from Control) - Gets or sets a value
indicating whether the server control persists its view state, and the
view state of any child controls it contains, to the requesting client.

ExpandLevel - Get or sets number of node levels to expand at initial
time.
ExpandToNodeKeyList - Gets or sets keylist of the node that is
required to be expanded when the treeview is initially loaded.
Font Overloaded. - Not used.
ForceInit - Gets or sets whether treeview recursively initializes
all its loaded nodes.
ForeColor - (inherited from WebControl) Gets or sets the foreground
color (typically the color of the text) of the Web server control.
Height - (inherited from WebControl) Gets or sets the height of the
Web server control.
IconSetPath - Relative path from ClientRuntimePath to plus, minus
and lines images of treeview.
ID - (inherited from Control) Gets or sets the programmatic
identifier assigned to the server control.
IsRequiredBrowser - Gets a value indication if client has browser
needed to process FlyTreeView.
LoadingMessage - Message that appears when nodes are loading.
NamingContainer - (inherited from Control) Gets a reference to the
server control's naming container, which creates a unique namespace for
differentiating between server controls with the same ID property
value.
Nodes - (inherited from FlyControlBase) Collection of TreeNode.
NodeSrc - Url of xml file of nodes (or FlyNodeSet page).
NodeTypes - Collection of TreeNodeTypes.
Padding - Gets or sets inner padding of the control.
Page - (inherited from Control) Gets a reference to the Page
instance that contains the server control.
Parent - (inherited from Control) Gets a reference to the server
control's parent control in the page control hierarchy.
ScrollLeft - Gets or sets left offset for the scroll position.
ScrollTop - Gets or sets top offset for the scroll position.
SelectedNode - Gets or sets selected node of the control.
SelectedNodeKeyList - String array of keys of the selected node.
ShowLines - Gets or sets a boolean value whether to show lines
connecting nodes.
Site - (inherited from Control) Gets information about the Web site
to which the server control belongs.
Style - (inherited from WebControl) Gets a collection of text
attributes that will be rendered as a style attribute on the outer tag
of the Web server control.
SupportIE55 - Enable support of IE 5.5 + MSXML 3. Client computer
requires MSXML 3 or higher installed.
TabIndex (inherited from WebControl) - Gets or sets the tab index of
the Web server control.
TemplateSourceDirectory - (inherited from Control) Gets the virtual
directory of the Page or UserControl that contains the current server
control.
ToolTip - Overloaded. Not used.
UniqueID - (inherited from Control) Gets the unique,
hierarchically-qualified identifier for the server control.
UseFadeEffect - Gets or sets a boolean value whether to use fade
effect.
Visible - (inherited from Control) Gets or sets a value that
indicates whether a server control is rendered as UI on the page.
Width - (inherited from WebControl) Gets or sets the width of the
Web server control.

Public Instance Methods
ApplyStyle - (inherited from WebControl) Copies any nonblank
elements of the specified style to the Web control, overwriting any
existing style elements of the control. This method is primarily used
by control developers.
CopyBaseAttributes - (inherited from WebControl) Copies the
properties not encapsulated by the Style object from the specified Web
server control to the Web server control that this method is called
from. This method is used primarily by control developers.
DataBind - (inherited from FlyControlBase) Overloaded. Binds the
control to the data source specified by the DataSource property.
Dispose - (inherited from Control) Enables a server control to
perform final clean up before it is released from memory.
Equals - (inherited from Object) Determines whether the specified
Object is equal to the current Object.
ExpandToNode - Expands all parent nodes of the node.
FindControl (inherited from Control) Overloaded. Searches the current
naming container for a server control with the specified id parameter.
FindNode - (inherited from FlyControlBase) Finds a node using array
of keys (full path) to the node.
GetAllNodes - (inherited from FlyControlBase) Get all nodes and
subnodes of the control.
GetCheckedNodes - (inherited from FlyControlBase) Gets checked nodes
of the control.
GetHashCode - (inherited from Object) Serves as a hash function for
a particular type, suitable for use in hashing algorithms and data
structures like a hash table.
GetType - (inherited from Object) Gets the Type of the current
instance.
HasControls - (inherited from Control) Determines if the server
control contains any child controls.
MergeStyle - (inherited from WebControl) Copies any nonblank
elements of the specified style to the Web control, but will not
overwrite any existing style elements of the control. This method is
used primarily by control developers.
RenderBeginTag - This member overrides RenderBeginTag.
RenderControl - (inherited from Control) Outputs server control
content to a provided HtmlTextWriter object and stores tracing
information about the control if tracing is enabled.
RenderEndTag - Renders end tag.
ResolveUrl - (inherited from Control) Converts a URL into one that
is usable on the requesting client.
SetRenderMethodDelegate - (inherited from Control)
ToString - (inherited from Object) Returns a String that represents
the current Object.

Public Instance Events
DataBinding - (inherited from Control) Occurs when the server
control binds to a data source.
Disposed - (inherited from Control) Occurs when a server control is
released from memory, which is the last stage of the server control
lifecycle when an ASP.NET page is requested.
Init - (inherited from Control) Occurs when the server control is
initialized, which is the first step in the its lifecycle.
Load - (inherited from Control) Occurs when the server control is
loaded into the Page object.
NodeEvent - Occures when any node of FlyTreeView was selected,
deselected, expanded or collapsed.
PreRender - (inherited from Control) Occurs when the server control
is about to render to its containing Page object.
SelectedNodeChanged - Occures when selected node index changed.
Unload - (inherited from Control) Occurs when the server control is
unloaded from memory.

Protected Instance Properties
ChildControlsCreated - (inherited from Control) Gets a value that
indicates whether the server control's child controls have been
created.
Context - (inherited from Control) Gets the HttpContext object
associated with the server control for the current Web request.
Events - (inherited from Control) Gets a list of event handler
delegates for the control. This property is read-only.
HasChildViewState - (inherited from Control) Gets a value indicating
whether the current server control's child controls have any saved
view-state settings.
IsTrackingViewState - (inherited from Control) Gets a value that
indicates whether the server control is saving changes to its view
state.
TagKey - (inherited from WebControl) Gets the HtmlTextWriterTag
value that corresponds to this Web server control. This property is
used primarily by control developers.
TagName - (inherited from WebControl) Gets the name of the control
tag. This property is used primarily by control developers.
ViewState - (inherited from Control) Gets a dictionary of state
information that allows you to save and restore the view state of a
server control across multiple requests for the same page.
ViewStateIgnoresCase - (inherited from Control) Gets a value that
indicates whether the StateBag object is case-insensitive.

Protected Instance Methods
AddAttributesToRender - This member overrides AddAttributesToRender.

AddParsedSubObject - Adds a parsed child control to a parent
control. Called at compilation time by ASP.NET.
BuildProfileTree - (inherited from Control)
ClearChildViewState - (inherited from Control) Deletes the
view-state information for all the server control's child controls.
CreateChildControls - (inherited from Control) Notifies server
controls that use composition-based implementation to create any child
controls they contain in preparation for posting back or rendering.
CreateControlCollection - (inherited from Control) Creates a new
ControlCollection object to hold the child controls (both literal and
server) of the server control.
CreateControlStyle - (inherited from WebControl) Creates the style
object that is used internally by the WebControl class to implement all
style related properties. This method is used primarily by control
developers.
EnsureChildControls - (inherited from Control) Determines whether
the server control contains child controls. If it does not, it creates
child controls.
Finalize - (inherited from Object) Allows an Object to attempt to
free resources and perform other cleanup operations before the Object
is reclaimed by garbage collection.
FindControl - inherited from Control) Overloaded.
IsLiteralContent (inherited from Control) Determines if the server
control holds only literal content.
LoadViewState - This member overrides LoadViewState.
MapPathSecure - (inherited from Control) Retrieves the physical path
that a virtual path, either absolute or relative, maps to.
MemberwiseClone - (inherited from Object) Creates a shallow copy of
the current Object.
OnBubbleEvent - (inherited from Control) Determines whether the
event for the server control is passed up the page's UI server control
hierarchy.
OnDataBinding - (inherited from Control) Raises the DataBinding
event.
OnInit - Registers the control as needing post back handling.
OnLoad - (inherited from Control) Raises the Load event.
OnNodeEvent - Event handler for node events.
OnPreRender - Sets the hidden helper's data.
OnSelectedNodeChanged - Event handler for selection changes.
OnUnload - (inherited from Control) Raises the Unload event.
Note Server controls should perform any final cleanup, such as
closing files, closing database connections, and discarding objects,
during this stage of the server control lifecycle.
RaiseBubbleEvent - (inherited from Control) Assigns any sources of
the event and its information to the control's parent.
Render - (inherited from WebControl)
RenderChildren - (inherited from Control) Outputs the content of a
server control's children to a provided HtmlTextWriter object, which
writes the content to be rendered on the client.
RenderContents - This member overrides RenderContents.
SaveViewState This member overrides SaveViewState.
TrackViewState (inherited from WebControl)

Protected Internal Instance Methods
AddedControl - (inherited from Control) Called after a control is
added to the Controls collection of another control.
RemovedControl - (inherited from Control) Called after a control is
removed from the Controls collection of another control.

Explicit Interface Implementations
IAttributeAccessor.GetAttribute (inherited from WebControl)
IAttributeAccessor.SetAttribute (inherited from WebControl)
IParserAccessor.AddParsedSubObject (inherited from Control)
IPostBackDataHandler.LoadPostData Processes post back data for a server
control.
IPostBackDataHandler.RaisePostDataChangedEvent Signals the server
control object to notify the ASP.NET application that the state of the
control has changed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top