Guest User

Untitled

a guest
Jan 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. int i = clsMob.InsertMobilizationDetails(dsMobilizn.GetXml());
  2. if (i>0)
  3. {
  4. FillGrid();
  5. ClearAll();
  6. string str = "<script>alert('Successfully mobilized the selected employees')</script>";
  7. ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Validation Error", str, false);
  8. return;
  9. }
  10.  
  11. public int InsertMobilizationDetails(string xml)
  12. {
  13. Database_Operations dbo = new Database_Operations("TransMob_InDetails", true);
  14. dbo.AddParameter("@xmlMob", xml);
  15. return dbo.ExecuteQuery(); //returns value as 1
  16. }
Add Comment
Please, Sign In to add comment