Click here to Skip to main content
16,007,472 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Radiobutton's ServerChange event handler does not fire Pin
Gandalf_TheWhite7-Feb-08 19:06
professionalGandalf_TheWhite7-Feb-08 19:06 
GeneralRe: Radiobutton's ServerChange event handler does not fire Pin
Sandeep Akhare7-Feb-08 19:16
Sandeep Akhare7-Feb-08 19:16 
GeneralRe: Radiobutton's ServerChange event handler does not fire Pin
Gandalf_TheWhite7-Feb-08 19:24
professionalGandalf_TheWhite7-Feb-08 19:24 
GeneralRe: Radiobutton's ServerChange event handler does not fire Pin
Gandalf_TheWhite7-Feb-08 19:37
professionalGandalf_TheWhite7-Feb-08 19:37 
GeneralRe: Radiobutton's ServerChange event handler does not fire Pin
Gandalf_TheWhite7-Feb-08 19:43
professionalGandalf_TheWhite7-Feb-08 19:43 
GeneralRe: Radiobutton's ServerChange event handler does not fire Pin
tjkota8-Feb-08 5:26
tjkota8-Feb-08 5:26 
GeneralRe: Radiobutton's ServerChange event handler does not fire Pin
Gandalf_TheWhite8-Feb-08 19:05
professionalGandalf_TheWhite8-Feb-08 19:05 
GeneralReturn value Pin
Member 40654727-Feb-08 8:38
Member 40654727-Feb-08 8:38 
i have SAVE function and a stored procedure ("JobsDb_ContactInfo_InsertUpdateSingleItem" which return "returnValue" which is returned value integer of inserted UserId please help me get returned value UserID
i am trying to get Profile.UserId =Returned value of stored procedure UserId

This is the code i have in web form to save data
If Not (Profile.UserId = -1) Then<br />
                myContactInfo.UserID = Profile.UserId<br />
<br />
                [ContactInfoManager].Save(myContactInfo)<br />
               <br />
            Else<br />
                Dim result As Integer = ContactInfoManager.Save(myContactInfo)<br />
                Profile.UserId = result<br />
                                )<br />
            End If



this is the Save function
Public Shared Function Save(ByVal myContactInfo As ContactInfo) As Integer<br />
            Dim result As Integer = 0<br />
            ' Using<br />
            Dim myConnection As SqlConnection = New SqlConnection(AppConfiguration.ConnectionString)<br />
            Try<br />
                Dim myCommand As SqlCommand = New SqlCommand("JobsDb_ContactInfo_InsertUpdateSingleItem", myConnection)<br />
                myCommand.CommandType = CommandType.StoredProcedure<br />
                                    myCommand.Parameters.AddWithValue("@Userid", UserId)<br />
                <br />
                Dim returnValue As DbParameter<br />
                returnValue = myCommand.CreateParameter<br />
                returnValue.Direction = ParameterDirection.ReturnValue<br />
                myCommand.Parameters.Add(returnValue)<br />
                myConnection.Open()<br />
                myCommand.ExecuteNonQuery()<br />
                result = Convert.ToInt32(returnValue.Value)<br />
<br />
                myConnection.Close()            Finally<br />
                CType(myConnection, IDisposable).Dispose()<br />
            End Try<br />
            Return result<br />
<br />
        End Function


appu

GeneralRe: Return value Pin
MrPlankton7-Feb-08 9:03
MrPlankton7-Feb-08 9:03 
GeneralRe: Return value Pin
Member 40654728-Feb-08 5:03
Member 40654728-Feb-08 5:03 
GeneralRe: Return value Pin
MrPlankton8-Feb-08 8:16
MrPlankton8-Feb-08 8:16 
GeneralWrong forum Pin
pmarfleet7-Feb-08 9:55
pmarfleet7-Feb-08 9:55 
GeneralRe: Return value Pin
Gandalf_TheWhite7-Feb-08 18:42
professionalGandalf_TheWhite7-Feb-08 18:42 
GeneralCrystal Report Pin
techpub7-Feb-08 8:18
techpub7-Feb-08 8:18 
GeneralWrong forum Pin
pmarfleet7-Feb-08 8:28
pmarfleet7-Feb-08 8:28 
GeneralRe: Wrong forum Pin
techpub7-Feb-08 23:11
techpub7-Feb-08 23:11 
GeneralRe: Wrong forum Pin
pmarfleet7-Feb-08 23:18
pmarfleet7-Feb-08 23:18 
GeneralRe: Crystal Report Pin
Gandalf_TheWhite7-Feb-08 18:53
professionalGandalf_TheWhite7-Feb-08 18:53 
GeneralASP.NET Authorisation Problem in Vista (solved) Pin
Kevin McFarlane7-Feb-08 8:13
Kevin McFarlane7-Feb-08 8:13 
GeneralRe: ASP.NET Authorisation Problem in Vista Pin
Christian Graus7-Feb-08 9:07
protectorChristian Graus7-Feb-08 9:07 
GeneralRe: ASP.NET Authorisation Problem in Vista Pin
Todd Smith7-Feb-08 11:14
Todd Smith7-Feb-08 11:14 
GeneralRe: ASP.NET Authorisation Problem in Vista Pin
Gandalf_TheWhite7-Feb-08 18:39
professionalGandalf_TheWhite7-Feb-08 18:39 
QuestionAsp .net web directory Pin
Radu_207-Feb-08 5:32
Radu_207-Feb-08 5:32 
QuestionTreeView help [modified] Pin
kingletas7-Feb-08 5:07
kingletas7-Feb-08 5:07 
GeneralRe: TreeView help Pin
Christian Graus7-Feb-08 9:08
protectorChristian Graus7-Feb-08 9: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.