Please check the screenshot http://doubts.posterous.com/bytearray-doubt[^] Actual value in the byteArray[0] is Name of an employee, [1] is code and son on... When iterating it returns only its size.. How can i get the Name of Employee from byteArray[0]?
DJ245
Posts
-
Read from Byte Array -
Read from Byte ArrayActually i don't want its size. I need to get the value. When i iterating it displays the size. How can i get the value behind each array item?
-
Read from Byte ArrayDear All, How can i read values from Byte Array? Regards, DJ.
-
XML SearchRe: XML Search Ok.. fine.. Updated the XML taskXML =
And perform the search criteria as follows (My code)
public XMLNode searchXML()
{
if ((null != taskXML) && 0 < subProjectId)
{
taskXML = taskXML.SelectSingleNode("//Task[@SubId ='" + subProjectId.ToString() + "']");
}
if ((null != taskXML) && 0 < moduleId)
{
taskXML = taskXML .SelectSingleNode("//Task[@TaskId ='" + moduleId.ToString() + "']");
}//Problem starts
if ((null != taskXML) && (null != startDate && null != endDate))
{
taskXML= taskXML.SelectSingleNode("//Task[@StartDate >'" + startDate.ToString() + "']");
if (null != taskXML)
taskXML= taskXML.SelectSingleNode("//Task[@StartDate < '" + endDate.ToString() + "']");
}
//Problem end
if ((null != taskXML) && 0 < statusId)
{
taskXML = taskXML .SelectSingleNode("//Task[@StatusId='" + statusId + "']");
}//Problem starts
if ((null != projectTaskXML) && string.Empty != taskName)
{
taskXML = taskXML .SelectSingleNode("//Task[@TaskName='" + taskName + "']");
}
//Problem end
return taskXML;
}But the date search and name search not working. Also i need to get the parents of searched tasks Could u please help me?
-
XML SearchDear all, In my application i have an XML like this.. I want to perform a search in this XML Based on SubID, ModuleId, TaskName, between start and end dates. Please help me. Also i need all the parents of the searched nodes without siblings.
Please help Regards, DJ
-
XML SearchDear all, In my application i have an XML like this.. I want to perform a search in this XML Based on SubID, ModuleId, TaskName, between start and end dates. Please help me. Also i need all the parents of the searched nodes without siblings.
Please help Regards, DJ
-
Finding gap between Date rangesThanks Nowakowski. Its working fine..
-
Finding gap between Date rangesIf u don't mind, could u please post the code scrap here. I am using two loops and finding the difference between each date range (currentItem.StartDate - prevItem.EndDate). Then checking it with all the date renages.
-
Finding gap between Date rangesDear All, I have list of date ranges (Start Date and End Date). I want to find the gap between the each item. ie; My date range list
#. Start Date End Date
-
1-Jan-2010 2-Jan-2010
-
1-Jan-2010 8-Jan-2010
-
4-Jan-2010 4-Jan-2010
-
6-Jan-2010 8-Jan-2010
-
9-Jan-2010 10-Jan-2010
-
10-Jan-2010 14-Jan-2010
-
10-Jan-2010 15-Jan-2010
-
17-Jan-2010 18-Jan-2010
Actually i want to get the gap between adjacent items. Expected output
GapStart GapEnd
16-Jan-2010 16-Jan-2010
But i get the followingGapStart GapEnd
05-Jan-2010 05-Jan-2010
(Not need this gap because many other items include this date range)16-Jan-2010 16-Jan-2010
How can i filter the resultant list?Regards, Lalk
-
-
Reading Microsoft Project file problemHi, I am making an application integrated with Microsoft Project in c#. Now ,I want to read mpp file and convert all task objects to DTOs. I created DTOs same as Task object. The application should read any Microsoft Project version (from MS 2003). I used the normal methods creating the ApplicationClass object, reading the Project object, then iterating the tasks etc. Found it is too slow and OS dependent. I cant quit the Winproject.exe from my application in Win 2003 server. Also the application doesn't works on 64 bit OS. Please guide me to a solution. Hoping a reply... I had already posted this thread one month before. But didnt get any answer. Regards, DJ
-
Reading Microsoft Project file problemHi, I am making an application integrated with Microsoft Project in c#. Now ,I want to read mpp file and convert all task objects to DTOs. I created DTOs same as Task object. The application should read any Microsoft Project version (from MS 2003). I used the normal methods creating the ApplicationClass object, reading the Project object, then iterating the tasks etc. Found it is too slow and OS dependent. I cant quit the Winproject.exe from my application in Win 2003 server. Also the application doesn't works on 64 bit OS. Please guide me to a solution. Hoping a reply... Regards, DJ
-
Read mpp file [modified] [Solved]hi all, i am in need of reading tasks from an .mpp file. How can i find the parent task id of particular task while reading? Please help me.. Lal
modified on Thursday, November 26, 2009 12:18 AM
-
Convert SQL data to XML data using nHibernateHi All, I have table, named tblTasks, with columns Id, Name, StartDate, EndDate etc. I want to convert this table in to xml fromat via nHibernate.
<Task>
<Id> </Id>
<Name> </Name>
<StartDate> </StartDate>
<EndDate> </EndDate>
</Task>I am using NHibernate dll version 2.1.0. Pls help me. Thanks in advance
-
How to read excel content as html?Hi All, In my application i want to read the row content of an excel file as html text (for getting the font and style). If anybody knows please help me.... Regards, Prajilal
-
Differnce between private readonly fields and non private readonly fieldshi, What is the major differnce between private readonly fields and non private readonly fields... waiting for reply... Regards, Prajilal
-
[Message Deleted][Message Deleted]
-
[Message Deleted][Message Deleted]
-
[Message Deleted][Message Deleted]
-
How to set hyperlinks to stringsi dont know how to use it..
-
How to set hyperlinks to stringsHai friends, In my small application iam retrieving the links stored in the IE's favorites folder and write to .doc file. i want to set hyperlink to each of them. Please help me. Regards, DJ