In a .Net Asp application I am able to retrieve data from an Access db and
display in on a web form. How ever during the update function after a page
update, the update command does not throw an exception but it does not save
out the changes either. It seems that upon the postback no data exists in
the dataset. I must be missing something.
How you post the data from an edited user page back to the database?
if (!(Page.IsPostB ack))
{
this.oleDbDAUse r.Fill(this.dsM ain1,"Users");
this.lblUserID. DataBind();
this.txtFirstNa me.DataBind();
this.txtMiddleN ame.DataBind();
..........
}
No error here, but no data is saved either:
private void btnSave_Click(o bject sender, System.EventArg s e)
{
try
{
this.oleDbDAUse r.Update(this.d sMain1);
}
catch (Exception oops)
{
this.txtUserMes sage.Text = "Error occured!<BR>" + oops.ToString() ;
}
}
}
Thanks,
Ray
--
--
/\_Ray Valenti ____ http://www.quixor.com ______
\/ Quixor Flex Systems, Ltd.