Connection string - ISP

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
MorkvonOrk
User
Posts: 4

Connection string - ISP

Post by MorkvonOrk »

My ISP uses a different IP-adress and port for internal and external MSSQL2012 DB access.

I know where to edit the connection string before deploying on the ISP (aspxfn12.cs). Works fine.
A method to differentiate the connection string in ASP.NET Maker when generating for local use (IIS Express) and another server would be welcome, though. Does it exist ?


motfs
User
Posts: 258

Post by motfs »

Use Database_Connecting server event to modify the connection string. See Server event and Client script (Example 1 in Database_Connecting) in help file for more details.


Post Reply