Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Re: One Time Click Button

 
Thread Tools Search this Thread
Old 10-01-2005, 03:11 AM   #1
Default Re: One Time Click Button


How to make a button inactive after one click only, offcourse after all the
page validators are satisfied?
Any help?




Bishoy George
  Reply With Quote
Old 10-01-2005, 04:46 AM   #2
Bishoy George
 
Posts: n/a
Default Re: One Time Click Button
I know only C# , all your codes are in vb.net. Could you rewrite them in C#


"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:...
>I wrote a javascript function that does exactly what you want. It's a part
>of a Javascript component I give away for free (with full source code) as a
>Visual Studio.Net 2003 project on my website, www.aboutfortunate.com, even
>if you don't have a use for the other scripts in the javascript object you
>could always copy and reuse the code for the "AttachDisableSubmit" method.
>
> If you want to download the project click the "Code Library" link at the
> top of the page and then click the "Javascript" button in the menu on the
> left.
>
> There is also a help file which provides descriptions / some sample code
> for all of the classes available on my site.
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
> "Bishoy George" <> wrote in message
> news:...
>> How to make a button inactive after one click only, offcourse after all
>> the page validators are satisfied?
>> Any help?
>>
>>

>
>





Bishoy George
  Reply With Quote
Old 10-01-2005, 04:57 AM   #3
Nathan Sokalski
 
Posts: n/a
Default Re: One Time Click Button
Just set the enabled property to true or false after testing the validators
--
Nathan Sokalski

http://www.nathansokalski.com/

"Bishoy George" <> wrote in message
news:...
> How to make a button inactive after one click only, offcourse after all
> the page validators are satisfied?
> Any help?
>
>





Nathan Sokalski
  Reply With Quote
Old 10-01-2005, 05:29 AM   #4
S. Justin Gengo
 
Posts: n/a
Default Re: One Time Click Button
I wrote a javascript function that does exactly what you want. It's a part
of a Javascript component I give away for free (with full source code) as a
Visual Studio.Net 2003 project on my website, www.aboutfortunate.com, even
if you don't have a use for the other scripts in the javascript object you
could always copy and reuse the code for the "AttachDisableSubmit" method.

If you want to download the project click the "Code Library" link at the top
of the page and then click the "Javascript" button in the menu on the left.

There is also a help file which provides descriptions / some sample code for
all of the classes available on my site.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Bishoy George" <> wrote in message
news:...
> How to make a button inactive after one click only, offcourse after all
> the page validators are satisfied?
> Any help?
>
>





S. Justin Gengo
  Reply With Quote
Old 10-01-2005, 06:05 AM   #5
S. Justin Gengo
 
Posts: n/a
Default Re: One Time Click Button
You can mix c# and vb.net .dlls (You're actually doing it already there are
a few parts of ASP.NET that are actually written in VB.NET once they are
used by the JIT (Just In Time Compiler) they are both changed into the same
language anyway. If you just reference the .dll file you'll be able to use
all the Javascript component's functionality.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Bishoy George" <> wrote in message
news:%...
>I know only C# , all your codes are in vb.net. Could you rewrite them in C#
>
>
> "S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
> message news:...
>>I wrote a javascript function that does exactly what you want. It's a part
>>of a Javascript component I give away for free (with full source code) as
>>a Visual Studio.Net 2003 project on my website, www.aboutfortunate.com,
>>even if you don't have a use for the other scripts in the javascript
>>object you could always copy and reuse the code for the
>>"AttachDisableSubmit" method.
>>
>> If you want to download the project click the "Code Library" link at the
>> top of the page and then click the "Javascript" button in the menu on the
>> left.
>>
>> There is also a help file which provides descriptions / some sample code
>> for all of the classes available on my site.
>>
>> --
>> Sincerely,
>>
>> S. Justin Gengo, MCP
>> Web Developer / Programmer
>>
>> www.aboutfortunate.com
>>
>> "Out of chaos comes order."
>> Nietzsche
>> "Bishoy George" <> wrote in message
>> news:...
>>> How to make a button inactive after one click only, offcourse after all
>>> the page validators are satisfied?
>>> Any help?
>>>
>>>

