Click here to Skip to main content
16,005,141 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAjax.Ajax.Ajax Pin
coolshad29-Aug-06 23:54
coolshad29-Aug-06 23:54 
AnswerRe: Ajax.Ajax.Ajax Pin
CWIZO30-Aug-06 1:04
CWIZO30-Aug-06 1:04 
GeneralRe: Ajax.Ajax.Ajax Pin
coolshad30-Aug-06 5:41
coolshad30-Aug-06 5:41 
QuestionDataGrid in a Datalist for Master Detail Records Pin
deepaks329-Aug-06 23:40
deepaks329-Aug-06 23:40 
QuestionSQLdataAdapter does not update when DB contains empty fields Pin
ThomasLu29-Aug-06 23:25
ThomasLu29-Aug-06 23:25 
AnswerRe: SQLdataAdapter does not update when DB contains empty fields Pin
deepaks329-Aug-06 23:45
deepaks329-Aug-06 23:45 
GeneralRe: SQLdataAdapter does not update when DB contains empty fields Pin
ThomasLu30-Aug-06 1:08
ThomasLu30-Aug-06 1:08 
Questioncalling DB2 stored procedure using asp.net Pin
playout29-Aug-06 22:14
playout29-Aug-06 22:14 
Hi,

I am having a lot of problems trying to get a stored procedure on a DB2 database to work.
I tried looking on the web, nothing.... or I am just blind out of frustration.

From what I could see, and my debugging, the code is fine... What happens is, my function runs the following code, and should return a value if successfull. However, when I go view my db2 database, it shows that the Stored Procedure has not run. But from my code, it looks like it did. Anyone who can help me out, PLEASE?

<br />
            Dim strSuccess As String = ""<br />
            ' Create instance of connection and command object<br />
            Dim objConn As IBM.Data.DB2.iSeries.iDB2Connection = New iDB2Connection(DB2SP()) 'DB2SP() is connection string in my web.cofig. It does work, as other code use the same string<br />
<br />
            Dim objCmd As IBM.Data.DB2.iSeries.iDB2Command = New iDB2Command("A1EXEC.LISTIMPORT", objConn)<br />
<br />
            ' Mark the command as a SPROC<br />
            objCmd.CommandType = CommandType.StoredProcedure<br />
<br />
            Dim strDivision As String = "C1"<br />
            Dim intPeriod As Integer = 200705<br />
<br />
            ' Add parameters to SPROC<br />
	    ' just done the basics here, to get it to work<br />
            objCmd.Parameters.Add(New IBM.Data.DB2.iSeries.iDB2Parameter("@division", strDivision))<br />
            objCmd.Parameters.Add(New IBM.Data.DB2.iSeries.iDB2Parameter("@period", intPeriod))<br />
<br />
            ' Execute the command<br />
            Try<br />
                ' Open the connection and execute the command<br />
                objConn.Open()<br />
                objCmd.ExecuteNonQuery()<br />
                strSuccess = "SP - Successful"<br />
            Catch ex As Exception<br />
                Dim strExceptionMsg As String = "Error Executing SP(): " & ex.Message & vbCrLf<br />
                Throw New Exception(strExceptionMsg, ex)<br />
            Finally<br />
                ' Close the Connection<br />
                If objConn.State = ConnectionState.Open Then<br />
                    objConn.Close()<br />
                End If<br />
                objConn.Dispose()<br />
                objCmd.Dispose()<br />
            End Try<br />
<br />
            Return strSuccess

Questionhow to synchronize dropdownlists Pin
Kissy1629-Aug-06 22:00
Kissy1629-Aug-06 22:00 
AnswerRe: how to synchronize dropdownlists Pin
_AK_29-Aug-06 22:49
_AK_29-Aug-06 22:49 
GeneralRe: how to synchronize dropdownlists [modified] Pin
Kissy1630-Aug-06 0:27
Kissy1630-Aug-06 0:27 
GeneralRe: how to synchronize dropdownlists Pin
Kissy1630-Aug-06 1:12
Kissy1630-Aug-06 1:12 
GeneralRe: how to synchronize dropdownlists Pin
_AK_30-Aug-06 1:25
_AK_30-Aug-06 1:25 
QuestionValidation in asp:DataList Pin
deepaks329-Aug-06 21:10
deepaks329-Aug-06 21:10 
AnswerRe: Validation in asp:DataList Pin
_AK_29-Aug-06 21:34
_AK_29-Aug-06 21:34 
GeneralRe: Validation in asp:DataList Pin
deepaks329-Aug-06 21:47
deepaks329-Aug-06 21:47 
GeneralRe: Validation in asp:DataList Pin
_AK_29-Aug-06 22:50
_AK_29-Aug-06 22:50 
GeneralRe: Validation in asp:DataList Pin
deepaks329-Aug-06 23:51
deepaks329-Aug-06 23:51 
Questionloading temporary asp.net files takes ages [modified] Pin
livez29-Aug-06 21:00
livez29-Aug-06 21:00 
AnswerRe: loading temporary asp.net files takes ages Pin
_AK_29-Aug-06 22:55
_AK_29-Aug-06 22:55 
GeneralRe: loading temporary asp.net files takes ages Pin
livez29-Aug-06 23:15
livez29-Aug-06 23:15 
AnswerRe: loading temporary asp.net files takes ages Pin
Jürgen Müller (jmse)30-Aug-06 6:30
Jürgen Müller (jmse)30-Aug-06 6:30 
GeneralRe: loading temporary asp.net files takes ages Pin
livez31-Aug-06 20:00
livez31-Aug-06 20:00 
Questioncustom server control problem Pin
Jürgen Müller (jmse)29-Aug-06 20:53
Jürgen Müller (jmse)29-Aug-06 20:53 
AnswerRe: custom server control problem Pin
John Petersen30-Aug-06 0:12
John Petersen30-Aug-06 0:12 

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.