Click here to Skip to main content
15,892,480 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question[Message Deleted] Pin
pragya_chaubisa25-Dec-08 23:46
pragya_chaubisa25-Dec-08 23:46 
AnswerRe: windows service for login account activation. Pin
Brij25-Dec-08 23:56
mentorBrij25-Dec-08 23:56 
AnswerRe: windows service for login account activation. Pin
Abhijit Jana25-Dec-08 23:58
professionalAbhijit Jana25-Dec-08 23:58 
AnswerRe: [Message Deleted] PinPopular
Abhijit Jana26-Dec-08 1:25
professionalAbhijit Jana26-Dec-08 1:25 
Questionhow to create crystal report into web page at runtime without mapping any columms at design template Pin
hiren dave25-Dec-08 22:59
hiren dave25-Dec-08 22:59 
AnswerRe: how to create crystal report into web page at runtime without mapping any columms at design template Pin
Khanna Gaurav26-Dec-08 3:44
Khanna Gaurav26-Dec-08 3:44 
GeneralRe: how to create crystal report into web page at runtime without mapping any columms at design template Pin
hiren dave26-Dec-08 19:01
hiren dave26-Dec-08 19:01 
QuestionHow to use Find Method for an Object Collection Pin
Kuricheti25-Dec-08 22:54
Kuricheti25-Dec-08 22:54 
Hi Friends,

I have one class with four properties like

public class Class1
{
private int m_CountryID = 0;
private string m_CountryName = string.Empty;
private int m_OperatorId = 0;
private string m_OperatorName = string.Empty;

public int CountryId
{
get { return m_CountryId; }
set { m_CountryId = value; }
}
public string CountryName
{
get { return m_CountryName ; }
set { m_CountryName = value; }
}

public int OperatorId
{
get { return m_OperatorId; }
set { m_OperatorId = value; }
}

public string OperatorName
{
get { return m_OperatorName; }
set { m_OperatorName = value; }
}
}// End of Class1
Now in another class i have collection object for the above class
public Class Class2
{
Class1 objClass1 = null;
List<Class1> lstCountries = new List<Class1>();

objClass1 = new Class1();
objClass1.CountryId = 1;
objClass1.CountryName = "INDIA";
objClass1.OperatorId = 1;
objClass1.OperatorId = "AirTel";
lstCountries.Add(objClass1);

objClass1 = new Class1();
objClass1.CountryId = 1;
objClass1.CountryName = "INDIA";
objClass1.OperatorId = 2;
objClass1.OperatorId = "VodaFone";
lstCountries.Add(objClass1);

objClass1 = new Class1();
objClass1.CountryId = 2;
objClass1.CountryName = "US";
objClass1.OperatorId = 3;
objClass1.OperatorId = "US-VodaFone";
lstCountries.Add(objClass1);

objClass1 = new Class1();
objClass1.CountryId = 2;
objClass1.CountryName = "US";
objClass1.OperatorId = 4;
objClass1.OperatorId = "US-Airtel";
lstCountries.Add(objClass1);

/* now I know the operatorid. I want to get the country id of that perticular Operatorid with in the List, Eg: if i send oprtaorid 3 i wantto get countryid as 2
lstCountries.Find("How can we use this")
For this one How can we use List.Find Method or any other alternative..?
*/

}

Haribabu
AnswerRe: How to use Find Method for an Object Collection Pin
Brij25-Dec-08 23:44
mentorBrij25-Dec-08 23:44 
Questionhow to solve rendering problem of tab panel? Pin
mr_muskurahat25-Dec-08 22:31
mr_muskurahat25-Dec-08 22:31 
AnswerRe: how to solve rendering problem of tab panel? Pin
Abhijit Jana25-Dec-08 23:43
professionalAbhijit Jana25-Dec-08 23:43 
GeneralRe: how to solve rendering problem of tab panel? Pin
mr_muskurahat26-Dec-08 0:56
mr_muskurahat26-Dec-08 0:56 
AnswerRe: how to solve rendering problem of tab panel? Pin
Brij26-Dec-08 2:16
mentorBrij26-Dec-08 2:16 
QuestionUploading image from ContentPage of asp.net Pin
premprakashbhati25-Dec-08 21:42
premprakashbhati25-Dec-08 21:42 
AnswerRe: Uploading image from ContentPage of asp.net Pin
Abhijit Jana25-Dec-08 21:58
professionalAbhijit Jana25-Dec-08 21:58 
GeneralRe: Uploading image from ContentPage of asp.net [modified] Pin
premprakashbhati25-Dec-08 23:23
premprakashbhati25-Dec-08 23:23 
GeneralRe: Uploading image from ContentPage of asp.net Pin
premprakashbhati26-Dec-08 3:05
premprakashbhati26-Dec-08 3:05 
AnswerRe: Uploading image from ContentPage of asp.net Pin
dkkeyan25-Dec-08 23:27
dkkeyan25-Dec-08 23:27 
QuestionASP.NET GridView Pin
Socheat.Net25-Dec-08 20:56
Socheat.Net25-Dec-08 20:56 
AnswerRe: ASP.NET GridView Pin
Abhijit Jana25-Dec-08 21:34
professionalAbhijit Jana25-Dec-08 21:34 
GeneralRe: ASP.NET GridView Pin
Socheat.Net25-Dec-08 22:37
Socheat.Net25-Dec-08 22:37 
GeneralRe: ASP.NET GridView Pin
Brij25-Dec-08 22:43
mentorBrij25-Dec-08 22:43 
AnswerRe: ASP.NET GridView Pin
Brij25-Dec-08 22:23
mentorBrij25-Dec-08 22:23 
QuestionChatting Pin
smraj150325-Dec-08 20:40
smraj150325-Dec-08 20:40 
AnswerRe: Chatting Pin
Abhijit Jana25-Dec-08 21:01
professionalAbhijit Jana25-Dec-08 21:01 

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.