62,054
社区成员
发帖
与我相关
我的任务
分享
function ShowSize() {
var $cid = $("#ctl00_workspace_hfcid").val();
$.ajax({
url: "ShowProductSize.aspx?action=ajax_getsize&cid=" + $cid,
type: 'GET',
success: function() {
$('#divR').html(arguments[0])
}
})
}
namespace CMRShop.Web.admin.product
{
public partial class ShowProductSize : System.Web.UI.Page
{
string action = string.Empty;
string cid = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
action = Request.Params["action"];
cid = Request.Params["cid"];
if (action == "ajax_getsize")
{
CheckBoxList cbl = new CheckBoxList();
cbl.ID = "cbl2";
CMRShop.BLL.Product.productsize bll = new CMRShop.BLL.Product.productsize();
List<CMRShop.Model.Product.productsize> model = bll.GetAllProductSize(cid);
cbl.DataSource = model;
cbl.DataTextField = "size";
cbl.DataValueField = "id";
cbl.DataBind();
Response.Write("获取成功!");
}
Response.End();
}
}
}