Sign in | Join
Last post 07-03-2008 7:03 AM by Thomas Sun – MSFT. 3 replies.
Sort Posts: Oldest to newest Newest to oldest
Greetings:
On ASP.NET Websetup, is there any way I can prompt user to enter the Data Source Part of Connection String? I would like to hardcode the Database Names, Username and Password etc except the Database Server name.
Thank you.
Can any one help me please? The end goal is to give an end user to specify the data source either through setup or any alternate means.
NOONE KNOWS HOW??
zus: Greetings: On ASP.NET Websetup, is there any way I can prompt user to enter the Data Source Part of Connection String? I would like to hardcode the Database Names, Username and Password etc except the Database Server name. Thank you.
Hi,
If you want to change the Database connection string using Web Setup project while installing, you can try to add the custom action to your Web Setup project to configure the Database connection string.
For example, see http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx (Section 7: Useful Custom Action Example: Configuring Database Connection String).
I hope this helps.