Thursday 9 February 2023

Escape quote in web.config connection string

 

Escape quote in web.config connection string

 

 

Use " instead of " to escape it.

web.config is an XML file so you should use XML escaping.

connectionString="Server=dbsrv;User ID=myDbUser;Password=somepass"word"

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Blog Archive