× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You can use this to play an animated GIF when the user clicks the button
too...

<asp:Button runat="server" ID="btnFinish" CommandName="MoveComplete"
onClientClick="javascript:this.disabled=true;showProgress();"
UseSubmitBehavior="False" />

<head runat="server">
<script type="text/javascript">
function showProgress()
{
document.getElementById('progress').style.display ="";
setTimeout('document.images["progressImg"].src="aniLoad.gif"',
200);
}

</script>
</head>

<body>
<span id='progress' style='display:none'>
<img src='aniLoad.gif' id='progressImg' alt=''/>
</span>
</body>

Some gifs: http://www.sanbaldo.com/wordpress/1/ajax_gif/

-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx
[mailto:systemidotnet-bounces@xxxxxxxxxxxx] On Behalf Of Maurice O'Prey
Sent: Wednesday, October 21, 2009 2:02 PM
To: '.net use with the System i'
Subject: Re: [SystemiDotNet] Disabling Button and SubmittingForm
(InWizzardControl)

In essence, two postbacks back to back is like you hitting the button
twice...


Thanks again

Code now looks like this (and only one post back this time)

<asp:Button runat="server" ID="btnFinish" CommandName="MoveComplete"
onClientClick="javascript:this.disabled=true;" UseSubmitBehavior="False"
/>

I wasn't aware of the UseSubmitBehaviour property. And as you pointed
out I
didn't need the JavaScript submit code!!!

Cheers

Maurice



-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx
[mailto:systemidotnet-bounces@xxxxxxxxxxxx] On Behalf Of ibm
Sent: 21 October 2009 18:46
To: .net use with the System i
Subject: Re: [SystemiDotNet] Disabling Button and Submitting Form
(InWizzardControl)

No problem.

In essence, two postbacks back to back is like you hitting the button
twice...

-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx
[mailto:systemidotnet-bounces@xxxxxxxxxxxx] On Behalf Of Maurice O'Prey
Sent: Wednesday, October 21, 2009 12:34 PM
To: '.net use with the System i'
Subject: Re: [SystemiDotNet] Disabling Button and Submitting Form
(InWizzardControl)

UseSubmitBehavior="false"

Many Thanks

That solves it!

I'll check to see if OnLoad is called twice but that shouldn't be a
problem
either way.

Kind Regards

Maurice O'Prey

-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx
[mailto:systemidotnet-bounces@xxxxxxxxxxxx] On Behalf Of ibm
Sent: 21 October 2009 15:04
To: .net use with the System i
Subject: Re: [SystemiDotNet] Disabling Button and Submitting Form (In
WizzardControl)

Add

UseSubmitBehavior="false"

To your button code.

Also, explicitly calling document.aspnetForm.submit(); will probably
call page_load twice...

-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx
[mailto:systemidotnet-bounces@xxxxxxxxxxxx] On Behalf Of Maurice O'Prey
Sent: Wednesday, October 21, 2009 7:56 AM
To: systemidotnet@xxxxxxxxxxxx
Subject: [SystemiDotNet] Disabling Button and Submitting Form (In
WizzardControl)

Hi All

I know this is not strictly .NET with the iSeries but I hope you'll take
pity on me..(the application is driving of iSeries data)?

I am using an ASP.NET Wizard control and I want to disable the finish
button
on the final step when the user clicks it and then submit the form. I'm
using the code below:


<FinishNavigationTemplate>
<asp:Button runat="server" ID="btnFinish" CommandName="MoveComplete"
onClientClick="javascript:this.disabled=true;document.aspnetForm.submit(
);"
/>

</FinishNavigationTemplate>

The Finish Button is disabled OK and the form does post back but it
Seems that the Wizard Step Arguments are lost and the appropriate Step
Activate Event does not fire (it does fire when I omit the JavaScript).
Does
Anyone know how to submit the form with all arguments in place?

Many thanks for any help.


Kind Regards


Maurice O'Prey


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.