473,386 Members | 1,828 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,386 software developers and data experts.

simple question on how a control works in browser...

This might a stupid question....

I using an IE Web tree control in a ASP.NET application and am
wondering when I click to expand the tree is the web application going
back to the control on the server or working on the client side?

And if yes to going back to the client side then how is it working?
When I do a view source I don't see a client side function to expand
the tree or is something being used within IE or the DHTML model?

Thanks,

Elizabeth

Nov 19 '05 #1
3 948
There are several properties on the new treeview control that allow the
control to do any of the behaviors you mentioned:
* All node data can be kept on the client side
* Or the control can use client side callbacks to retrieve the child node
data dynamically from the server when a user expands the parent node
* Or the control can post the page back to retrieve an updated view of the
nodes.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ez******@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
This might a stupid question....

I using an IE Web tree control in a ASP.NET application and am
wondering when I click to expand the tree is the web application going
back to the control on the server or working on the client side?

And if yes to going back to the client side then how is it working?
When I do a view source I don't see a client side function to expand
the tree or is something being used within IE or the DHTML model?

Thanks,

Elizabeth

Nov 19 '05 #2
Here's some server side code that uses javascript to display a confirmation
message.

myDeleteButton.Attributes.Add("onclick", _
"return confirm('Are you sure you want to delete?');")

In this example, the Delete button will post back only if the person
confirms they want to delete. Otherwise the server code is never called in
response to the button click.

Here's more info:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ez******@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
This might a stupid question....

I using an IE Web tree control in a ASP.NET application and am
wondering when I click to expand the tree is the web application going
back to the control on the server or working on the client side?

And if yes to going back to the client side then how is it working?
When I do a view source I don't see a client side function to expand
the tree or is something being used within IE or the DHTML model?

Thanks,

Elizabeth

Nov 19 '05 #3
Sorry, this one was meant for another thread...

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Here's some server side code that uses javascript to display a
confirmation
message.

myDeleteButton.Attributes.Add("onclick", _
"return confirm('Are you sure you want to delete?');")

In this example, the Delete button will post back only if the person
confirms they want to delete. Otherwise the server code is never called in
response to the button click.

Here's more info:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ez******@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
This might a stupid question....

I using an IE Web tree control in a ASP.NET application and am
wondering when I click to expand the tree is the web application going
back to the control on the server or working on the client side?

And if yes to going back to the client side then how is it working?
When I do a view source I don't see a client side function to expand
the tree or is something being used within IE or the DHTML model?

Thanks,

Elizabeth


Nov 19 '05 #4

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

Similar topics

3
by: Christopher D. Wiederspan | last post by:
I've got a WebBrowser control in a C# Windows form. I build HTML on the fly and then set it into the control using the DocumentText property of the control. All of this works fine, except that part...
1
by: Mark Johnson | last post by:
I wonder if anyone has a solution? I wanted to use the web browser control as a 'zoom' box for a smaller textbox. I can format in the control, and save whatever formatting as HTML code back to the...
7
by: Mike | last post by:
Hi! I posted this question in browser_ctl group as well but got no results. I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's...
7
by: SL | last post by:
Could someone direct to a simple explanation of how to use MS Visual Studio 2003 to design .aspx code? This code works if pasted into notepad and run as an .aspx file: <%@ Import...
3
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
10
by: serge calderara | last post by:
Dear all, I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when...
2
by: Graham | last post by:
Hi everyone I'm having a couple of problems with the Internet Explorer browser control. I'm using VS.NET 2003 on Win2k SP4 with IE6. First, let me briefly describe how it's used in my project....
1
by: Oenone | last post by:
I've reached the conversion of a part of my application from VB6 to VB.NET which uses the COM Web Browser control to display HTML content generated by my application. The general approach used...
1
by: john conwell | last post by:
I'm using the Browser control to display html that my application generates. Some times i want a javascript to run when the html gets displayed in the browser control, and sometimes i dont. Is...
5
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.