20.01.2015 Views

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 10.39. ASP.NET .aspx Form Sample<br />

<br />

<br />

<br />

<br />

<br />

Sales Order:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

You will see that the code is fairly similar between the Price Query and the Sales Order<br />

Query. The function builds the required XML input and send it to the calling function<br />

along with the name of the business object to use.<br />

Now take some time to examine the PriceQuery.cs.aspx and<br />

PriceQuery.vb.aspx files along with the methods.aspx.cs and<br />

methods.aspx.vb files that contain the corresponding codebehind code.<br />

10.5.4. Putting it all together<br />

The methods.aspx.cs and methods.aspx.vb files contain the functions that<br />

could form the core of an e.<strong>net</strong> solutions ASP.NET application. You just need to create the<br />

subroutines that create the specific business object XmlIn and XmlParameters and<br />

stylesheet information, like those contained in the Price Query and Sales Order Query<br />

samples presented above. Study them all again and trace the flow of data from the XmlIn<br />

string, through the calling functions to the method functions and back.<br />

Now that you have seen and examined the code samples provided in this book, you can<br />

10–54

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!