Ian (Fluxtah) Warwick's blog RSS 2.0
# Sunday, October 05, 2008

After a busy weekend I finally got a wizard working to help with the configuration of a SnippetCallback. In the latest build of Ajax Snippets there is now an option from the action list of a SnippetCallback on the designer named 'Configure...'.

After clicking this option a wizard will popup where an asmx file can be selected and a web method from this service.

One problem with this is that the web application must be compiled before the wizard can get access to the web service method list, the wizard basically pulls out web service type defined by the class attribute in the asmx file and tries to use Type.GetType() on it, if the web application is not compiled with asmx file then the methods do not show up in the wizards list, but I did stick in a red warning label under the drop-down-list if this happens.

The next step allows the mapping of controls to the selected web methods parameters.

The main benefit of the wizard is it avoids any mapping mistakes and typos, it could also do with a page to configure other options of a SnippetCallback but at least these two steps cover the main options.

 

Sunday, October 05, 2008 4:41:00 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0] -
General
Archive
<October 2008>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
Ian Warwick
Sign In
Statistics
Total Posts: 33
This Year: 0
This Month: 0
This Week: 0
Comments: 4
Themes
Pick a theme:
All Content © 2012, Ian Warwick
DasBlog theme 'Business' created by Christoph De Baene (delarou)