D
David
Hi,
I am using Linq to Sql.
I have a linkbutton in an AJAX update panel.
The link button on click has...
using (DataClassesDataContext dc = new DataClassesDataContext())
{
ServiceSheet sheet = dc.ServiceSheets.First(a => a.SheetID ==
Request.QueryString["sheet"]);
sheet.TrailerID = TempTrailerIDLinkButton.Text;
dc.SubmitChanges();
}
BarcodeHandlerPanel.Visible = false;
Now, when I step through it, it appears the sheet.TrailerID is set, as if I
look at sheet after assigning the TrailerID, I can see the new ID. I then
see the BarcodeHandlerPanel disappear... so I know it is not crashing out...
however, when I look at my data, absolutely nothing has happened.
Any ideas?
All help would be appreciated. I really don't understand this, unless it is
because my machine is low on resources... but having checked a similar
update (different data and different table) elsewhere (not inside an ajax
panel), the update works.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
I am using Linq to Sql.
I have a linkbutton in an AJAX update panel.
The link button on click has...
using (DataClassesDataContext dc = new DataClassesDataContext())
{
ServiceSheet sheet = dc.ServiceSheets.First(a => a.SheetID ==
Request.QueryString["sheet"]);
sheet.TrailerID = TempTrailerIDLinkButton.Text;
dc.SubmitChanges();
}
BarcodeHandlerPanel.Visible = false;
Now, when I step through it, it appears the sheet.TrailerID is set, as if I
look at sheet after assigning the TrailerID, I can see the new ID. I then
see the BarcodeHandlerPanel disappear... so I know it is not crashing out...
however, when I look at my data, absolutely nothing has happened.
Any ideas?
All help would be appreciated. I really don't understand this, unless it is
because my machine is low on resources... but having checked a similar
update (different data and different table) elsewhere (not inside an ajax
panel), the update works.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available