>>
>>

>
>





S. Justin Gengo
  Reply With Quote
Old 10-01-2005, 06:24 AM   #6
S. Justin Gengo
 
Posts: n/a
Default Re: One Time Click Button
That said it's a pretty easy conversion (just finished). So if you really
want the C# here you go:

private void InsertCodeForDisableSubmit(System.Web.UI.Page Page)

{

if (!Page.IsClientScriptBlockRegistered("DisableSubmi tv10"))

{

System.Text.StringBuilder sb;

sb.Append("<script language='javascript'>");

sb.Append("<!--");

sb.Append("var submitcount=0;");

sb.Append("function disableSubmit(alertMessage,showAlertPopUp);");

sb.Append("{");

sb.Append("if (typeof(Page_ClientValidate);=='function');");

sb.Append("{");

sb.Append("if(Page_ClientValidate();==true);");

sb.Append("{");

sb.Append("return checkSubmit(alertMessage, showAlertPopUp);");

sb.Append("}");

sb.Append("else");

sb.Append("{");

sb.Append("return true;");

sb.Append("}");

sb.Append("}");

sb.Append("else");

sb.Append("{");

sb.Append("return checkSubmit(alertMessage,showAlertPopUp);");

sb.Append("}");

sb.Append("}");

sb.Append("function checkSubmit(alertMessage,showAlertPopUp);");

sb.Append("{");

sb.Append("if (submitcount==0);");

sb.Append("{");

sb.Append("submitcount++; return true;");

sb.Append("}");

sb.Append("else");

sb.Append("{");

sb.Append("if (showAlertPopUp=='True');");

sb.Append("{");

sb.Append("alert(alertMessage); return false;");

sb.Append("}");

sb.Append("else");

sb.Append("{");

sb.Append("return false;");

sb.Append("}");

sb.Append("}");

sb.Append("}");

sb.Append("//-->");

sb.Append("</script>");

Page.RegisterClientScriptBlock("DisableSubmitv10", sb.ToString);

}

}

I did this pretty quickly, so be certain to double check it...


--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:...
> You can mix c# and vb.net .dlls (You're actually doing it already there
> are a few parts of ASP.NET that are actually written in VB.NET once they
> are used by the JIT (Just In Time Compiler) they are both changed into the
> same language anyway. If you just reference the .dll file you'll be able
> to use all the Javascript component's functionality.
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
> "Bishoy George" <> wrote in message
> news:%...
>>I know only C# , all your codes are in vb.net. Could you rewrite them in
>>C#
>>
>>
>> "S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
>> message news:...
>>>I wrote a javascript function that does exactly what you want. It's a
>>>part of a Javascript component I give away for free (with full source
>>>code) as a Visual Studio.Net 2003 project on my website,
>>>www.aboutfortunate.com, even if you don't have a use for the other
>>>scripts in the javascript object you could always copy and reuse the code
>>>for the "AttachDisableSubmit" method.
>>>
>>> If you want to download the project click the "Code Library" link at the
>>> top of the page and then click the "Javascript" button in the menu on
>>> the left.
>>>
>>> There is also a help file which provides descriptions / some sample code
>>> for all of the classes available on my site.
>>>
>>> --
>>> Sincerely,
>>>
>>> S. Justin Gengo, MCP
>>> Web Developer / Programmer
>>>
>>> www.aboutfortunate.com
>>>
>>> "Out of chaos comes order."
>>> Nietzsche
>>> "Bishoy George" <> wrote in message
>>> news:...
>>>> How to make a button inactive after one click only, offcourse after all
>>>> the page validators are satisfied?
>>>> Any help?
>>>>
>>>>
>>>
>>>

>>
>>

>
>





S. Justin Gengo
  Reply With Quote
Old 12-14-2006, 11:23 AM   #7
Pitaridis Aristotelis
 
Posts: n/a
Default Generic error function
Can someone tell me how to capture all the errors in a web site in order to
redirect to an appropriate page in order to handle the error?

Aristotelis




Pitaridis Aristotelis
  Reply With Quote
