title: Authorize function is not working in web security using mvc?
body: <p>If i use <code>[Authorize]</code> i can n't use ajax function and ajax value not pass to the controller.</p>
  
  <pre><code>   [Authorize]
     [InitializeSimpleMembership]
      public class AccountController : Controller
      {
          //
          // GET: /Account/
          public ActionResult Index()
          {
              return View();
          }
  
          [AllowAnonymous]
          public ActionResult Register()
          {
              UserType_Bind();
              Country_Bind();
              //Doctor_Bind();
              return View();
          }
  </code></pre>
  
  <p>Ajax Method:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              $("#CountryID").change(function () {
                  var typeID = jQuery('[id$=CompanyTypeID]').val();
                  var id = $(this).val();
                  $("#UserRefID").empty();
                  $.get("Company_Bind", { CountryID: id, CompanyTypeID: typeID }, function (data) {
                      var v = "&lt;option&gt;--- Select Doctor Name ---&lt;/option&gt;";
                      $.each(data, function (i, v1) {
                          v += "&lt;option value=" + v1.Value + "&gt;" + v1.Text + "&lt;/option&gt;";
                      });
                      $("#UserRefID").html(v);
                  });
              });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>if i don't use <code>[Authorize]</code>ajax value pass to the controller.</p>