fork download
  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.HtmlControls;
  9. using System.Web.UI.WebControls;
  10. using System.Web.UI.WebControls.WebParts;
  11. using System.Xml.Linq;
  12. using System.Data.SqlClient;
  13. /// <summary>
  14. /// Summary description for registerClass
  15. /// </summary>
  16. public class registerClass
  17. {
  18.  
  19. public SqlConnection con = new SqlConnection();
  20. public SqlCommand cmd;
  21. public SqlDataReader dr;
  22. public SqlDataAdapter da;
  23. public DataSet ds;
  24. public string query;
  25. public void connection()
  26. {
  27. con.ConnectionString = ConfigurationManager.ConnectionStrings["registerConnection"].ConnectionString;
  28. con.Open();
  29. }
  30. public void ExecuteQuery(string query)
  31. {
  32. cmd = new SqlCommand(query, con);
  33. cmd.ExecuteNonQuery();
  34. }
  35. public void ExecuteRead(string query)
  36. {
  37. cmd=new SqlCommand(query,con);
  38. dr=cmd.ExecuteReader();
  39. }
  40. public void GetDataSet(string query)
  41. {
  42. cmd = new SqlCommand(query, con);
  43. da = new SqlDataAdapter(cmd);
  44. ds = new DataSet();
  45. da.Fill(ds);
  46. }
  47. public registerClass()
  48. {
  49. //
  50. // TODO: Add constructor logic here
  51. //
  52. }
  53. }
  54.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(2,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(6,18): error CS0234: The type or namespace name `Security' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(7,18): error CS0234: The type or namespace name `UI' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(8,18): error CS0234: The type or namespace name `UI' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(9,18): error CS0234: The type or namespace name `UI' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(10,18): error CS0234: The type or namespace name `UI' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(11,18): error CS0234: The type or namespace name `Linq' does not exist in the namespace `System.Xml'. Are you missing an assembly reference?
prog.cs(12,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(20,12): error CS0246: The type or namespace name `SqlCommand' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(21,12): error CS0246: The type or namespace name `SqlDataReader' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(22,12): error CS0246: The type or namespace name `SqlDataAdapter' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(23,12): error CS0246: The type or namespace name `DataSet' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(2,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(6,18): error CS0234: The type or namespace name `Security' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(7,18): error CS0234: The type or namespace name `UI' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(8,18): error CS0234: The type or namespace name `UI' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(9,18): error CS0234: The type or namespace name `UI' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(10,18): error CS0234: The type or namespace name `UI' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
prog.cs(11,18): error CS0234: The type or namespace name `Linq' does not exist in the namespace `System.Xml'. Are you missing an assembly reference?
prog.cs(12,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
Compilation failed: 20 error(s), 0 warnings
stdout
Standard output is empty