fork download
  1.  
  2. Imports System.Data
  3. Partial Class vbcode
  4. Inherits System.Web.UI.Page
  5. Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
  6. BindGridviewData()
  7. End Sub
  8. Protected Sub BindGridviewData()
  9. Dim dt As New DataTable()
  10. dt.Columns.Add("UserId", GetType(Int32))
  11. dt.Columns.Add("UserName", GetType(String))
  12. dt.Columns.Add("Education", GetType(String))
  13. dt.Rows.Add(1, "Suresh Dasari", "B.Tech")
  14. dt.Rows.Add(2, "Rohini Dasari", "Msc")
  15. dt.Rows.Add(3, "Madhav Sai", "MS")
  16. dt.Rows.Add(4, "Praveen", "B.Tech")
  17. dt.Rows.Add(6, "Sateesh", "MD")
  18. dt.Rows.Add(7, "Mahesh Dasari", "B.Tech")
  19. dt.Rows.Add(8, "Mahendra", "CA")
  20. gvDetails.DataSource = dt
  21. gvDetails.DataBind()
  22. End Sub
  23. End Class
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/QiebyG/prog.vb (20,11) : Error VBNC30451: Could not resolve the name 'gvDetails'
/home/QiebyG/prog.vb (21,11) : Error VBNC30451: Could not resolve the name 'gvDetails'
There were 2 errors and 0 warnings.
Compilation took 00:00:00.9912650
stdout
Standard output is empty