Hi;
I'm trying to change the datasource of one control by using ajax.net
pro. With thw sample code below. Everything works fine but the
datasource is not changing.
Thanks for Helps...


    [AjaxPro.AjaxMethod]
    public string get_SearchCriteria(string FromClause, string
FieldName)
    {
        ConnectionStringSettings settings;
        settings =
ConfigurationManager.ConnectionStrings["BRAUN_2003ConnectionString"];
        if (sql_Conn.State != ConnectionState.Open)
        {
            sql_Conn.ConnectionString = settings.ConnectionString;
            cmd.Connection = sql_Conn;
            sql_Conn.Open();
        }
        cmd.CommandText = "SELECT " + FieldName + " " + FromClause;
        SqlDataAdapter da = new SqlDataAdapter(cmd);
        da.Fill(dsSCrit);
        cmb_SearchCrt.DataSource = dsSCrit;
        cmb_SearchCrt.DataBind();
        return FieldName;
    }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to