473,466 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Wizard SideBarButtonClick

In this event I can tell where I'm going via e.NextStepIndex but how can I
tell where I am coming from? Do I have to setup Session["whereamI"] and
track it myself?

--
Regards,
Gary
Jun 27 '08 #1
2 1514
Hello GaryDean,

use the session or url string for this

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
GIn this event I can tell where I'm going via e.NextStepIndex but how
Gcan I tell where I am coming from? Do I have to setup
GSession["whereamI"] and track it myself?
G>
Jun 27 '08 #2
Hi Gary,

As for the Wizard control, it only store the current ActiveStep's Index
internally. And in the "SideBarButtonClick" event, it will provide the
currentIndex as one parameter and the target stepindex(the one user has
clicked) as next step index. If you need the further previous step index,
you need to manually persist it. One good place to store it is using
ViewState. And here you can simply use Wizard control's Attributes
collection to store it(that will be automatically persisted into
viewstate).

Here is a simple code snippet I've tried on this.
=====================
protected void Wizard1_SideBarButtonClick(object sender,
WizardNavigationEventArgs e)
{
string prev = Wizard1.Attributes["previous_step"];

Response.Write(
string.Format("<br/>originally come from step{0} to step{1}"
, prev, e.CurrentStepIndex)
);

Response.Write(
string.Format("<br/>will go from step{0} to step{1}"
, e.CurrentStepIndex, e.NextStepIndex)
);
Wizard1.Attributes["previous_step"] = e.CurrentStepIndex.ToString();
}
==========================

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "GaryDean" <gd**********@newsgroup.nospam>
Subject: Wizard SideBarButtonClick
Date: Sun, 15 Jun 2008 11:16:09 -0700
>In this event I can tell where I'm going via e.NextStepIndex but how can I
tell where I am coming from? Do I have to setup Session["whereamI"] and
track it myself?

--
Regards,
Gary
Jun 27 '08 #3

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

Similar topics

0
by: Deano | last post by:
I know this is a long, long shot since I've never seen anyone else confess to owning this software but..... Does anyone know what the correct sequence is to get the MSI wizard functioning...
0
by: AP | last post by:
I have build an addin that works great as a menu add in, however I recently tried to make it a query wizard so it would appear in the options for a new query. It shows up in the new object box, but...
2
by: Nick | last post by:
Is there anyway to get a javascript confirm button on the wizard control so that when a user clicks "cancel" it can prompt something like... "Are you sure you want to cancel? Your changes will...
2
by: John R. Lewis | last post by:
I posted this yesterday with a different email address. I am reposting with my fake-address as given to me by Microsoft so that I can be guraranteed a response from a support representative. Sorry...
6
by: Douglas J. Badin | last post by:
Earlier this month, there was a posting about this without a definitive answer. If you place a Wizard inside a FormView's EditItemTemplate the bound fields contained within the View will display...
6
by: tom c | last post by:
I create 2 data OleDbDataAdapters, one with the wizard, and one in code. I know the adapter created in code is OK because I use it to fill a data table. However, when I try to use the same SQL...
12
by: raghav | last post by:
Hi I am working on ASP.NET 2.0. I am developing a website using Wizard control. Based on number of steps added, next, previous, finish buttons generate automatically. After running the...
0
bartonc
by: bartonc | last post by:
Examples of wx.Wizard that I found used explicit names for the pages. Using eval() in a list comprehension, I am able to go through the imported modules by name and call create() in order to get a...
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
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
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...
0
tracyyun
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...
0
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,...
0
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.