Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Using themed css files requires a header control on the page. (e.g. ). Pin
Abhijit Jana30-Jun-09 21:40
professionalAbhijit Jana30-Jun-09 21:40 
GeneralRe: Using themed css files requires a header control on the page. (e.g. ). Pin
Manas Bhardwaj30-Jun-09 21:41
professionalManas Bhardwaj30-Jun-09 21:41 
AnswerRe: Using themed css files requires a header control on the page. (e.g. ). Pin
Manas Bhardwaj30-Jun-09 21:40
professionalManas Bhardwaj30-Jun-09 21:40 
Question404 Error in webservices? Pin
Piyush Vardhan Singh30-Jun-09 21:20
Piyush Vardhan Singh30-Jun-09 21:20 
AnswerRe: 404 Error in webservices? Pin
Abhijit Jana30-Jun-09 21:31
professionalAbhijit Jana30-Jun-09 21:31 
AnswerRe: 404 Error in webservices? Pin
Manas Bhardwaj30-Jun-09 21:43
professionalManas Bhardwaj30-Jun-09 21:43 
QuestionCan't get HttpFileCollection's Byte balues when using it second time. Pin
pujafaldu30-Jun-09 21:08
pujafaldu30-Jun-09 21:08 
Questioncopying datarow to arraylist/array without using forloop........ [modified] Pin
dayakar_dn30-Jun-09 21:01
dayakar_dn30-Jun-09 21:01 
Hi All,

I have one datarow which contains some rows. Now i am copying values from datarow to arraylist using forloop.
But this is again taking some time.
Now i want copy values form datarow to arraylist or array without using forloop.
Is there any way to implement this using LINQ or any other concept.
The code which i used is mentioned below.

DataTable myTable = null;
DataRow[] foundRows = null;
ArrayList RequiredList = new ArrayList();
Array[] arrayForData = null;

ArrayList arrayListFordata = new ArrayList();

DataSet dsForData = null;
if (Session[strSessionDataList] == null)
{
CatalogController _controller = new CatalogController();
Session[strSessionDataList] = arrayListFordata;

}
else
{
dsForData = new DataSet();
dsForData = Session[strSessionDataList] as DataSet;
myTable = dsForData.Tables[0];
if (myTable.Rows.Count > 0)
{
foundRows = myTable.Select("val like '" + item + "%'");
arrayForData = new Array[foundRows.Length];
foundRows.CopyTo(arrayForData, 0); This is not working, it is giving runtime error like type mismatch
//for (int count = 0; count < foundRows.Length; count++)
//{
// RequiredList.Add(foundRows[count].ItemArray[0].ToString());
//}

//for (int count = 0; count < myTable.Select("val like '" + item + "%'").Length; count++)
//{

// RequiredList.Insert(count, myTable.Select("val like '" + item + "%'")[count].ItemArray[0]);

// //foundRows.ItemArray[count] = myTable.Select("val like '" + item + "%'")[count].ItemArray[0];
//}
}
}
if (RequiredList.Count == 0) RequiredList.Add("Fail");
//return RequiredList;

modified on Wednesday, July 1, 2009 4:31 AM

AnswerRe: copying datarow to arraylist/array without using forloop........ Pin
Aman Bhullar1-Jul-09 20:23
Aman Bhullar1-Jul-09 20:23 
QuestionMaintain state of radiobuttons while paging in gridview control Pin
farogh haider30-Jun-09 20:43
farogh haider30-Jun-09 20:43 
AnswerRe: Maintain state of radiobuttons while paging in gridview control Pin
Abhijit Jana30-Jun-09 20:51
professionalAbhijit Jana30-Jun-09 20:51 
GeneralRe: Maintain state of radiobuttons while paging in gridview control Pin
farogh haider30-Jun-09 21:26
farogh haider30-Jun-09 21:26 
AnswerRe: Maintain state of radiobuttons while paging in gridview control Pin
Niladri_Biswas30-Jun-09 20:52
Niladri_Biswas30-Jun-09 20:52 
QuestionTreeView control - dynamically bound to an XmlDocument? NavigationUrl Pin
devvvy30-Jun-09 20:12
devvvy30-Jun-09 20:12 
QuestionProblem getting client side value in server side Pin
CrazyCoder2630-Jun-09 19:06
CrazyCoder2630-Jun-09 19:06 
AnswerRe: Problem getting client side value in server side Pin
Aman Bhullar30-Jun-09 19:14
Aman Bhullar30-Jun-09 19:14 
GeneralRe: Problem getting client side value in server side Pin
CrazyCoder2630-Jun-09 19:17
CrazyCoder2630-Jun-09 19:17 
QuestionHow to do HTTP GET request Pin
fuhaizah30-Jun-09 18:06
fuhaizah30-Jun-09 18:06 
AnswerRe: How to do HTTP GET request Pin
Christian Graus30-Jun-09 18:24
protectorChristian Graus30-Jun-09 18:24 
GeneralRe: How to do HTTP GET request Pin
fuhaizah30-Jun-09 18:29
fuhaizah30-Jun-09 18:29 
GeneralRe: How to do HTTP GET request Pin
Christian Graus30-Jun-09 18:31
protectorChristian Graus30-Jun-09 18:31 
GeneralRe: How to do HTTP GET request Pin
fuhaizah30-Jun-09 18:36
fuhaizah30-Jun-09 18:36 
GeneralRe: How to do HTTP GET request Pin
Christian Graus30-Jun-09 21:35
protectorChristian Graus30-Jun-09 21:35 
AnswerRe: How to do HTTP GET request Pin
Aman Bhullar30-Jun-09 19:16
Aman Bhullar30-Jun-09 19:16 
GeneralRe: How to do HTTP GET request Pin
fuhaizah30-Jun-09 20:17
fuhaizah30-Jun-09 20:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.