473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

how to reflect changes in server-control to client?

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

Dec 2 '05 #1
2 4891
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
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

Dec 3 '05 #2
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.

Dec 3 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eric Sykes | last post by:
After installing VSNet for several reasons I had to restore the system to before the VSNet installation. I reinstalled VSNet no problem but now when I open up VSNet a message pops up saying "Help...
0
by: Bob Jones | last post by:
Visual Studio .NET aborts after displaying "Help is updating to reflect your recent changes. This may take several minutes." generates Event Viewer Application error: Faulting application...
8
by: McKirahan | last post by:
Firefox does not reflect selected option via innerHTML How do I get Firefox to reflect selected option values? <html> <head> <title>FFinner.htm</title> <script type="text/javascript">...
0
by: Ryo | last post by:
Hello ! I have this simple aspx page: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test_treeview.aspx.cs" Inherits="test_treeview" Title="Treeview" %> <asp:Content...
1
by: =?Utf-8?B?QnJhbmRvbg==?= | last post by:
Hi, I have an aspx page that contains an include section which calls an html page for text to be displayed on the aspx page. I also have an upload page that allows users to upload a simple html...
0
by: AliRezaGoogle | last post by:
Dear members, I have a datagrid and a textbox on my form. I bound both of them to a common datasource( an arbitrary datatable). When I change a text inside textbox I expect that value of same...
1
by: AliRezaGoogle | last post by:
Dear Group, I have a SQL Server 2000 databse with some tables. The tables contents are modified by many users at the same time. When I fetch some rows from a table via dataset into my application...
1
by: Latha | last post by:
I have bound a array of objects to datagridview in vb.net. If I add new objects to array, that doesn't reflect in datagridview. What I have to do? Thanks, Latha.P
2
by: ejamnadas | last post by:
I have an unbound form, whose combobox and textboxes are also unbound. The form's record source is a query (getdata) . It has combo box whose rowsource is the same query. The afterupdate event...
1
by: amitjaura | last post by:
Well i have a datagridview in my application and i want it to reflect any changes made in server database instantly with some trigger or so? I have a choice to use timer and get the desired results...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.