protected void UpdateProfile(object sender, EventArgs e)
{
int ID = Convert.ToInt32(pID.Value);
ClientDataContext dc = new ClientDataContext();
ClientCV cvData = dc.ClientCVs.Single(p => p.ID == ID);
/*
var GetData = (from c in dc.ClientCVs
where c.ID == ID
select c).Single();
GetData.Description = txtPersonalProfile.Text;
*/
cvData.Description = txtPersonalProfile.Text;
try
{
dc.SubmitChanges();
lblHist.Text = "Personal profile updated!";
}
catch (Exception ex)
{
lblHist.Text = "Error: " + ex.ToString();
}
upProfile.Update();
}
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
Does it return any record?
>> ClientCV cvData = dc.ClientCVs.Single(p => p.ID == ID);
What is function of this line?
>> upProfile.Update();