Mary

In VB.NET use

Try
cmd.executeNonQuery()
Catch ex as exception
' your own code to do what you like with the exception e.g.
Response.Write(ex.message.ToString())
End Try

You need to write your own code (or create your own inherited button
control) to underline the 'A' in Add for the button.text property. The
Button.AccessKey property does not automatically do this for you. Access
keys do work.

Regards

Maurice O'Prey



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Mary Koetting
Sent: 10 April 2008 21:23
To: web400@xxxxxxxxxxxx
Subject: [WEB400] ASP.net and iseries without DB2 Connect

I'm working in Visual Studio 2005 and writing a visual basic asp.net
interface to call stored procedures created in iseries navigator. I'd
like to be able to look at the return code from the stored procedure and
catch any errors that might occur.

How do I know what to catch? I execute the command using

cmd.ExecuteNonQuery()

Does it automatically send back a response code?

I'm also trying to get a button to have an 'access key'...I'm using an
'A' for the access key for an 'Add' button but I don't see any
indication on the button that it has a hot key and when testing it, it
doesn't work ...I tried the '&' but I guess that doesn't work in ASP...


Mary Koetting
Senior Programmer Analyst
Missouri Consolidated Health Care
573-526-2856



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.