473,703 Members | 3,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4921
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 "FlyTreeVie w 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
misunderstandin g 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.
BindingContaine r (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.
ClientRuntimePa th - Sets or gets the relative or absolute path to
client runtime files required by control.
Controls (inherited from Control) - Gets a ControlCollecti on 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.
ControlStyleCre ated (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.
ExpandToNodeKey List - 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 ClientRuntimePa th to plus, minus
and lines images of treeview.
ID - (inherited from Control) Gets or sets the programmatic
identifier assigned to the server control.
IsRequiredBrows er - 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.
SelectedNodeKey List - 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.
TemplateSourceD irectory - (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.
CopyBaseAttribu tes - (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.
SetRenderMethod Delegate - (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.
SelectedNodeCha nged - Occures when selected node index changed.
Unload - (inherited from Control) Occurs when the server control is
unloaded from memory.

Protected Instance Properties
ChildControlsCr eated - (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.
HasChildViewSta te - (inherited from Control) Gets a value indicating
whether the current server control's child controls have any saved
view-state settings.
IsTrackingViewS tate - (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 HtmlTextWriterT ag
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.
ViewStateIgnore sCase - (inherited from Control) Gets a value that
indicates whether the StateBag object is case-insensitive.

Protected Instance Methods
AddAttributesTo Render - This member overrides AddAttributesTo Render.

AddParsedSubObj ect - Adds a parsed child control to a parent
control. Called at compilation time by ASP.NET.
BuildProfileTre e - (inherited from Control)
ClearChildViewS tate - (inherited from Control) Deletes the
view-state information for all the server control's child controls.
CreateChildCont rols - (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.
CreateControlCo llection - (inherited from Control) Creates a new
ControlCollecti on object to hold the child controls (both literal and
server) of the server control.
CreateControlSt yle - (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.
EnsureChildCont rols - (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.
IsLiteralConten t (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.
OnSelectedNodeC hanged - 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.
RaiseBubbleEven t - (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
IAttributeAcces sor.GetAttribut e (inherited from WebControl)
IAttributeAcces sor.SetAttribut e (inherited from WebControl)
IParserAccessor .AddParsedSubOb ject (inherited from Control)
IPostBackDataHa ndler.LoadPostD ata Processes post back data for a server
control.
IPostBackDataHa ndler.RaisePost DataChangedEven t 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
1310
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 is updating to reflect your recent changes". Then a send dont send debug dialog appears and whatever option I choose VSNet shuts down. This is an endless cycle and I cant run any applications within the environment. The error details read: An...
0
1324
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 devenv.exe, version 7.0.9466.0, faulting module hxds.dll, version 2.1.9466.0, fault address 0x0001e619. Running F:\Program Files\Common Files\Microsoft Shared\Help\dexplore.exe causes a similar error. Faulting application dexplore.exe, version...
8
8436
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"> function clicks() { document.getElementById("t1").value =
0
1237
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 ID="cntCorpCentre" ContentPlaceHolderID="cphCorpCentre" EnableViewState="false" RunAt="Server"> <asp:TreeView ID="Organigramme" SkinID="Organigramme" EnableViewState="false" RunAt="server" />
1
2386
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 page with the same name everytime and places it on the server. My problem is that the aspx page does not update to reflect the changes made to the uploaded html page. However, if I log into the server and open the aspx page that contains the code...
0
1098
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 column in datagride also change and be equal to new value entered inside textbox. But this change reflects to datagrid just when I change selected row in the datagrid.
1
1571
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 , I just have a static version of rows. When other users modify the rows I do not have new changes on them. In other words I want to have most up-to-date version of rows every time. One way is to refresh dataset ( re-fetch) in short periods of...
1
1249
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
2450
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 for the combobox assigns a column from the query, (Document_Control_Number), + 1, to a textbox in the form. When the form is submitted, the values are added into the table, but when I make a selection in the combobox, it does not use the updated...
1
2377
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 by binding datagridview after every 5 sec's or so but i dont want to do this .As it ll affect the performanc e of my application.Please suggest a better way out......
0
8662
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9243
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9109
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9002
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7853
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6585
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4420
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2057
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.