EXT 异步读取数据
本人用.NET的Ext.Ajax.request({url:"Controls/ReadMemberInfo.aspx",params:{ReadShopName:Sho...
本人用.NET的
Ext.Ajax.request
({
url:"Controls/ReadMemberInfo.aspx",
params:
{
ReadShopName:ShopName,
ReadPrincipal:Principal
},
传到那个页面,参数也传过去
string ReadShopName = CurrentMember.ShopName;
string ReadPrincipal = CurrentMember.Principal;
if (updatememberinfo != null)
{
Response.Write("{success:true}");
}
else
{
Response.Write("{success:false}");
}
然后我要怎么把参数传回去,然后在那个页面的textfield中显示呢 展开
Ext.Ajax.request
({
url:"Controls/ReadMemberInfo.aspx",
params:
{
ReadShopName:ShopName,
ReadPrincipal:Principal
},
传到那个页面,参数也传过去
string ReadShopName = CurrentMember.ShopName;
string ReadPrincipal = CurrentMember.Principal;
if (updatememberinfo != null)
{
Response.Write("{success:true}");
}
else
{
Response.Write("{success:false}");
}
然后我要怎么把参数传回去,然后在那个页面的textfield中显示呢 展开
3个回答
展开全部
如果以get方式提交
那么
EXT就将params:
{
ReadShopName:"ShopName",
ReadPrincipal:"Principal"
}
处理成:
url = "Controls/ReadMemberInfo.asp?ReadShopName=ShopName&ReadPrincipal=Principal";
因此在服务端获取的QueryString == "ReadShopName=ShopName&ReadPrincipal=Principal";
那么
EXT就将params:
{
ReadShopName:"ShopName",
ReadPrincipal:"Principal"
}
处理成:
url = "Controls/ReadMemberInfo.asp?ReadShopName=ShopName&ReadPrincipal=Principal";
因此在服务端获取的QueryString == "ReadShopName=ShopName&ReadPrincipal=Principal";
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Response.Write("{success:true,ReadPrincipal:'"+ReadPrincipal+"'}");
接收:
textfield的属性,添加value:ReadPrincipal就ok了
接收:
textfield的属性,添加value:ReadPrincipal就ok了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询