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 *** 4 1389
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 ***
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 ***
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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
|
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
|
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
|
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.
| |
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...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
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();...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |