473,785 Members | 3,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Determine Which Button Pressed

In my page initialize, I am loading dynamic controls for a survey. On the
survey, I have a stop button. If the user clicks the stop button, because of
the page life cycle, the initialize and page load events run before the
button click and reloads a bunch of controls. Is there a way to keep these
events from running with a button control. The click event of the button has
code to save the user's place in the survey and I only want it to run. Thanks.
Aug 22 '06 #1
14 1949
did u tried use the Wizard component under asp.net 2.0 to do such task???

--

Bruno Alexandre
"a Portuguese in København, Danmark"

"Mike Collins" <Mi*********@di scussions.micro soft.comescreve u na mensagem
news:BB******** *************** ***********@mic rosoft.com...
In my page initialize, I am loading dynamic controls for a survey. On the
survey, I have a stop button. If the user clicks the stop button, because
of
the page life cycle, the initialize and page load events run before the
button click and reloads a bunch of controls. Is there a way to keep these
events from running with a button control. The click event of the button
has
code to save the user's place in the survey and I only want it to run.
Thanks.

Aug 22 '06 #2
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

"Bruno Alexandre" wrote:
did u tried use the Wizard component under asp.net 2.0 to do such task???

--

Bruno Alexandre
"a Portuguese in København, Danmark"

"Mike Collins" <Mi*********@di scussions.micro soft.comescreve u na mensagem
news:BB******** *************** ***********@mic rosoft.com...
In my page initialize, I am loading dynamic controls for a survey. On the
survey, I have a stop button. If the user clicks the stop button, because
of
the page life cycle, the initialize and page load events run before the
button click and reloads a bunch of controls. Is there a way to keep these
events from running with a button control. The click event of the button
has
code to save the user's place in the survey and I only want it to run.
Thanks.


Aug 22 '06 #3
re:
>I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.
What the h*ll are you doing using ASP.NET 1.0 ?

At the very least you should be using ASP.NET 1.1.
although everybody should be, at least, testing ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:CD******** *************** ***********@mic rosoft.com...
>I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

"Bruno Alexandre" wrote:
>did u tried use the Wizard component under asp.net 2.0 to do such task???

--

Bruno Alexandre
"a Portuguese in København, Danmark"

"Mike Collins" <Mi*********@di scussions.micro soft.comescreve u na mensagem
news:BB******* *************** ************@mi crosoft.com...
In my page initialize, I am loading dynamic controls for a survey. On the
survey, I have a stop button. If the user clicks the stop button, because
of
the page life cycle, the initialize and page load events run before the
button click and reloads a bunch of controls. Is there a way to keep these
events from running with a button control. The click event of the button
has
code to save the user's place in the survey and I only want it to run.
Thanks.



Aug 22 '06 #4
That was a typo. Is this better: v1.1.4322. I would like help instead of
criticism.

"Juan T. Llibre" wrote:
re:
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

What the h*ll are you doing using ASP.NET 1.0 ?

At the very least you should be using ASP.NET 1.1.
although everybody should be, at least, testing ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:CD******** *************** ***********@mic rosoft.com...
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

"Bruno Alexandre" wrote:
did u tried use the Wizard component under asp.net 2.0 to do such task???

--

Bruno Alexandre
"a Portuguese in København, Danmark"

"Mike Collins" <Mi*********@di scussions.micro soft.comescreve u na mensagem
news:BB******** *************** ***********@mic rosoft.com...
In my page initialize, I am loading dynamic controls for a survey. On the
survey, I have a stop button. If the user clicks the stop button, because
of
the page life cycle, the initialize and page load events run before the
button click and reloads a bunch of controls. Is there a way to keep these
events from running with a button control. The click event of the button
has
code to save the user's place in the survey and I only want it to run.
Thanks.


Aug 22 '06 #5
re:
That was a typo. Is this better: v1.1.4322.
Yes, that's better.

re:
>I would like help instead of criticism.
Posting correct information would help you in getting help.

You should consider upgrading to 2.0.
Is there anything stopping you from doing that ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:91******** *************** ***********@mic rosoft.com...
That was a typo. Is this better: v1.1.4322. I would like help instead of
criticism.
"Juan T. Llibre" wrote:
>re:
>I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

What the h*ll are you doing using ASP.NET 1.0 ?

At the very least you should be using ASP.NET 1.1.
although everybody should be, at least, testing ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
>"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:CD******* *************** ************@mi crosoft.com...
>I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.
>did u tried use the Wizard component under asp.net 2.0 to do such task???

Bruno Alexandre

Aug 22 '06 #6
Thanks...I realize correct information is much better when needing help.
Sorry for the typo.

The office where I work just started using VS 2003 this year, so there are
no plans to upgrade for at least 2 years.

"Juan T. Llibre" wrote:
re:
That was a typo. Is this better: v1.1.4322.

Yes, that's better.

re:
I would like help instead of criticism.

Posting correct information would help you in getting help.

You should consider upgrading to 2.0.
Is there anything stopping you from doing that ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:91******** *************** ***********@mic rosoft.com...
That was a typo. Is this better: v1.1.4322. I would like help instead of
criticism.
"Juan T. Llibre" wrote:
re:
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

What the h*ll are you doing using ASP.NET 1.0 ?

At the very least you should be using ASP.NET 1.1.
although everybody should be, at least, testing ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:CD******** *************** ***********@mic rosoft.com...
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.
did u tried use the Wizard component under asp.net 2.0 to do such task???

Bruno Alexandre


Aug 22 '06 #7
re:
Thanks...I realize correct information is much better when needing help.
Sorry for the typo.
No problem...

re:
The office where I work just started using VS 2003 this year,
so there are no plans to upgrade for at least 2 years.
Do the guys who run your office realize that VWD is free ?
Also, do they realize that running the .Net Framework 2.0 is free ?

They're free downloads.

Get VWD at :
http://msdn.microsoft.com/vstudio/express/vwd/download/

You can also download the free .Net Framework 2.0 redistributable at :
http://www.microsoft.com/downloads/d...D=0856eacb-436...

And, you can download, for free, the .Net Framework 2.0 SDK at :
http://www.microsoft.com/downloads/d...d=FE6F2099-B7B...

With VWD and the .Net Framework redistributable -or the SDK- there's no need
to spend money for an IDE which *can* target .Net Framework 2.0 objects.

You can continue to use VS 2003 for your .Net Framework/ASP.NET 1.1 development.
That won't interfere with your *free* development of ASP.NET 2.0 apps.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====

"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:48******** *************** ***********@mic rosoft.com...
Thanks...I realize correct information is much better when needing help.
Sorry for the typo.

The office where I work just started using VS 2003 this year, so there are
no plans to upgrade for at least 2 years.

"Juan T. Llibre" wrote:
>re:
That was a typo. Is this better: v1.1.4322.

Yes, that's better.

re:
>I would like help instead of criticism.

Posting correct information would help you in getting help.

You should consider upgrading to 2.0.
Is there anything stopping you from doing that ?


Juan T. Llibre, asp.net MVP
aspnetfaq.co m : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
============== =============== ======
"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:91******* *************** ************@mi crosoft.com...
That was a typo. Is this better: v1.1.4322. I would like help instead of
criticism.
"Juan T. Llibre" wrote:

re:
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

What the h*ll are you doing using ASP.NET 1.0 ?

At the very least you should be using ASP.NET 1.1.
although everybody should be, at least, testing ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
>"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:CD******* *************** ************@mi crosoft.com...
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.
>did u tried use the Wizard component under asp.net 2.0 to do such task???

Bruno Alexandre




Aug 22 '06 #8
I did not realize that VS 2003 could take advantage of the new things in the
2.0 framework, but we have a very rigid process that keeps us from being to
upgrade until approved by higher until they have "fully" tested it. The one
great day I am on my own, I'll work with all the latest and greatest :)

Do you know if I can do what I need in VS 2003?

"Juan T. Llibre" wrote:
re:
Thanks...I realize correct information is much better when needing help.
Sorry for the typo.

No problem...

re:
The office where I work just started using VS 2003 this year,
so there are no plans to upgrade for at least 2 years.

Do the guys who run your office realize that VWD is free ?
Also, do they realize that running the .Net Framework 2.0 is free ?

They're free downloads.

Get VWD at :
http://msdn.microsoft.com/vstudio/express/vwd/download/

You can also download the free .Net Framework 2.0 redistributable at :
http://www.microsoft.com/downloads/d...D=0856eacb-436...

And, you can download, for free, the .Net Framework 2.0 SDK at :
http://www.microsoft.com/downloads/d...d=FE6F2099-B7B...

With VWD and the .Net Framework redistributable -or the SDK- there's no need
to spend money for an IDE which *can* target .Net Framework 2.0 objects.

You can continue to use VS 2003 for your .Net Framework/ASP.NET 1.1 development.
That won't interfere with your *free* development of ASP.NET 2.0 apps.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====

"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:48******** *************** ***********@mic rosoft.com...
Thanks...I realize correct information is much better when needing help.
Sorry for the typo.

The office where I work just started using VS 2003 this year, so there are
no plans to upgrade for at least 2 years.

"Juan T. Llibre" wrote:
re:
That was a typo. Is this better: v1.1.4322.

Yes, that's better.

re:
I would like help instead of criticism.

Posting correct information would help you in getting help.

You should consider upgrading to 2.0.
Is there anything stopping you from doing that ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:91******** *************** ***********@mic rosoft.com...
That was a typo. Is this better: v1.1.4322. I would like help instead of
criticism.

"Juan T. Llibre" wrote:

re:
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

What the h*ll are you doing using ASP.NET 1.0 ?

At the very least you should be using ASP.NET 1.1.
although everybody should be, at least, testing ASP.NET 2.0.

Juan T. Llibre, asp.net MVP

"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:CD******** *************** ***********@mic rosoft.com...
I am only using ASP.Net 1.0. As far as I know, there is no wizard for that.

did u tried use the Wizard component under asp.net 2.0 to do such task???

Bruno Alexandre

Aug 22 '06 #9
"Mike Collins" <Mi*********@di scussions.micro soft.comwrote in message
news:BB******** *************** ***********@mic rosoft.com...
In my page initialize, I am loading dynamic controls for a survey. On the
survey, I have a stop button. If the user clicks the stop button, because
of
the page life cycle, the initialize and page load events run before the
button click and reloads a bunch of controls. Is there a way to keep these
events from running with a button control. The click event of the button
has
code to save the user's place in the survey and I only want it to run.
Thanks.
You've obviously tried if (!Page.IsPostba ck) ...?
Aug 22 '06 #10

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

Similar topics

1
2837
by: robert | last post by:
hi! I want to have a custom button change appearance when pressed and then call a function and change back to its original appearance when released. here's what i have now, which works mostly. "drop" is my handler for the button, its argument tells me which button was pressed. i have a number of these buttons and they are organized in a table. there is a fair amount of superstition here, the result of many tiny
2
41059
by: jb | last post by:
Hello, I need to know which button was pressed in the submit , i tried reading the vaule of submit it the validateDate function but it returns 'undefined' value ; I do this in asp all the time, Not sure how to do it in javascript <form name="form1" method="post" action="myNewplace.asp" ONSUBMIT="return ValidateData();"> <input type="Submit" name="Submit" value="Save" >
3
1976
by: James McGivney | last post by:
I have a project in VS.NET using C# I have a series of buttons on an aspx page. When one of the buttons is pressed, a panel becomes visible and allows the user to enter and edit data. I want to use this data to modify the text of the button I am thinking of storing a unique identifier in View State when the button is pressed. After the user enters or edits the data, I plan use a Switch structure indexed from the number stored in View State...
18
3070
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to button style, I must use a System.Windows.Forms.Button. I can not find a way to tell when it is momentaraly pressed. I tried calling the API SendMessage with the button handle and BM_GETSTATE to get the state of the button. This will only return...
2
2537
by: Vern | last post by:
I have a custom control which has it's own OnValidating event handler. I would like to skip the validations if the Cancel/Exit button is pressed. Also, if possible, would like to skip the validations if the X was clicked to close the form. How can I do this? Thanks, Vern
0
1197
by: Vern | last post by:
I have a custom control which has it's own OnValidating event handler. I would like to skip the validations if the Cancel/Exit button is pressed. Also, if possible, would like to skip the validations if the X was clicked to close the form. How can I do this? Thanks, Vern
0
1171
by: Benjamin Bittner | last post by:
hallo ng, first of all, for the zipping progress i use the ziplib from http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx now to my problem. im trying to build a little application for zipping our webservers logfiles. after zipping all files, i've tried to delete all files, but i couldnt. i got an error message that i cannot delete a file, because it is still in use. Here my two functions for that:
19
2208
by: darrel | last post by:
On my vb.net page, I have 4 sets of inputs + form buttons. example: Search: (GO) Zip: (GO) County: (GO) County: (GO) The problem is if I go to the page, type in a zip code, and hit enter.
3
4293
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
Is there any way to determine the state of the mouse buttons during a WM_NCHITTEST message? I have a situation where I need to perform custom logic during a WM_NCHITTEST messsage (by overriding a form's WndProc method), but the logic should only be implemented if the left mouse button is pressed. I am familiar with Windows.Forms.Control.MouseButtons, but that property is not updated until after the WM_NCHITTEST occurs. Thanks for any...
0
9645
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
10327
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10092
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,...
0
9950
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 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...
0
8973
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, 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...
1
7499
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
5381
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...
1
4053
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
3647
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.