Click here to Skip to main content
16,014,294 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
mpisha18-Oct-07 8:11
mpisha18-Oct-07 8:11 
AnswerRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
Patrick Etc.16-Oct-07 7:50
Patrick Etc.16-Oct-07 7:50 
GeneralRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
mpisha18-Oct-07 8:14
mpisha18-Oct-07 8:14 
AnswerCome on people.... Pin
Christian Graus16-Oct-07 10:14
protectorChristian Graus16-Oct-07 10:14 
GeneralRe: Come on people.... Pin
Patrick Etc.16-Oct-07 10:33
Patrick Etc.16-Oct-07 10:33 
QuestionBusiness Object Error Pin
nicetohaveyou16-Oct-07 1:30
nicetohaveyou16-Oct-07 1:30 
AnswerRe: Business Object Error Pin
Dave Kreskowiak16-Oct-07 2:15
mveDave Kreskowiak16-Oct-07 2:15 
QuestionHow to Use ? [modified] Pin
Satish_S16-Oct-07 0:42
Satish_S16-Oct-07 0:42 
i have tried to use 3 layers
Presentation Layer,business Logic Layer, Data Access Layer
Just i Have tried,tell whether this is correct or not?

In My Presentation Layer
i have two textbox one for UserName and other for password

Private Sub btnSubmit_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.ServerClick
Try
Dim cus As New UserBLL
cus.UserName = txtuser.Value.ToString
cus.UserPass = txtPass.Value.ToString
cus.Verify()


Catch ex As Exception
Response.Write(ex.Message.ToString())
End Try
End Sub

In My business Logic Layer

Public Property UserName()
Get
Return user
End Get
Set(ByVal Value)
Try
Me.user = Value
If (Me.user = "") Then
Throw New Exception("Please Provide The User Name")
End If
Catch ex As Exception
Throw New Exception(ex.Message.ToString)
End Try
End Set

End Property
Public Property UserPass()

Get
Return pass
End Get
Set(ByVal Value)
Try
Me.pass = Value
If (Me.pass = "") Then
Throw New Exception("Please Provide The Pasword")
End If
Catch ex As Exception
Throw New Exception(ex.Message.ToString)
End Try
End Set
End Property

Public Sub Verify()

strReturnfromDAL = UsrData.Verify2("user", "pass")
End Sub

In Data Access Layer i Have

Public Function Verify2(ByVal str As String, ByVal str2 As String) As String
If str = "user" And str2 = "pass" Then
Return str + "" + str2
End If

End Function




In above i have tried to get a concept but i think i am not in correct way and
i need a result like verfying the user name and password and return back to BLL
i am not getting any error but i am not able to get the value of verify function to prsentation layer.


sathimailin


-- modified at 7:21 Tuesday 16th October, 2007
AnswerRe: How to Use ? Pin
Christian Graus16-Oct-07 1:14
protectorChristian Graus16-Oct-07 1:14 
GeneralRe: How to Use ? Pin
Satish_S16-Oct-07 1:28
Satish_S16-Oct-07 1:28 
GeneralRe: How to Use ? Pin
Satish_S16-Oct-07 20:05
Satish_S16-Oct-07 20:05 
QuestionIs it possible to write data in an opened excel file ? Pin
rpimpley16-Oct-07 0:23
rpimpley16-Oct-07 0:23 
AnswerRe: Is it possible to write data in an opened excel file ? Pin
Dave Kreskowiak16-Oct-07 2:10
mveDave Kreskowiak16-Oct-07 2:10 
QuestionDeployment in VS 2003(User interface) Question Pin
Vimalsoft(Pty) Ltd16-Oct-07 0:19
professionalVimalsoft(Pty) Ltd16-Oct-07 0:19 
QuestionFile Upload Control in VB.Net Pin
Sivan.G15-Oct-07 23:02
Sivan.G15-Oct-07 23:02 
AnswerRe: File Upload Control in VB.Net Pin
Christian Graus15-Oct-07 23:26
protectorChristian Graus15-Oct-07 23:26 
QuestionSyncronize scrolling of 2 dataGridViews Pin
MohammadAmiry15-Oct-07 21:49
MohammadAmiry15-Oct-07 21:49 
AnswerFound a solution! Pin
MohammadAmiry15-Oct-07 23:45
MohammadAmiry15-Oct-07 23:45 
QuestionDynamic file Streams Pin
Benny_Lava15-Oct-07 21:17
Benny_Lava15-Oct-07 21:17 
AnswerRe: Dynamic file Streams Pin
Dave Kreskowiak16-Oct-07 2:05
mveDave Kreskowiak16-Oct-07 2:05 
QuestionVb code to get the formatting tool in my project.--Plz plz its urgent Pin
vipul215-Oct-07 19:59
vipul215-Oct-07 19:59 
AnswerRe: Vb code to get the formatting tool in my project.--Plz plz its urgent Pin
Chetan Patel15-Oct-07 20:26
Chetan Patel15-Oct-07 20:26 
GeneralRe: Vb code to get the formatting tool in my project.--Plz plz its urgent Pin
vipul215-Oct-07 21:22
vipul215-Oct-07 21:22 
AnswerRe: Vb code to get the formatting tool in my project.--Plz plz its urgent Pin
Christian Graus15-Oct-07 23:28
protectorChristian Graus15-Oct-07 23:28 
GeneralRe: Vb code to get the formatting tool in my project.--Plz plz its urgent Pin
vipul215-Oct-07 23:35
vipul215-Oct-07 23:35 

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.