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
Cassie Mod
NA
488
70.5k
How can i filter the response so it only returns one value
Jan 11 2017 11:01 AM
HI,
Ive got the following response and request
// Gets active shared call apearances
var service =
new
TechnicServiceClient();
var sessionId = Guid.Parse(HttpContext.Current.Session[
"BWSESSION"
].ToString());
var jsessionId = App.User.jSessionId;
var request =
new
GetScaEndpointsRequest
{
UserId = Request.QueryString[
"userId"
],
sessionId = sessionId,
requestId = _requestId,
requestUsername =
null
,
jSessionId = jsessionId
};
var response = service.GetScaEndpoints(request);
// set the selected item to the user
var LinePort = (Label)e.Item.FindControl(
"LinePortLabel"
);
var selectedDeviceToDelete = response.LinePort
// how do i get the response of only the selected value ??
The response contains in this case two devices wich have several attributes like LinePort.
My question is, How can i get only the selectedDevice ( to Delete) ??
LinePort.Text contains the value of the selected Item.
however then i try
var selectedDeviceToDelete = response.LinePort.Select(LinePort.Text); but that doesn;t work. so based on the entire response i need to get the selectedResonse.LinePort, but how ?????
thnx
Reply
Answers (
2
)
How to get tweets older than 6 months?
Values not displaying in textbox after editing