Re: Covert javascripts to use in code behind form

Discussion in 'ASP .Net' started by Alexey Smirnov, Feb 25, 2010.

  1. 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);"
    Alexey Smirnov, Feb 25, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Miller [msft]

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    565
    Alphonse Giambrone
    Jun 28, 2003
  2. Guest
    Replies:
    4
    Views:
    479
    Andrew Thompson
    Jul 29, 2005
  3. =?Utf-8?B?aGVuaw==?=

    Covert UTC String to UTC Datetime

    =?Utf-8?B?aGVuaw==?=, May 7, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    18,703
    Egbert Nierop \(MVP for IIS\)
    May 7, 2006
  4. Morgan Cheng
    Replies:
    4
    Views:
    616
    Morgan Cheng
    Dec 17, 2004
  5. John

    Non-code behind to code behind

    John, Feb 19, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    464
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 19, 2007
Loading...

Share This Page