Page 1 of 1

Connection string - ISP

Posted: Tue Dec 29, 2015 6:56 pm
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 ?


Re: Connection string - ISP

Posted: Wed Dec 30, 2015 9:13 am
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.