473,385 Members | 2,004 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>
Jul 21 '05 #1
0 1022

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...
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:...
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...
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...
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.