Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET C#4.0
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);}
}
Posted 12-Dec-12 16:59pm
Edited 12-Dec-12 17:08pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100