Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Covert javascripts to use in code behind form

Reply
Thread Tools

Re: Covert javascripts to use in code behind form

 
 
Alexey Smirnov
Guest
Posts: n/a
 
      02-25-2010
On Feb 25, 5:47*pm, "aspfun via DotNetMonster.com" <u53138@uwe> wrote:
> How to convert a javascripts below to use in code behind form?
>
> <script type="text/javascript">
> document.getElementById('Ok').disabled = true;
> setTimeout(function(){
> * document.getElementById('Ok').disabled = false;}, 15000);
>
> </script>
>
> Convert to:
>
> Dim strJScript As New StringBuilder
> strJScript.Append("document.getElementById('" + Ok.ClientID + "').disabled
> =true;")
>
> //help to convert below code:
>
> ------
>
> setTimeout(function(){
> * document.getElementById('Ok').disabled = false;
>
> }, 15000);
>
> ------
> ClientScript.RegisterStartupScript(Me.GetType(), "myCode", strJScript.
> ToString(), True)
>
> --
> Message posted viahttp://www.dotnetmonster.com


Dim strJScript As String
strJScript = "setTimeout(function()
{document.getElementById('Ok').disabled = false;}15000);"
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-code behind to code behind John ASP .Net 2 02-19-2007 07:08 PM
Covert UTC String to UTC Datetime =?Utf-8?B?aGVuaw==?= ASP .Net 3 05-07-2006 06:25 PM
How to covert String("6,400.0") to Double ? Java 4 07-29-2005 05:48 AM
Error trying to use VS form designer with inherited code behind class AP ASP .Net 1 08-26-2003 06:21 PM
Re: Code Behind vs. no code behind: error Ben Miller [msft] ASP .Net 1 06-28-2003 01:46 AM



Advertisments