Click here to Skip to main content
15,894,343 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAJAX Extension versions Pin
mehrdadc487-Sep-08 22:54
mehrdadc487-Sep-08 22:54 
AnswerRe: AJAX Extension versions Pin
eyeseetee8-Sep-08 0:24
eyeseetee8-Sep-08 0:24 
GeneralRe: AJAX Extension versions Pin
mehrdadc488-Sep-08 9:46
mehrdadc488-Sep-08 9:46 
QuestionJava Script Validation for Radio Button inside Grid View Pin
Binod K7-Sep-08 22:24
Binod K7-Sep-08 22:24 
AnswerRe: Java Script Validation for Radio Button inside Grid View Pin
Sandeep Akhare7-Sep-08 22:34
Sandeep Akhare7-Sep-08 22:34 
AnswerRe: Java Script Validation for Radio Button inside Grid View Pin
Shaik Haneef8-Sep-08 0:31
Shaik Haneef8-Sep-08 0:31 
AnswerRe: Java Script Validation for Radio Button inside Grid View Pin
Jay_se8-Sep-08 2:42
Jay_se8-Sep-08 2:42 
QuestionDataModule is not a member of 'System.Security.Principal.IPrincipal' Pin
kmathebula7-Sep-08 21:41
kmathebula7-Sep-08 21:41 
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
QuestionResponse object in class file Pin
needhi_p7-Sep-08 21:20
needhi_p7-Sep-08 21:20 
AnswerRe: Response object in class file Pin
N a v a n e e t h7-Sep-08 21:23
N a v a n e e t h7-Sep-08 21:23 
AnswerRe: Response object in class file Pin
Shaik Haneef8-Sep-08 0:08
Shaik Haneef8-Sep-08 0:08 
GeneralRe: Response object in class file Pin
J4amieC8-Sep-08 0:21
J4amieC8-Sep-08 0:21 
Questionopening an html file which is stored in sql database. Pin
Sasmi_Office7-Sep-08 20:52
Sasmi_Office7-Sep-08 20:52 
AnswerRe: opening an html file which is stored in sql database. Pin
N a v a n e e t h7-Sep-08 21:21
N a v a n e e t h7-Sep-08 21:21 
GeneralRe: opening an html file which is stored in sql database. Pin
Sasmi_Office7-Sep-08 21:53
Sasmi_Office7-Sep-08 21:53 
QuestionMy SQl Date Time problem Pin
Krazy Programmer7-Sep-08 20:51
Krazy Programmer7-Sep-08 20:51 
AnswerRe: My SQl Date Time problem Pin
Blue_Boy7-Sep-08 21:13
Blue_Boy7-Sep-08 21:13 
GeneralRe: My SQl Date Time problem Pin
Krazy Programmer7-Sep-08 21:31
Krazy Programmer7-Sep-08 21:31 
AnswerRe: My SQl Date Time problem Pin
pratik malviya7-Sep-08 21:43
pratik malviya7-Sep-08 21:43 
QuestionDataTable to Excel Pin
Vignesh Krishnan7-Sep-08 20:24
Vignesh Krishnan7-Sep-08 20:24 
AnswerRe: DataTable to Excel Pin
Blue_Boy7-Sep-08 20:46
Blue_Boy7-Sep-08 20:46 
AnswerRe: DataTable to Excel Pin
Shaik Haneef8-Sep-08 0:21
Shaik Haneef8-Sep-08 0:21 
GeneralRe: DataTable to Excel Pin
Gamzun8-Sep-08 17:23
Gamzun8-Sep-08 17:23 
AnswerRe: DataTable to Excel Pin
Herman<T>.Instance8-Sep-08 23:11
Herman<T>.Instance8-Sep-08 23:11 
QuestionAllowed html tags crystal report in ASP.NET Pin
King Shez7-Sep-08 20:08
King Shez7-Sep-08 20:08 

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.