How do I get ajax event with the default selected radio button list asp.net
<p>I have a problem with setting the default value for RadioButtonList in asp.net.
I've been stuck with this problem for several hours,please help!!</p>

<p>I'm doing an asp.net webpage and here is my code behind of Page_Load function.</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {

            rdoTimeMode.SelectedValue = "Interval";
            DropDownListDataTable();
            txtDate.Text = DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy");
            txtFromDate.Text = DateTime.Now.ToUniversalTime().AddMonths(-1).ToString("MM/dd/yyyy");
            txtToDate.Text = DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy");          
        }
        ScriptManager1.RegisterAsyncPostBackControl(FindControl("btnGo"));
        ScriptManager1.RegisterAsyncPostBackControl(FindControl("rdoTimeMode"));

        Draw_Table();
        Draw_Chart();
    }
</code></pre>

<p>Here is my .aspx page</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="LogTimeReportingWeb._default" %&gt;

&lt;%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
&lt;title&gt;&lt;/title&gt;
&lt;link href="Style/css/gridView.css" rel="stylesheet" type="text/css" /&gt;
&lt;script src="http://localhost:58629/js/jquery-1.9.1.js" type="text/javascript"&gt;  &lt;/script&gt;
&lt;link href="http://localhost:58629/Style/css/ui-darkness/jquery-ui-1.10.2.custom.min.css"
    rel="stylesheet" type="text/css" /&gt;
&lt;script src="http://localhost:58629/js/jquery-ui-1.10.2.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;

      $(document).ready(function () {
          $("#&lt;%=rdoTimeMode.ClientID%&gt; input[value=Interval]").attr("checked",true);
          //$("#rdoTimeMode input:nth-child(1)").attr("checked", true);
          //$('#&lt;%=rdoTimeMode.ClientID %&gt;').find("input[value='Daily SnapShot']").attr("checked", "checked");
          //$('#RadioDiv input:radio:checked').trigger('click');
          $("#lblToDate").hide();
          $("#txtToDate").hide();
          $("#lblFromDate").hide();
          $("#txtFromDate").hide();
          $("#txtFromDate").datepicker({
              numberOfMonths: 1,
              defaultDate: "-1m",
              onClose: function (selectedDate) {
                  $("#txtToDate").datepicker("option", "minDate", selectedDate);
              }
          });
          $("#&lt;%=txtToDate.ClientID%&gt;").datepicker({
              numberOfMonths: 1,
              defaultDate: "+0",
              onClose: function (selectedDate) {
                  $("#txtFromDate").datepicker("option", "maxDate", selectedDate);
              }
          });
          $("#&lt;%=txtDate.ClientID%&gt;").datepicker({
              numberOfMonths: 1,
              defaultDate: "+0",
              maxDate: "+0"
          });
          $("#&lt;%=rdoTimeMode.ClientID%&gt;").change(function () {
              var radioValue = $("#rdoTimeMode input:checked").val();
              if (radioValue == "Daily SnapShot") {
                  $("#lblToDate").hide();
                  $("#txtToDate").hide();
                  $("#lblDate").show();
                  $("#txtDate").show();
                  $("#lblFromDate").hide();
                  $("#txtFromDate").hide();
              }
              else {
                  $("#lblToDate").show();
                  $("#txtToDate").show();
                  $("#lblDate").hide();
                  $("#txtDate").hide();
                  $("#lblFromDate").show();
                  $("#txtFromDate").show();
              }
          });
      });
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id="form1" runat="server"&gt;
&lt;div&gt;       
    &lt;div style="height: 40px; width: 365px"&gt;
        &lt;asp:RadioButtonList ID="rdoTimeMode" runat="server" AutoPostBack="true"RepeatDirection="Horizontal" 
            onselectedindexchanged="rdoTimeMode_SelectedIndexChanged"&gt;
            &lt;asp:ListItem  Value="Daily SnapShot"&gt;Daily SnapShot&lt;/asp:ListItem&gt;
            &lt;asp:ListItem Value="Interval"&gt;Interval&lt;/asp:ListItem&gt;
        &lt;/asp:RadioButtonList&gt;
    &lt;/div&gt;
    &lt;div&gt;
        &lt;asp:Label ID="lblFileNames" runat="server" Text="FileName"&gt;&lt;/asp:Label&gt;
        &lt;asp:DropDownList ID="fileNamesDropDownList" runat="server" Visible="True" &gt;&lt;/asp:DropDownList&gt;
    &lt;/div&gt;
    &lt;div&gt;
        &lt;asp:Label ID="lblDate" runat="server" Text="Date : "&gt;&lt;/asp:Label&gt;
        &lt;asp:TextBox ID="txtDate" runat="server" &gt;&lt;/asp:TextBox&gt;
        &lt;asp:Label ID="lblFromDate" runat="server" Text="From : "&gt;&lt;/asp:Label&gt;
        &lt;asp:TextBox ID="txtFromDate" runat="server" &gt;&lt;/asp:TextBox&gt;
        &lt;asp:Label ID="lblToDate" runat="server" Text="To : "&gt;&lt;/asp:Label&gt;
        &lt;asp:TextBox ID="txtToDate" runat="server"&gt;&lt;/asp:TextBox&gt;           
        &lt;asp:Button ID="btnGo" runat="server" Text="Go" /&gt;
    &lt;/div&gt;       
     &lt;asp:ScriptManager ID="ScriptManager1" runat="server" &gt;&lt;/asp:ScriptManager&gt;
     &lt;asp:UpdatePanel ID="UpdatePanel1"  runat = "server" ClientIDMode="Inherit" UpdateMode="Conditional"&gt;

     &lt;ContentTemplate&gt;

    &lt;div style="width: 540px"&gt;

    &lt;asp:Label ID="Label2" runat="server" Text="No Data"&gt;&lt;/asp:Label&gt;
        &lt;asp:Chart ID="Chart1" runat="server" Height= "400px" Width = "400px"&gt;
            &lt;series&gt;
                &lt;asp:Series Name="Series1"&gt;
                &lt;/asp:Series&gt;
            &lt;/series&gt;
            &lt;chartareas &gt;
                &lt;asp:ChartArea Name="ChartArea1"&gt;
                &lt;/asp:ChartArea&gt;
            &lt;/chartareas&gt;
        &lt;/asp:Chart&gt; 
   &lt;/div&gt;  
   &lt;div&gt;
   &lt;asp:Label ID="lblAlpha" Text="Alpha" runat="server"&gt;&lt;/asp:Label&gt;
