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.

Catch Exc As Exception<br />

If BubleExc = False Then<br />

If returnLink = True Then<br />

Return "" & Exc.Message & " \<br />

"<br />

Else<br />

Return "" & Exc.Message & " \<br />

"<br />

End If<br />

Else<br />

Throw Exc<br />

End If<br />

End Try<br />

End Function<br />

Example 10.31. Calling the Query Method in ASP.NET C# codebehind<br />

//*******************************************************<br />

//-- Query does a query using the special xml string<br />

// provided as input and returns xml/html<br />

//********************************************************<br />

//Parameters:<br />

//id:- GUID returned by Logon<br />

//BusObject:- business object used to<br />

// do query<br />

//XmlIn:- The xml to be used in query - can have a<br />

// xsl directive<br />

//XmlTransform:- Parameter will specify if<br />

//' server/client side transform is required<br />

//'XlIn:- The XLS used to transform the<br />

//' incomming xml preferably as a server<br />

//' path ie. "c:\......mac.xsl"<br />

//ContentType:- ByRef parameter<br />

// representing the content type to be returned by IIS<br />

//*******************************************************<br />

//Returns:_ Whatever the transform does with<br />

// the xml, used mostly to generate HTML.<br />

//*******************************************************<br />

string Query(string Uid, string BusObject, string XmlIn, \<br />

10–44

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

Saved successfully!

Ooh no, something went wrong!