Click here to Skip to main content
15,926,507 members
Home / Discussions / Database
   

Database

 
GeneralFree OLAP grid Pin
devvvy12-Feb-05 2:13
devvvy12-Feb-05 2:13 
GeneralNHibernate - ADOException "No Persister for..." Pin
devvvy12-Feb-05 0:34
devvvy12-Feb-05 0:34 
GeneralADOX Key collection accessing error Pin
BAIJUMAX11-Feb-05 2:40
professionalBAIJUMAX11-Feb-05 2:40 
Questioncreating a register user page? Pin
jetset3210-Feb-05 23:49
jetset3210-Feb-05 23:49 
AnswerRe: creating a register user page? Pin
Colin Angus Mackay11-Feb-05 1:01
Colin Angus Mackay11-Feb-05 1:01 
QuestionWhere to store video frames? Pin
soundman3210-Feb-05 23:49
soundman3210-Feb-05 23:49 
AnswerRe: Where to store video frames? Pin
Luis Alonso Ramos15-Feb-05 19:22
Luis Alonso Ramos15-Feb-05 19:22 
Generalproblem updating database with OLEdb Pin
fortyonejb10-Feb-05 11:31
fortyonejb10-Feb-05 11:31 
I have a datalist and it works fine with the edit up to the point I get the text boxes and can make the changes. then if I click update my two "message.Text" printers show first the Key correctly, and then the other one shows the original first name, not the name which I changed it to. there are no errors or exceptions. I had done the database command two different ways, one is commented out. I'm not sure how far off I am from having this work. Any assistance would be very welcome.

public void Edit_User(object sender, DataListCommandEventArgs e)<br />
		{<br />
			userList.EditItemIndex = e.Item.ItemIndex;<br />
			userList.DataBind();<br />
		}<br />
<br />
		public void Update_User(object sender, DataListCommandEventArgs e)<br />
		{<br />
			string txtCustFirstNameEdit = ((TextBox)e.Item.FindControl("txtUserFirstNameEdit")).Text;<br />
			string UserKey = userList.DataKeys[e.Item.ItemIndex].ToString();<br />
			<br />
			message.Text = UserKey;<br />
			message1.Text = txtCustFirstNameEdit;<br />
			<br />
			OleDbConnection userListConnection = new OleDbConnection(@.....");<br />
<br />
			//StringBuilder custUpdateBuild = new StringBuilder();<br />
			//custUpdateBuild.Append("UPDATE custInfo SET custFirstName = ('");<br />
			//custUpdateBuild.Append(txtCustFirstNameEdit);<br />
			//custUpdateBuild.Append("') WHERE ID= ('");<br />
			//custUpdateBuild.Append(UserKey);<br />
			//custUpdateBuild.Append("')");<br />
			//string oleUpdateString = custUpdateBuild.ToString();<br />
<br />
			string oleUpdateString = "UPDATE custinfo SET custFirstName = "+"'"+txtCustFirstNameEdit+"'";<br />
			oleUpdateString += " WHERE ID = " + UserKey;<br />
			OleDbDataAdapter userUpdateAdapter = new OleDbDataAdapter();<br />
			userUpdateAdapter.UpdateCommand = new OleDbCommand(oleUpdateString, userListConnection);<br />
			userListConnection.Open();<br />
			userUpdateAdapter.Update(userListDataSet, "custInfo");<br />
			userListConnection.Close();<br />
<br />
			userList.EditItemIndex = -1;<br />
			userList.DataBind();<br />
<br />
			<br />
		}

GeneralTruncate a Field Pin
DEWright_CA10-Feb-05 7:55
DEWright_CA10-Feb-05 7:55 
GeneralRe: Truncate a Field Pin
C# Genius10-Feb-05 8:36
C# Genius10-Feb-05 8:36 
GeneralRe: Truncate a Field Pin
DEWright_CA10-Feb-05 8:44
DEWright_CA10-Feb-05 8:44 
GeneralGet all tables of database Pin
WDI10-Feb-05 6:17
WDI10-Feb-05 6:17 
GeneralRe: Get all tables of database Pin
C# Genius10-Feb-05 8:38
C# Genius10-Feb-05 8:38 
GeneralRe: Get all tables of database Pin
WDI10-Feb-05 9:55
WDI10-Feb-05 9:55 
GeneralRe: Get all tables of database Pin
spsharma10-Feb-05 18:56
spsharma10-Feb-05 18:56 
QuestionCan any one help me in writing this query? Pin
Mahesh16799-Feb-05 19:45
Mahesh16799-Feb-05 19:45 
AnswerRe: Can any one help me in writing this query? Pin
Colin Angus Mackay9-Feb-05 22:38
Colin Angus Mackay9-Feb-05 22:38 
AnswerRe: Can any one help me in writing this query? Pin
numbrel10-Feb-05 4:49
numbrel10-Feb-05 4:49 
GeneralRe: Can any one help me in writing this query? Pin
Yulianto.10-Feb-05 14:29
Yulianto.10-Feb-05 14:29 
AnswerRe: Can any one help me in writing this query? Pin
spsharma10-Feb-05 19:20
spsharma10-Feb-05 19:20 
GeneralRe: Can any one help me in writing this query? Pin
Arjan Einbu10-Feb-05 21:41
Arjan Einbu10-Feb-05 21:41 
Generalretreiving metadata information of s database Pin
padvit9-Feb-05 18:11
padvit9-Feb-05 18:11 
GeneralRe: retreiving metadata information of s database Pin
Colin Angus Mackay9-Feb-05 22:46
Colin Angus Mackay9-Feb-05 22:46 
GeneralRe: retreiving metadata information of s database Pin
padvit10-Feb-05 17:02
padvit10-Feb-05 17:02 
GeneralCreate table error using ADO Pin
elephantstar9-Feb-05 10:43
elephantstar9-Feb-05 10:43 

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.