Click here to Skip to main content
15,892,517 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Runtime Creation Of Button+Adding Events+Sourabh Pin
Dot Net Jantu3-Nov-07 11:06
Dot Net Jantu3-Nov-07 11:06 
GeneralRe: Runtime Creation Of Button+Adding Events+Sourabh Pin
pmarfleet3-Nov-07 11:12
pmarfleet3-Nov-07 11:12 
GeneralRe: Runtime Creation Of Button+Adding Events+Sourabh Pin
Dot Net Jantu3-Nov-07 11:20
Dot Net Jantu3-Nov-07 11:20 
GeneralRe: Runtime Creation Of Button+Adding Events+Sourabh Pin
pmarfleet3-Nov-07 11:29
pmarfleet3-Nov-07 11:29 
GeneralRe: Runtime Creation Of Button+Adding Events+Sourabh Pin
Dot Net Jantu3-Nov-07 19:45
Dot Net Jantu3-Nov-07 19:45 
GeneralRe: Runtime Creation Of Button+Adding Events+Sourabh Pin
pmarfleet3-Nov-07 23:05
pmarfleet3-Nov-07 23:05 
AnswerRe: Runtime Creation Of Button+Adding Events+Sourabh Pin
Christian Graus3-Nov-07 12:19
protectorChristian Graus3-Nov-07 12:19 
QuestionPassing argument to function Pin
csinva3-Nov-07 8:36
csinva3-Nov-07 8:36 
I learning and have a problem this topic. Here is what I'm tryig to figure out in my head. I need to pass a function the name "Joe" and then have the function look it up in the database and return it back so it can go inside a text vale.

Here is the example I'm work through. I can't seem to get it to work so I need to make sure I understand how to pass arguments and return them.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim name as String = "Joe"
Dim Userid as Integer

GetUserID(name, result_sUserID)

result_sUserId = txtUserid.text

End Sub

Public Function GetUserID(ByVal name As String, result_sUserID As Integer) As Integer

.... datbase connection stuff
.... userid as int32 in database

sUserID = Convert.ToInt32(myCommand.ExecuteScalar())

Return

Result_sUserID = sUserID


End Function


Chris Stewart

www.pluginforsuccess.com

AnswerRe: Passing argument to function Pin
pmarfleet3-Nov-07 9:03
pmarfleet3-Nov-07 9:03 
GeneralRe: Passing argument to function Pin
csinva3-Nov-07 9:12
csinva3-Nov-07 9:12 
GeneralRe: Passing argument to function Pin
pmarfleet3-Nov-07 9:21
pmarfleet3-Nov-07 9:21 
AnswerRe: Passing argument to function Pin
Guffa3-Nov-07 9:27
Guffa3-Nov-07 9:27 
AnswerRe: Passing argument to function Pin
Guffa3-Nov-07 9:12
Guffa3-Nov-07 9:12 
GeneralRe: Passing argument to function Pin
csinva3-Nov-07 9:56
csinva3-Nov-07 9:56 
GeneralRe: Passing argument to function Pin
csinva3-Nov-07 10:29
csinva3-Nov-07 10:29 
AnswerRe: Passing argument to function Pin
Guffa3-Nov-07 11:22
Guffa3-Nov-07 11:22 
Question[Message Deleted] Pin
Unknown Ajanabi3-Nov-07 2:42
Unknown Ajanabi3-Nov-07 2:42 
AnswerRe: i want to know how to create page dynamically like Sulekha.com Pin
Malcolm Smart3-Nov-07 4:23
Malcolm Smart3-Nov-07 4:23 
AnswerRe: i want to know how to create page dynamically like Sulekha.com Pin
Mircea Grelus3-Nov-07 5:15
Mircea Grelus3-Nov-07 5:15 
GeneralRe: i want to know how to create page dynamically like Sulekha.com Pin
Paul Conrad3-Nov-07 5:22
professionalPaul Conrad3-Nov-07 5:22 
Questionajax.net Pin
Rinki Mukheraji3-Nov-07 1:19
Rinki Mukheraji3-Nov-07 1:19 
AnswerRe: ajax.net Pin
InsDev3-Nov-07 1:33
InsDev3-Nov-07 1:33 
GeneralRe: ajax.net Pin
Rinki Mukheraji3-Nov-07 1:49
Rinki Mukheraji3-Nov-07 1:49 
AnswerRe: ajax.net Pin
Mircea Grelus3-Nov-07 2:10
Mircea Grelus3-Nov-07 2:10 
AnswerRe: ajax.net Pin
Unknown Ajanabi3-Nov-07 2:34
Unknown Ajanabi3-Nov-07 2:34 

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.