I am add controls dynamically in my page from the database and i am using $.post() method to pass values in client side. Now i want to pass this controls in $.post() method. so can any one suggest me how to get these controls in post method.
$.post("TestPage.aspx", { Type: SaveData , drpGender: $( #MainContent_drpGender ).val(), cmbMonth: $( #MainContent_cmbMonth ).val(), cmbYear: $( #MainContent_cmbYear ).val(), drpTall: $( #MainContent_drpTall ).val(), txtWeight: $( #MainContent_txtWeight ).val() }, function (data) {
alert(data);
}, "html");
上文中,drpGender、mbMonth、drpTall、txtheigh是动态控制,在我的网页上加起来。
在客户方面,即在“拯救儿童”方法中保存数据。 一、使用这种控制对客户的价值
Request.Form["drpGender"];
因此,谁能告诉我如何这样做?
提前感谢。