473,796 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is This Possible: Client Side Web Parts Disappear

I'm working with the following scenario:

I'm building a wizard. Each 'step' of the wizard is its own User Control
page. I'm trying to minimize the 'round trips' (e.g. runat=server) I
make to the server so I want to try to do the following:

When the user clicks the 'next' button on one user control, that control
disappears and the next 'step' in the wizard appears.

So to dothis, I load all of the User Controls as web parts, and then
possibly set the .Visible property on them to make them disappear -- but
for this to happen on the client side.

Is it feasible? Does anyone have another, more efficient way, of doing
this?

Thanks,

-----

Steve Commisso

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
4 1388
It's certainly possible to achieve this on the client side, but not using
server-side controls and properties (such as "visible"). Since you aren't
willing to do a roundtrip to the server (postback), you'll need to use
javascript. I use something like that on my own webpage, it's pretty
straightforward (assuming you know some javascript and DOM) so feel free to
take a look. The "Books" tabs in the bottom right uses it (the rest does
round trips to the server). If you scroll down to the source you'll see the
tabs, the contains and the content, along with the SetContent javascript
call

http://openmymind.net/
http://openmymind.net/script.js

Cheers,
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Steve Commisso" <to***********@ hotmail.com> wrote in message
news:ee******** ******@TK2MSFTN GP14.phx.gbl...
I'm working with the following scenario:

I'm building a wizard. Each 'step' of the wizard is its own User Control
page. I'm trying to minimize the 'round trips' (e.g. runat=server) I
make to the server so I want to try to do the following:

When the user clicks the 'next' button on one user control, that control
disappears and the next 'step' in the wizard appears.

So to dothis, I load all of the User Controls as web parts, and then
possibly set the .Visible property on them to make them disappear -- but
for this to happen on the client side.

Is it feasible? Does anyone have another, more efficient way, of doing
this?

Thanks,

-----

Steve Commisso

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2
It's certainly possible to achieve this on the client side, but not using
server-side controls and properties (such as "visible"). Since you aren't
willing to do a roundtrip to the server (postback), you'll need to use
javascript. I use something like that on my own webpage, it's pretty
straightforward (assuming you know some javascript and DOM) so feel free to
take a look. The "Books" tabs in the bottom right uses it (the rest does
round trips to the server). If you scroll down to the source you'll see the
tabs, the contains and the content, along with the SetContent javascript
call

http://openmymind.net/
http://openmymind.net/script.js

Cheers,
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Steve Commisso" <to***********@ hotmail.com> wrote in message
news:ee******** ******@TK2MSFTN GP14.phx.gbl...
I'm working with the following scenario:

I'm building a wizard. Each 'step' of the wizard is its own User Control
page. I'm trying to minimize the 'round trips' (e.g. runat=server) I
make to the server so I want to try to do the following:

When the user clicks the 'next' button on one user control, that control
disappears and the next 'step' in the wizard appears.

So to dothis, I load all of the User Controls as web parts, and then
possibly set the .Visible property on them to make them disappear -- but
for this to happen on the client side.

Is it feasible? Does anyone have another, more efficient way, of doing
this?

Thanks,

-----

Steve Commisso

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #3
I would question why you want to do everything within a single postback
with no interaction with the server. Do you not require any calls to a
database during this process? Do you not need to get any information
from the server or network while the user is going through the wizard's
steps?

If you're going to do this on the client side with a single postback
then I'm not really sure it would be particularly beneficial for you to
construct the page with user controls. You could instead put all of
the controls on the page and place controls for each step inside a div
block whose style would be set to display:inline; or display:none;
depending on whether it was the active step or not.

Bill E.

Nov 19 '05 #4
I would question why you want to do everything within a single postback
with no interaction with the server. Do you not require any calls to a
database during this process? Do you not need to get any information
from the server or network while the user is going through the wizard's
steps?

If you're going to do this on the client side with a single postback
then I'm not really sure it would be particularly beneficial for you to
construct the page with user controls. You could instead put all of
the controls on the page and place controls for each step inside a div
block whose style would be set to display:inline; or display:none;
depending on whether it was the active step or not.

Bill E.

Nov 19 '05 #5

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

Similar topics

20
2515
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to the site, and then i have to select the file to upload.. i used sendkeys.. and i worked perfect.. BUT ... the computer must be locked for security ( obviusly ) reazons.. so..i think this probable solutions to unlock the computer and run the...
1
3349
by: Peter Row | last post by:
Hi, I have a web app, there is only really 1 aspx page (that the user never sees) the rest of the code is done in a DLL that implements HttpHandler. My app (which is a porting job from Vb6 webclasses) needs to use session cookies (i.e. when all browser windows are closed the cookies disappear) however in my code the cookies disappear after a round trip to the client browser, i.e: Browser
0
338
by: Steve Commisso | last post by:
I'm working with the following scenario: I'm building a wizard. Each 'step' of the wizard is its own User Control page. I'm trying to minimize the 'round trips' (e.g. runat=server) I make to the server so I want to try to do the following: When the user clicks the 'next' button on one user control, that control disappears and the next 'step' in the wizard appears. So to dothis, I load all of the User Controls as web parts, and then
1
3167
by: Chris | last post by:
Hi, I have jsut started to learn ASP development and have read many articles regarding which is the best to use regarding JavaScript or VBScript. All of the learning that I have done so far has been using VBScript. I have done the usual database connection and querying stuff using VBScript in my tutorials and have noticed that my code doesnt work when using Mozilla Firefox as VBScript is a Micorsoft language and
5
13123
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called this kind of script "Server Side Java Script". I am in confusion because according to lots of web developer Java Script is a client side scripting language. We can not say it Server Side Java Script.
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10237
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
10187
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,...
1
7553
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
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
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...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
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
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.