&lt;asp:GridView ID="GridViewAlpha" runat="server" 
        BorderColor="Tan" BorderWidth="1px" CellPadding="2" 
        PageSize="10" AllowPaging="true" AllowSorting= "true" 
        OnPageIndexChanging="gridView_PageIndexChanging" 
        OnSorting="gridView_Sorting"
        CssClass="mGrid"
        PagerStyle-CssClass="pgr"
        AlternatingRowStyle-CssClass="alt"&gt;           
&lt;/asp:GridView&gt;
&lt;div class="Status" style="width:100px;height:30px"&gt;
    &lt;asp:Label ID="lblAlphaStatus" Text="No Data" runat="server"&gt;&lt;/asp:Label&gt;
&lt;/div&gt;
&lt;/div&gt;
 &lt;asp:Label ID="lblBeta" Text="Beta" runat="server"&gt;&lt;/asp:Label&gt;
&lt;asp:GridView ID="GridViewBeta" runat="server" 
        BorderColor="Tan" BorderWidth="1px" CellPadding="2" 
        PageSize="10" AllowPaging="true" AllowSorting= "true" 
        OnPageIndexChanging="gridView_PageIndexChanging" 
        OnSorting="gridView_Sorting"
        CssClass="mGrid"
        PagerStyle-CssClass="pgr"
        AlternatingRowStyle-CssClass="alt"&gt;           
&lt;/asp:GridView&gt;
&lt;div class="Status" style="width:100px;height:30px"&gt;
    &lt;asp:Label ID="lblBetaStatus" Text="No Data" runat="server"&gt;&lt;/asp:Label&gt;
&lt;/div&gt;

&lt;/div&gt;
 &lt;asp:Label ID="lblProduction" Text="Production" runat="server"&gt;&lt;/asp:Label&gt;
&lt;asp:GridView ID="GridViewProduction" runat="server" 
        BorderColor="Tan" BorderWidth="1px" CellPadding="2" 
        PageSize="10" AllowPaging="true" AllowSorting= "true" 
        OnPageIndexChanging="gridView_PageIndexChanging" 
        OnSorting="gridView_Sorting"
        CssClass="mGrid"
        PagerStyle-CssClass="pgr"
        AlternatingRowStyle-CssClass="alt"&gt;           
&lt;/asp:GridView&gt;
&lt;div class="Status"style="width:100px;height:30px"&gt;
    &lt;asp:Label ID="lblProductionStatus" Text="No Data" runat="server"&gt;&lt;/asp:Label&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/ContentTemplate&gt;
   &lt;/asp:UpdatePanel&gt;       
&lt;/div&gt;
&lt;/form&gt;  
</code></pre>

<p>
</p>

<p>My problem is I want to set the default value for RadioButtonList as in Page_Load function it int the code behind but then. I can't get the ajax event from the RadioButtonList that I have set.
For example I set "Interval" to be a default value. When I click "Daily SnapShot" the content it the UpdatePanel1 have been update but then I click "Interval" again, nothing changes and the content still be of the "Daily SnapShot"</p>

<p>I'm thinking of setting the default value in javascript instead but seems not work
I wonder which one is doing first between javascript and C#. I think it's C#
so this won't work for me</p>

<p>Please Help!!</p>
