Click here to Skip to main content
16,017,638 members
Home / Discussions / C#
   

C#

 
GeneralRe: Job offer - Development of JiT order management Pin
sulabh202022-Aug-07 0:12
sulabh202022-Aug-07 0:12 
AnswerRe: Job offer - Development of JiT order management Pin
Martin#22-Aug-07 0:08
Martin#22-Aug-07 0:08 
AnswerRe: Job offer - Development of JiT order management Pin
J4amieC22-Aug-07 0:08
J4amieC22-Aug-07 0:08 
QuestionChange Column names--but I want to get rid on integer Pin
T4AMD21-Aug-07 23:25
T4AMD21-Aug-07 23:25 
AnswerRe: Change Column names--but I want to get rid on integer Pin
Giorgi Dalakishvili21-Aug-07 23:42
mentorGiorgi Dalakishvili21-Aug-07 23:42 
Questionword Automation Pin
sulabh202021-Aug-07 23:12
sulabh202021-Aug-07 23:12 
AnswerRe: word Automation Pin
Paul Conrad26-Aug-07 9:21
professionalPaul Conrad26-Aug-07 9:21 
Questionkindly help anyone connection string--URGENT [modified] Pin
svignesh21-Aug-07 23:03
svignesh21-Aug-07 23:03 
sorry iam new to this kind of forums.here after i will keep discussion in the same thread.

i tried as u said and given the code also but still the same kind of error is coming----The ConnectionString property has not been initialized


ERROR IS The ConnectionString property has not been initialized IN CON1.OPEN().Plz help in solving these problem, iam a fresher.Thanks in advance


public partial class detail : System.Web.UI.Page
{

//string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\DataFinal.mdb;User Id=admin;Password=;";
String con1 = "Provider=Microsoft.JET.OLEDB.4.0;data source=path\\db1.mdb";
String con2 = "Provider=Microsoft.JET.OLEDB.4.0;data source=path\\db2.mdb";

protected void Page_Load(object sender, EventArgs e)
{


}


private void InitializeComponent()
{


}
protected void Button1_Click(object sender, EventArgs e)
{
OleDbConnection con1 = new OleDbConnection();
con1.Open();
DataTable tables1 = con1.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });
foreach (DataRow row in tables1.Rows)
DropDownList1.Items.Add(row[1].ToString());


OleDbConnection con2 = new OleDbConnection();
con2.Open();
DataTable tables2 = con2.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });
foreach (DataRow row in tables2.Rows)
DropDownList2.Items.Add(row[1].ToString());
}





-- modified at 2:20 Friday 24th August, 2007
AnswerRe: Connection string--URGENT Pin
J4amieC21-Aug-07 23:12
J4amieC21-Aug-07 23:12 
AnswerRe: Connection string--URGENT Pin
Giorgi Dalakishvili21-Aug-07 23:12
mentorGiorgi Dalakishvili21-Aug-07 23:12 
AnswerRe: Connection string--URGENT Pin
Nouman Bhatti22-Aug-07 1:43
Nouman Bhatti22-Aug-07 1:43 
GeneralRe: Connection string--URGENT Pin
Vasudevan Deepak Kumar21-Aug-07 23:39
Vasudevan Deepak Kumar21-Aug-07 23:39 
Questioncreating a class Pin
Mamphekgo Bahula21-Aug-07 22:51
Mamphekgo Bahula21-Aug-07 22:51 
AnswerRe: creating a class Pin
Christian Graus22-Aug-07 0:00
protectorChristian Graus22-Aug-07 0:00 
QuestionReport Pin
htonivt21-Aug-07 22:41
htonivt21-Aug-07 22:41 
AnswerRe: Report Pin
Paul Conrad26-Aug-07 9:20
professionalPaul Conrad26-Aug-07 9:20 
QuestionAny one suggest me regarding Dataview Pin
Exelioindia21-Aug-07 22:06
Exelioindia21-Aug-07 22:06 
AnswerRe: Any one suggest me regarding Dataview Pin
Michael Sync21-Aug-07 22:39
Michael Sync21-Aug-07 22:39 
GeneralRe: Any one suggest me regarding Dataview Pin
Exelioindia22-Aug-07 0:02
Exelioindia22-Aug-07 0:02 
GeneralRe: Any one suggest me regarding Dataview Pin
Michael Sync22-Aug-07 15:27
Michael Sync22-Aug-07 15:27 
QuestionHow i Create connection module whish take DataSource from txt Pin
shafikshafik21-Aug-07 22:01
shafikshafik21-Aug-07 22:01 
Questionneeds advice in xmlserialize arraylist. [modified] Pin
cyn821-Aug-07 21:43
cyn821-Aug-07 21:43 
AnswerRe: needs advice in xmlserialize arraylist. Pin
Hessam Jalali22-Aug-07 0:26
Hessam Jalali22-Aug-07 0:26 
Question[Message Deleted] Pin
svignesh21-Aug-07 21:29
svignesh21-Aug-07 21:29 
AnswerRe: Connection string Pin
Giorgi Dalakishvili21-Aug-07 21:59
mentorGiorgi Dalakishvili21-Aug-07 21:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.