473,406 Members | 2,467 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,406 software developers and data experts.

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 1364
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**************@TK2MSFTNGP14.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**************@TK2MSFTNGP14.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
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...
1
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...
0
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...
1
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.