问题描述
亲爱的先生,
我正在asp.net中进行项目,并且遇到问题.
我正在使用jquery ajax代码发布到窗口后面的代码.这是下面的代码.
Dear Sir,
I am doing a project in asp.net, and am stuck with an issue.
I am using jquery ajax code for post to code behind window. Here is the Below code.
$.ajax({
type: "POST",
url: "Home.aspx/ShowBooked_Items", // the method we are calling
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ "Item_ID": $(this).attr('id') }),
dataType: "json",
success: function (result) {
ShowPopUp();
},
});
这是后面的代码中使用的代码,
And here is the Code that am using in code behind,
[WebMethod]
public static void ShowBooked_Items(int Item_ID)
{ // something
}
上面的代码正常工作.但是,当我在"ShowBooked_Items"方法中放入一些用于绑定网格的代码时,却没有在该方法中获得网格.我没有在该方法内得到任何控制
请帮帮我,
谢谢
Dileep
The above codes are working properly. But when i put some code for bind the Grid in the "ShowBooked_Items" method, but i didn''t get the grid in that method . I didn''t get any control inside that method
Please Help me,
Thanks
Dileep
推荐答案
这是后面的代码中使用的代码,
And here is the Code that am using in code behind,
[WebMethod]
public static void ShowBooked_Items(int Item_ID)
{ // something
}
上面的代码正常工作.但是,当我在"ShowBooked_Items"方法中放入一些用于绑定网格的代码时,却没有在该方法中获得网格.我没有在该方法内得到任何控制
请帮帮我,
谢谢
Dileep
The above codes are working properly. But when i put some code for bind the Grid in the "ShowBooked_Items" method, but i didn''t get the grid in that method . I didn''t get any control inside that method
Please Help me,
Thanks
Dileep
这篇关于我没有将控件放入方法中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!