send value and Databind user control from jquery
===

I have an aspx and an ascx page in which the ascx pages can either be bound without a parameter or if I send one then it loads the data to be edited.  I found a tutorial which helped with loading the control onto my aspx page but if I want to edit then I need to pass a value to the user control but can't seem to figure out how.  Here is what I have so far:

    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.js"></script>
    <script type="text/javascript">
       $(document).ready(function () {
          $("#new").click(function () {
            showDetail();
          });
       });
      function showDetail() {
         $.ajax({
            type: "POST",
            url: "projectadmin.aspx/Result",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (response) {
                $("#MainContent_pnlGrid").fadeOut();
                $('#result').html(response.d).fadeIn();
            }
         });
      }
     </script>

     <div id="result" style="display:none;">&nbsp;</div>

Now in my codebehind I have:

        [WebMethod]
        public static string Result()
        {
            return RenderControl("controls/projectedit.ascx");
        }

        public static string RenderControl(string controlName)
        {
            Page page = new Page();
            UserControl userControl = (UserControl)page.LoadControl(controlName);
            userControl.DataBind();

            StringWriter textWriter = new StringWriter();
            return textWriter.ToString();

        }

in my usercontrol I have a property called ProjectID and if I set a value to that before I DataBind my control then it loads the values if not then it will be used to create a new record.  That is where I'm stuck.  I've tried setting hidden fields, tried calling a public function inside my aspx and numerous other things and nothing has worked.  Any help is appreciated.