Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
Register
Login
2
Reply
How can i filter the response so it only returns one value
Cassie Mod
Jan 11 2017 11:01 AM
240
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to get tweets older than 6 months?
Values not displaying in textbox after editing