Updating my database
Posted
by
Malcolm
on Stack Overflow
See other posts from Stack Overflow
or by Malcolm
Published on 2011-01-04T13:04:39Z
Indexed on
2011/01/04
13:53 UTC
Read the original article
Hit count: 199
I am new with the subsonic, and I have a problem when trying to update the database from the sql server. I have created a gridview by still is not returning the updates results. can you please help me? its getting an error code on dc.AddMostaHse(); (Cannot implicity convert type 'void to 'object')
Here is the code being done of DataAccess.cs page
public void AddMostaHse() {
Mosta.MostaHSE1 xx = new MostaHSE1();
xx.ID = 94;
xx.FunctionLocation = "lza94";
xx.acno = 12;
xx.Save();
}
Binding it with the gridview. {
DataAccess dc = new DataAccess();
gvtest.DataSource = dc.AddMostaHse();
gvtest.DataBind();
}
© Stack Overflow or respective owner