.NET Programming
--
Questions
--
Followers
Top Experts
I am trying to add a value to a queryparameters for reporting services programmatically.
List<QueryParameter> lst = new List<QueryParameter>();
QueryParameter qp = new QueryParameter();
qp.Name = "@UserID";
qp.Value = "[@UserID]";
lst.Add(qp);
The values are getting inserted, but with \ character and is it because of @. My QueryParameter value should be like [@UserID] and instead it is displayed as \[@UserID\].
How can I remove the \ from the value and the \ doesn't show when I debug.
Really appreciate any suggestions.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ย ย qp.Value = @"[@UserID]";
/gustav
YourParameter = YourParameter.Replace("\",






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
What about mine?
Regards,
Pawan

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Any luck with this?
.NET Programming
--
Questions
--
Followers
Top Experts
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.