|
I found out about the "isPostBack" property. Works beautifully now. ---------------------------------------------------------------------- From: "Bob O." <otis_the_cat@xxxxxxxxxxx> Reply-To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx> To: midrange-l@xxxxxxxxxxxx Subject: Re: Call iSeries program from C# program Date: Tue, 27 Feb 2007 10:32:00 -0600 > Thanks , its working great except for one thing.... > I'm testing this out in a web application as opposed to a Windows GUI. > > I have the iSeries/As400/System i program being called in the Page_Load > event of the initial web page that opens (default.aspx). It seems that > the Page_Load event fires no matter what happens (ie. clicking a button). > I even added a class level boolean variable and change it to false after > the programs run. If I click on a button (that has no code for it yet) > the Page_Load event fires, and then the Click event for the button. When > the page load runs, the boolean variable is automatically reset to true > and the AS400 programs are called again. > > Any way that you know of to get the programs to call only on the first > time the page is opened? > > Thanks. > > ---------------------------------------------------------------------- > > From: richard@xxxxxxxxxxx > Reply-To: Midrange Systems Technical Discussion > <midrange-l@xxxxxxxxxxxx> > To: midrange-l@xxxxxxxxxxxx > Subject: Re: Call iSeries program from C# program > Date: Mon, 26 Feb 2007 18:02:59 -0600 > >Probably true if the iSeries program requires parameters :-) > > > >Even if parms are not used I think you need to define them and pass > >something when calling ExecuteNonQuery, even if it's blanks you're > >passing. > > > >Glad it's working. > > > >Regards, > >Richard Schoen > >RJS Software Systems Inc. > >"Providing Your....iNFORMATION NOW!" > >Email: richard@xxxxxxxxxxxxxxx > >Web Site: http://www.rjssoftware.com > >Tel: (952) 898-3038 > >Fax: (952) 898-1781 > >Toll Free: (888) RJSSOFT > >---------------------------------------- > >message: 5 > >date: Mon, 26 Feb 2007 12:34:08 -0600 > >from: "Bob O." <otis_the_cat@xxxxxxxxxxx> > >subject: Re: Call iSeries program from C# program > > > > It didn't like not having any parameters built for the > > "ExecuteNonQuery()". I put in a null value and WhaLa! > >-- > >This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing > list > >To post a message email: MIDRANGE-L@xxxxxxxxxxxx > >To subscribe, unsubscribe, or change list options, > >visit: http://lists.midrange.com/mailman/listinfo/midrange-l > >or email: MIDRANGE-L-request@xxxxxxxxxxxx > >Before posting, please take a moment to review the archives > >at http://archive.midrange.com/midrange-l. > > > > ---------------------------------------------------------------------- > > Win a Zune**make MSN(R) your homepage for your chance to win! >-- >This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list >To post a message email: MIDRANGE-L@xxxxxxxxxxxx >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/mailman/listinfo/midrange-l >or email: MIDRANGE-L-request@xxxxxxxxxxxx >Before posting, please take a moment to review the archives >at http://archive.midrange.com/midrange-l. > ---------------------------------------------------------------------- Win a Zune**make MSN(R) your homepage for your chance to win!
As an Amazon Associate we earn from qualifying purchases.
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.