obj.value(name,age,id);// name, age and id should be in single object
This statement ... which only makes sense in the totally weird case that 'value is a method defined in an instance of a Class named 'obj ... which happens to be available in the context this code is defined in ...
Indicates to me that right now you are very confused about what Objects/Classes, and Methods, are, and you are not familiar with .NET naming conventions at all.
I suggest what you need to do is to get a good basic book on C#, or ASP.NET, and focus on understanding what a Class/Object is, what Methods are, how Methods are called using the "." suffix after the Class name, when they cannot be called directly in a code context.
And, learn to name Classes descriptively, by indicating what they "are;" learn to name Methods in a way that indicate what they "do."
One example of how this code might "make sense" is:
public class Person
{
public string Name { get; set; }
public int ID { get; set; }
public int Age { get; set; }
public Person(string name, int id, int age)
{
Name = name;
ID = id;
Age = age;
}
}
You create a new
instance of the Class "Person," like this:
Person newPerson = new Person("sagar", 1234, 23);
At which point you can access any property of the "newPerson" instance of the Class named 'Person" like so:
string UserName = newPerson.Name;
Some hard work now, to get the fundamentals down, will reward you greatly in the future.
good luck !