![]() |
|
|
|
#1 |
|
How to make a button inactive after one click only, offcourse after all the
page validators are satisfied? Any help? Bishoy George |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
|
|
#4 |
|
Posts: n/a
|
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 |
|
|
|
#5 |
|
Posts: n/a
|
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 |
|
|
|
#6 |
|
Posts: n/a
|
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 |
|
|
|
#7 |
|
Posts: n/a
|
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 |
|
|
|
#8 |
|
Posts: n/a
|
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 |
|
|
|
#10 |
|
Posts: n/a
|
'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 (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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |