Dear Friend .
I have a question about casting in C# . I would highly appreciate if someone could help me.
in object selectedindexch ange event :
Now I want to select like this
the question is :
how can get mynewName value in selectedindexch ange event .
best.
ali
I have a question about casting in C# . I would highly appreciate if someone could help me.
Code:
var t = (from o in baseContext.Myuser[B]s[/B] where o.name == "name" select o); object.datasource = t;
Code:
var address = (object.selecteditem as [B]Myuser)[/B].address;
Now I want to select like this
Code:
var t = (from o in baseContext.Myuser[B]s[/B] where o.name == "name" select new {mynewName = o.name + " *** " + o.family , o.address , o.age ); object.datasource = t;
how can get mynewName value in selectedindexch ange event .
best.
ali
Comment