Click here to Skip to main content
15,895,192 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Starting index Pin
indian14326-Aug-08 6:19
indian14326-Aug-08 6:19 
GeneralRe: Starting index Pin
Christian Graus26-Aug-08 11:48
protectorChristian Graus26-Aug-08 11:48 
GeneralRe: Starting index Pin
Jon_Boy26-Aug-08 6:53
Jon_Boy26-Aug-08 6:53 
QuestionRe: Starting index Pin
Bassam Saoud26-Aug-08 11:55
Bassam Saoud26-Aug-08 11:55 
JokeRe: Starting index Pin
Shog926-Aug-08 11:56
sitebuilderShog926-Aug-08 11:56 
AnswerRe: Starting index Pin
Eytukan26-Aug-08 17:53
Eytukan26-Aug-08 17:53 
AnswerRe: Starting index Pin
Eytukan26-Aug-08 17:58
Eytukan26-Aug-08 17:58 
QuestionDataModule is not a member of 'System.Security.Principal.IPrincipal' Pin
kmathebula26-Aug-08 5:20
kmathebula26-Aug-08 5:20 
Hi there i am a newbie in VB .Net, I am getting this error on my Page_Load DataModule is not a member of 'System.Security.Principal.IPrincipal' and I do not have any roles yet on my application, just a simple class to populate a datagrid, is there a way i can turn this security off? what is wrong? i am using VS 2008 with v3.5sql server 2005. Please help

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Security
Imports System.Security.Principal
Imports System.Web
Imports System.Web.UI

Public Class User

Dim mDataPath As String

Public Shared DataModule As User



Function GetConnection() As SqlConnection

Return New SqlConnection("Server=GMPROD13\GMFE;Integrated Security=True;Database=GM_Escheatables")

End Function

'Public Overloads Function GetUsers() As DataSet
' Return Me.GetAllUsers("USER_EMPL_NO")
'End Function


Public Overloads Function GetAllUsers() As DataSet

Dim conn As SqlConnection = GetConnection()
Try
Dim cmd As New SqlCommand("Escheatables_GetAllUser", conn)
Dim ds As New DataSet
Dim adpt As New SqlDataAdapter(cmd)
Try

adpt.Fill(ds, "users")
Finally
adpt.Dispose()
End Try

Return ds

Finally

conn.Close()
conn.Dispose()
End Try


End Function

Public Sub New(ByVal sDatapath As String)
MyBase.new()
Me.mDataPath = sDatapath
User.DataModule = Me
End Sub


End Class



Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections.Generic
Imports System.Security.Principal

Partial Class Escheatables_UserList

Inherits System.Web.UI.Page

Private dsUsers As DataSet


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

dsUsers = User.DataModule.GetAllUsers


Me.GridView1.DataSource = dsUsers
Me.GridView1.DataMember = "users"
'Me.GridView1.ReadOnly = True
Me.GridView1.DataBind()

End Sub
End Class
Questionfrom vb.net crystal report result directly export to pdf Pin
Member 320956826-Aug-08 4:38
Member 320956826-Aug-08 4:38 
AnswerRe: from vb.net crystal report result directly export to pdf Pin
D4ever26-Aug-08 8:55
D4ever26-Aug-08 8:55 
AnswerRe: from vb.net crystal report result directly export to pdf Pin
D4ever28-Aug-08 7:59
D4ever28-Aug-08 7:59 
QuestionHow to store data from DataGridView to SQL Sever 2005 [modified] Pin
Francis K Antony26-Aug-08 2:57
Francis K Antony26-Aug-08 2:57 
AnswerRe: How to store data from DataGridView to SQL Sever 2005 Pin
D4ever26-Aug-08 9:05
D4ever26-Aug-08 9:05 
QuestionRe: How to store data from DataGridView to SQL Sever 2005 Pin
Francis K Antony26-Aug-08 20:51
Francis K Antony26-Aug-08 20:51 
AnswerRe: How to store data from DataGridView to SQL Sever 2005 Pin
D4ever27-Aug-08 9:21
D4ever27-Aug-08 9:21 
QuestionRe: How to store data from DataGridView to SQL Sever 2005 Pin
Francis K Antony27-Aug-08 20:25
Francis K Antony27-Aug-08 20:25 
AnswerRe: How to store data from DataGridView to SQL Sever 2005 Pin
D4ever28-Aug-08 7:57
D4ever28-Aug-08 7:57 
Questionruntime error 53 - "file not found" Pin
Vikas K.26-Aug-08 2:38
Vikas K.26-Aug-08 2:38 
AnswerRe: runtime error 53 - "file not found" Pin
Manas Bhardwaj26-Aug-08 3:00
professionalManas Bhardwaj26-Aug-08 3:00 
AnswerRe: runtime error 53 - "file not found" Pin
jzonthemtn26-Aug-08 5:47
jzonthemtn26-Aug-08 5:47 
AnswerRe: runtime error 53 - "file not found" Pin
Vikas K.28-Aug-08 0:44
Vikas K.28-Aug-08 0:44 
Questiongetting System.Type object Pin
indian14326-Aug-08 0:34
indian14326-Aug-08 0:34 
AnswerRe: getting System.Type object Pin
Manas Bhardwaj26-Aug-08 0:58
professionalManas Bhardwaj26-Aug-08 0:58 
AnswerRe: getting System.Type object Pin
N a v a n e e t h26-Aug-08 1:15
N a v a n e e t h26-Aug-08 1:15 
GeneralRe: getting System.Type object Pin
indian14326-Aug-08 1:38
indian14326-Aug-08 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.