Well, I've never done this before, but it should be the same as you do it in .NET . 8-[
Isn't it possible like this?
Sub Page_Load(Sender As Object, E As EventArgs)
Dim myConnection As SqlConnection = _
New SqlConnection(ConfigurationSettings.AppSettings("DSN"))
Dim MyCommand as SQLCommand = New SQLCommand("spReturnarticleId", MyConnection)
MyCommand.CommandType = CommandType.StoredProcedure
myConnection.Open()
'Execute the Stored Procedure, return the value and increment it by 1
Dim count As Int32 = CInt(myCommand.ExecuteScalar()) + 1
dim strID as string = cstr(count)
'Set the value of a textbox
text1.text = strId
'Set the Value of a message to test what value is returned
Message.InnerHtml = strId
myConnection.Close()
End Sub
Comments
Isn't it possible like this?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
search on mibuso or dynamicsuser.net (sorry for advertisings...), I have posted some examples for retreiving values of storage procedures...
Ah, OK ... :oops:
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
hhehhh... no need for ooops
http://www.mibuso.com/forum/viewtopic.p ... +parameter
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!