Old 12-14-2006, 11:36 AM   #8
LOVEBoy
 
Posts: n/a
Default Re: One Time Click Button

Hi all!
'acne product review scar treatment' (http://tinyurl.com/vbabp)
'acne laser smoothbeam treatment' (http://tinyurl.com/y5dodx)
'best acne fighting product' (http://tinyurl.com/yjzjfg)
'acne label private product' (http://tinyurl.com/yn39wk)
'best treatment for adult acne' (http://tinyurl.com/ya977m)
'acne home pimples remedy' (http://tinyurl.com/yhbl8u)
'free acne remedy
(http://www.acne-anti.info/1-cream/ac...ne-remedy.html

'african american acne skin care' (http://tinyurl.com/y6ognz)
'acne best care skin treatment' (http://tinyurl.com/yktbqy)
'black skin care acne product' (http://tinyurl.com/yyeeec)
'nature cure acne treatment' (http://tinyurl.com/y8gsfk)
'acne scar laser treatment' (http://tinyurl.com/uxzy7)
'natural acne scar treatment' (http://tinyurl.com/y42w2f)
'skin care acne cosmetic' (http://tinyurl.com/yz7r4v)
'home remedy for adult acne' (http://tinyurl.com/yen3kr)
'black skin care acne product' (http://tinyurl.com/yyeeec)
'photodynamic therapy acne skin care' (http://tinyurl.com/ycuosp)
G'nigh

--
LOVEBo
-----------------------------------------------------------------------
LOVEBoy's Profile: http://www.hightechtalks.com/m43
View this thread: http://www.hightechtalks.com/t11473



LOVEBoy
  Reply With Quote
Old 12-15-2006, 08:44 AM   #9
SprBroker
 
Posts: n/a
Default Re: One Time Click Button

Regarding Moving Averages
'managed ira forex account
(http://forex-global.info/forex-syste...ex-account.php)
'indian forex rate
(http://forex-global.info/forex-strat...forex-rate.php)
'forex forum trader
(http://forex-global.info/forex-softw...rum-trader.php)
'new england forex seminar' (http://tinyurl.com/t74kc)
'broker broker forex forex forex forex forex master online trader.co
trading trading' (http://tinyurl.com/yabwms)
'forex hedging in market
(http://forex-global.info/forex-semin...-in-market.php)
'pair trade forex
(http://forex-global.info/forex-optio...rade-forex.php)
'add forex link trading' (http://tinyurl.com/yhedo3)
'forex online system trading
(http://forex-global.info/forex-mini/...em-trading.php)
'9 99 forex trade
(http://forex-global.info/forex-marke...orex-trade.php)
'broker forex uk
(http://forex-global.info/forex-marke...r-forex-uk.php)
'forex invest option stock' (http://tinyurl.com/y6r95o)
'course course course course course.com forex forex forex forex fore
master trading trading training' (http://tinyurl.com/uwgce)
'automated forex trading software' (http://tinyurl.com/yc4beu)
'forex maker market retail trading' (http://tinyurl.com/yj6pg5)
'forex broker hawaii
(http://forex-global.info/forex-day-t...ker-hawaii.php)
'forex trading system forex trading' (http://tinyurl.com/yyh6tz)
url=http://forex-global.info/forex-course/chart-forex-java.php]char
forex java[/url]
'forex strategy trading tutorial' (http://tinyurl.com/wa8mw)
'china exchange forex parity rate' (http://tinyurl.com/ydf3pf)
'autotrading forex signal
(http://forex-global.info/forex-broke...rex-signal.php)
'day forex trading training
(http://forex-global.info/forex/day-f...g-training.php)
'best forex trading platform' (http://tinyurl.com/y6cmo7)

http://forex-global.info/forex-syste...rex-account.ph
managed ira forex account
http://forex-global.info/forex-strat...forex-rate.php india
forex rate
http://forex-global.info/forex-softw...rum-trader.php fore
forum trader
http://tinyurl.com/t74kc new england forex seminar
http://tinyurl.com/yabwms broker broker forex forex forex forex fore
master online trader.com trading trading
http://forex-global.info/forex-semin...g-in-market.ph
forex hedging in market
http://forex-global.info/forex-optio...rade-forex.php pai
trade forex
http://tinyurl.com/yhedo3 add forex link trading
http://forex-global.info/forex-mini/...tem-trading.ph
forex online system trading
http://forex-global.info/forex-marke...orex-trade.php 9 9
forex trade
http://forex-global.info/forex-marke...r-forex-uk.php broker fore
uk
http://tinyurl.com/y6r95o forex invest option stock
http://tinyurl.com/uwgce course course course course course.com fore
forex forex forex forex master trading trading training
http://tinyurl.com/yc4beu automated forex trading software
http://tinyurl.com/yj6pg5 forex maker market retail trading
http://forex-global.info/forex-day-t...oker-hawaii.ph
forex broker hawaii
http://tinyurl.com/yyh6tz forex trading system forex trading
http://forex-global.info/forex-cours...forex-java.php chart fore
java
http://tinyurl.com/wa8mw forex strategy trading tutorial
http://tinyurl.com/ydf3pf china exchange forex parity rate
http://forex-global.info/forex-broke...orex-signal.ph
autotrading forex signal
http://forex-global.info/forex/day-f...g-training.php day fore
trading training
http://tinyurl.com/y6cmo7 best forex trading platfor

--
SprBroke
-----------------------------------------------------------------------
SprBroker's Profile: http://www.hightechtalks.com/m44
View this thread: http://www.hightechtalks.com/t11473



SprBroker
  Reply With Quote
Old 12-19-2006, 05:59 PM   #10
Mishaki
 
Posts: n/a
Default Re: One Time Click Button

'I've ' (http://tinyurl.com/vbabp)'been
(http://tinyurl.com/y5dodx)'using ' (http://tinyurl.com/yjzjfg)'it
(http://tinyurl.com/yn39wk)'for ' (http://tinyurl.com/ya977m)'3
(http://tinyurl.com/yhbl8u)'weeks
(http://www.acne-anti.info/1-cream/ac...ne-remedy.html

'and ' (http://tinyurl.com/y6ognz)'now my
(http://tinyurl.com/yktbqy)'acne is
(http://tinyurl.com/yyeeec)'completely
(http://tinyurl.com/y8gsfk)'clear' (http://tinyurl.com/uxzy7)'!!!
(http://tinyurl.com/y42w2f)
'I've' (http://tinyurl.com/yz7r4v)' had
(http://tinyurl.com/yen3kr)'acne ' (http://tinyurl.com/yyeeec)'for 9
(http://tinyurl.com/ycuosp)'years ' (http://tinyurl.com/y4b2u'and
(http://tinyurl.com/yxqcd4)'absolutely
(http://tinyurl.com/y7sqec)'nothing
(http://tinyurl.com/tcfww)'worked.' (http://tinyurl.com/yahb2f)
'Great' (http://tinyurl.com/wu6h3)' product
(http://tinyurl.com/y6wkzb)', ' (http://tinyurl.com/v4rpy)'and
(http://tinyurl.com/yc9mrh)'trust ' (http://tinyurl.com/y578q9)'me
(http://tinyurl.com/yymz95)'it ' (http://tinyurl.com/yhbl8u)'actually
(http://tinyurl.com/sutzf)'works' (http://tinyurl.com/yh55m6)'!
(http://tinyurl.com/wfk2j)
'!' (http://tinyurl.com/ykmt6a)'!' (http://tinyurl.com/ydkf52

--
Mishak
-----------------------------------------------------------------------
Mishaki's Profile: http://www.hightechtalks.com/m46
View this thread: http://www.hightechtalks.com/t11473



Mishaki
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SWF to Video Converter popularscan Media 4 06-26-2009 10:18 AM
Cancelling Timer and TimerTask threads wfalby Software 1 04-30-2009 01:04 PM
SWF to Video Converter popularscan Media 3 11-26-2008 07:46 AM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 PM
Pictures save as bitmap files Anthony A+ Certification 5 01-24-2005 11:58 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46