Results 1 to 7 of 7

Thread: [RESOLVED] Control radio using Script

Threaded View

  1. #1

    Thread Starter
    Addicted Member scsfdev's Avatar
    Join Date
    Feb 2008
    Location
    Singapore
    Posts
    224

    Resolved [RESOLVED] Control radio using Script

    Hi all,

    I have one problem in ASP.NET 2.0. (I'm a beginner in ASP.Net. )
    I want to control radio checked_changed event using VBScript.
    I already try this code in button click using script and its worked well but when I move to radio button, its not working.
    anybody know the reason and why???? (And I don't want to use 'AutoPostBack = true' because it post back to server every time i click on it. so the page seems to refresh every time i click. i don't want it to reload or refresh or flash the screen. just like windows based app to let it works smooth.)

    sorry to disturb you guys if my question is too simple.

    Here is my script code:
    Code:
     Protected Sub CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
            Me.TextBox1.Text = "Click on script"
            Me.TextBox1.Enabled = False
        End Sub
    And here is radio button code:
    Code:
    <asp:RadioButton ID="RadioButton1" runat="server" GroupName="a" Style="position: static" OnCheckedChanged="CheckedChanged" />
    <asp:RadioButton ID="RadioButton2" runat="server" GroupName="a" Style="position: static" OnCheckedChanged="CheckedChanged"/>
    Please F1!!!

    Thanks.
    Last edited by scsfdev; Dec 9th, 2008 at 01:18 AM.
    I'm using VS 2005 & 2008 & 2010 with SQL Server 2005 Express.

    My hobby beside programming: http://dslrstranger.wordpress.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width