473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Webform Dynamic property (db connection) changed when opening form

Hello all you people,

Thanks for reading this. I hve a strange thing which annoys me noend.
I am using VS.NET with MS-Access DB, framework version 1.1,Windows XP Pro, IIS 5.1.

In my webforms I have added a System.Data.Oledb.OledbConnection,I have set the "Dynamic Properties > connectionstring" to aconnection string which I store in my Web.Config, this worksgreat when I move my whole app to another server and I only haveto change the Web.Config.

But... sometimes the connection is removed from Dynamicproperties and is a direct connection string. This happens whenI open a file and work with the dataconnection and then save andclose the file and then rebuilt the project, but the strangething is NOT ALWAYS......

In other words in my behind file this:
"Me.connDB.ConnectionString =CType(configurationAppSettings.GetValue("connDB.C onnectionString", GetType(System.String)), String)"

Is (without my permission) replaced into this:
"Me.connDB.ConnectionString="Provider=Microsoft.Je t.OLEDB.4.0;Data Source=J:\InetPub\wwwroot\Somesite\DBDir\NameOfDB. mdb;PersistSecurity Info=False""

It does happen not always, only sometimes and its veryannoying...

Any help and or suggestions would be greatly appreciated!!!
--------------------------------
From: Ronald Colijn

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>W2RFGJuyZ0WI9F98Ziliqg==</Id>
Nov 22 '05 #1
0 738

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: choste11 | last post by:
I just installed VB.NET on a PC running Windows XP. The install went fine, but when I start a new project and try and open form1.vb by either double clicking it or right click, View Desginer, I get...
0
by: Ronald Colijn via .NET 247 | last post by:
Hello all you people, Thanks for reading this. I hve a strange thing which annoys me noend. I am using VS.NET with MS-Access DB, framework version 1.1,Windows XP Pro, IIS 5.1. In my webforms I...
2
by: Mike Moore | last post by:
We are developing an asp.net web application. When we drag and drop the sql connection object to the form we set the in the dynamic properties connection string to use the connection string in the...
0
by: John Winterbottom | last post by:
Does anyone know if this is possible? We are running Access XP with Windows XP Prof.. We have an ADP file we are using to print custom reports for a client. It's opened and conntrolled through...
2
by: Ray | last post by:
Stop me if you've heard this, but I am running Access 2002 and all of a sudden, if I design a particular form (it's been working fine for ages), Access crashes rather than open it in design view. ...
1
by: GrantS | last post by:
I am unable to get the connection to work with using the app.config file. the connection works when I use 'in line' connection as below:...
1
by: screamingtarget | last post by:
I'm using C# 2.0. I have a UserControl-based class that contains a set of controls that are TextBox-based. The number of controls defaults to 1, but it is a browsable property (NumFields) in the...
0
by: fniles | last post by:
I am using VB.Net 2003 and MS Access database. Sometimes when I open the database, I got the error "Unspecified error" The application validate users, when it validates users, it reads from a...
4
by: dstorms | last post by:
Hi, I'm trying to create a form with a list box with 2 columns and a button that opens the selected record in the appropriate form. In the sample below, the first column lists the type of equipment...
2
DonRayner
by: DonRayner | last post by:
This one has me stumped. I'm getting a "Type Mismatch" error on one of my forms when it's being opened. It's hapening before the forms "On Open" event, I stuck a msgbox in there to check and I'm...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.