Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have a working static code
<td>@LedigaNodes.Where("Name == @0", "3-3").First().kommentar</td>
with hardcoded parameter "3-3". However, I need this parameter to be updated from at query dataset as "@[email protected]".
"@[email protected]"
I have tried
<td>@LedigaNodes.Where("Name == @0", "@[email protected]").First().kommentar</td>
but that won't work. I guess that I have to make @[email protected] into a string first, but what is the proper way to do that and how should such a string be implemented?
@[email protected]
Thanks for any hints :)
/martin
Hi Martin.
You are absolutley right that you need to format your parameters as a string.
I haven't tried this but you should be able to do like this:
<td>@LedigaNodes.Where("Name == " + (row.Fastid + "-" + row.Objektsid)).First().kommentar</td>
Let me know how it goes.
Take care!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Where() clause with dynamic parameteres
Hi,
I have a working static code
with hardcoded parameter "3-3". However, I need this parameter to be updated from at query dataset as
"@[email protected]"
.I have tried
but that won't work. I guess that I have to make
@[email protected]
into a string first, but what is the proper way to do that and how should such a string be implemented?Thanks for any hints :)
/martin
Hi Martin.
You are absolutley right that you need to format your parameters as a string.
I haven't tried this but you should be able to do like this:
Let me know how it goes.
Take care!
is working on a reply...