TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
SIVA
NA
742
707.3k
Object parameters sorted in Ascending Order
Dec 20 2012 2:50 PM
Dear all,
I have public class with its parameters like
public class Student
{
public int No{get; Set;}
public string Name{get; set;}
public date DOJ{get; set;}
public string Address{get; set;}
}
Now, In my code behind window i created object for Student class and i assigned values, which i got from my front end like
Student objStudent=new Student();
objStudent.No=txtNo.text;
objStudent.Name=txtName.text;
objStudent.DOJ=txtDOJ.text;
objStudent.Address=txtAddress.text;
While passing this student object to my InsertDetails method its going as sorted way based on its parameters like
Address
DOJ
Name
No
In my code I am passing student object as a parameter to my Stored Procedure. So I am getting error that parameter mismatch.
Here I am not getting the reason that why the parametes get sorted while passing.
It should be in proper way that how i defined like
No, Name, DOJ, Address
Can Somebody let me know what will be the issue?
Reply
Answers (
0
)
difference between string.empty and string="" c#
how to redirect different user to different pages.