Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
How can i filter the response so it only returns one value
Cassie Mod
7y
258
1
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
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to get tweets older than 6 months?
Values not displaying in textbox after editing