16,017,261 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Darshan E Ksheerasagar (Top 10 by date)
Darshan E Ksheerasagar
11-Apr-17 7:02am
View
Use Ajax Timer
Darshan E Ksheerasagar
10-Apr-17 2:02am
View
Thank You Sir
Darshan E Ksheerasagar
24-Nov-16 2:39am
View
--------------------------------------------------------------------------------
Serial Number Last Name First Name Salary Mobile No.
--------------------------------------------------------------------------------
1 Kulkarni Ramesh 1,500.00 9,48,56,21,025.00
2 Rani Suresh 2,500.00 8,95,10,25,469.00
--------------------------------------------------------------------------------
---------------------------------------------------------------
Serial Number Last Name First Name Salary
---------------------------------------------------------------
1 Kulkarni Ramesh 1,500.00
2 Rani Suresh 2,500.00
---------------------------------------------------------------
First Table is my Original table Second is want i want my result .
Darshan E Ksheerasagar
24-Oct-16 6:34am
View
As you told i changed my code to Like this below
public partial class A1
{
public A1()
{
AA = new B1();
}
private B1 objB1;
public B1 AA
{
get
{
return this.objB1;
}
set
{
this.objB1 = value;
}
}
}
public partial class B1
{
public B1()
{
BB = new C1 { };
}
private C1 objC1;
public C1 BB
{
get
{
return this.objC1;
}
set
{
this.objC1 = value;
}
}
}
public partial class C1
{
public C1()
{
CC = new D1();
}
private D1 objD1;
public D1 CC
{
get
{
return this.objD1;
}
set
{
this.objD1 = value;
}
}
}
public partial class D1
{
public D1()
{
//DD = new E1();
}
private E1[] objE1;
public E1[] DD
{
get
{
return this.objE1;
}
set
{
this.objE1 = value;
}
}
}
public partial class E1
{
private string ValE1;
public string EE
{
get
{
return this.ValE1;
}
set
{
this.ValE1 = value;
}
}
}
but problem is in Class D1 constructor i want to create object of E1 which is array type how can i create object ...?
Darshan E Ksheerasagar
24-Oct-16 4:44am
View
How can i add item of enum into I1[] { } array...?
Darshan E Ksheerasagar
24-Oct-16 3:16am
View
If you know plz reply me ...
Darshan E Ksheerasagar
24-Oct-16 3:16am
View
Deleted
If you know plz reply me ..
Darshan E Ksheerasagar
24-Oct-16 2:39am
View
No . I have working on project where like Senaria is there ..
Darshan E Ksheerasagar
24-Oct-16 1:55am
View
Hello OriginalGriff i have struck in the below code please help me
public class K1
{
public K1()
{
I1Value = new I1[] { };
}
private I1[] I1Value;
public I1[] K1_Method
{
get
{
return this.I1Value;
}
set
{
this.I1Value = value;
}
}
}
public class I1
{
public I1()
{
Cd = new InstCode();
}
private InstCode cdField;
private string instField;
public Instruction3Code Cd
{
get
{
return this.cdField;
}
set
{
this.cdField = value;
}
}
public string InstrInf
{
get
{
return this.instField;
}
set
{
this.instField = value;
}
}
}
public enum InstCode
{
A,
B,
C,
D,
}
When i am trying to access method like this not able to access
protected void Page_Load(object sender, EventArgs e)
{
try
{
K1 objK1 = new K1();
//objK1.K1_Method[0].Cd = ((InstCode)Enum.Parse(typeof(InstCode), "D"));
objK1.K1_Method.
}
catch (Exception ex)
{
}
}
Darshan E Ksheerasagar
21-Oct-16 2:41am
View
Thank you thank you thank you sooooo much OriginalGriff...
Show More