我如何一次绑定数据 [英] How can i bind the Data at a time

查看:48
本文介绍了我如何一次绑定数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





这是我的代码,我对这行代码执行的每一行网格的问题是什么,但依赖于高位线代码浏览器性能下降。因为我想一次加载那些总信息,然后我想检查我的情况我该怎么做。



Hi,

This is my code , what is my question on each and every row of grid this lines of codeis executed , but depend upon the highleted lines code the browser performence is decresed. for that i want to load that total information at a time , and then i want to check my condition how can i do this.

protected void gdDocument_ItemDataBound(object sender, DataGridItemEventArgs e)
{
   if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType==                         ListItemType.AlternatingItem)
   {
           string Doc_Id = ((Label)e.Item.FindControl("lblDrawing")).Text;
           string Revision = ((Label)e.Item.FindControl("lblRev")).Text;
        string Query = "<Where>" +
       "<And><Eq><FieldRef Name='Dwg_No'/><Value Type='Text'>" + Doc_Id + "</Value></Eq>" +
"<Eq><FieldRef Name='Dwg_Rev_No'/><Value Type='Text'>" + Revision + "</Value></Eq></And>" +
"</Where>";

        DataTable dtDrawing = objFile.ListContent(objCurrentSite.SiteURL, objCurrentSite.WebSiteName, "Drawing", Query);}
}

推荐答案







您可以使用Javascript / JQuery实现它。



坦率地说我没有看到任何像你的查询,如果它是某种自定义实用程序

然后确定。



其他明智的有趣。
Hi,


You can achieve it using Javascript / JQuery.

Frankly speaking I did not saw any query like yours if its a some kind of custom utility
then Ok.

Other wise its interesting.


这篇关于我如何一次绑定数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