Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:642680
More Search Options
RSS Available
Matching Posts
Re: Web Service within an Assembly
Well, in this scenario, you never actually need a .ASMX file. That is what your custom "IHttpHandlerFactory" implementation is for. You designate some "virtual" URL for yourself to look for (or pattern) and use your IHttpHandlerFactory implementation (similar to the ScriptHandlerFactory in the ASP.NET Ajax source code) to instantiate your WebService-derived class (which is also an implementation of IHttpHandler) to handle the request to that URL. No .ASMX file needed. The beauty is you get to define
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
GQAdonis
on 4/15/2007
Re: Web Service within an Assembly
It seems that what the developers of ASP.NET Ajax did inside the ScriptManager code is "pre-generate" a proxy with the necessary call interface for the "hidden" web service and embed that into their embedded resource script. The other solution would be to have the "URL" that, inside your handler factory, instantiates your WebService instance as part of IHttpHandlerFactory processing, added as a script reference dynamically to the ScriptManager during the OnInit() or OnPreRender() phases. This would
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
GQAdonis
on 4/15/2007
Re: Want to use AJAX Controls on Web-form...reqt
You can download ASP.NET Ajax here . This will install everything you need for basic Ajax use. You can also consider downloading the Ajax Control Toolkit from the same location.
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
GQAdonis
on 4/1/2007
Re: Web Service within an Assembly
Actually, one of the best examples is inside the source code for ASP.NET AJAX itself, which can be downloaded here . The class to look for would be System.Web.Script.Services.ScriptHandlerFactory. You can also browse to locate where the ProfileService and AuthenticationService web services are handled (allowing access to authentication and ASP.NET profile information from Javascript on the client side). You can also reflect on the assembly using Lutz Roeder's .NET Reflector tool.
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
GQAdonis
on 3/6/2007
Re: Web Service within an Assembly
You can use a custom HttpHandler factory, which is the method that Atlas uses to intercept web service calls and handle Javascript proxies. This, however, will require that you configure every web application (or server) to use your custom handler factory in web.config. The handler factory would look at the request to determine whether to create one of your assembly-embedded services or forward the call back to the original handler factory.
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
GQAdonis
on 3/5/2007
Re: GenerateScriptType attribute causing duplicate Javascript object definitions in web service proxy (RC1)
Thanks for your reply! Do you have any estimate for the release of RTM?
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
GQAdonis
on 12/30/2006
Re: GenerateScriptType attribute causing duplicate Javascript object definitions in web service proxy (RC1)
Since I have seen 60+ people view this post, but no answers, would it help if I provided example code for the problem I am experiencing above?
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
GQAdonis
on 12/24/2006
GenerateScriptType attribute causing duplicate Javascript object definitions in web service proxy (RC1)
In RC1, a nice feature was added that throws an exception when a class has been defined twice (e.g., two class types named "Sys.UI.Control" or something). However, I have four web services that are referenced from the same page. Each web service has 3 classes in common (these classes objectify generic query criteria that is sent to the web service call). Other classes contained by those class (e.g., a collection of Criteria and other object parameters) require that I use the GenerateScriptType attribute
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
GQAdonis
on 12/16/2006
Filed under: web service, ajax webservice, atlas javascript webservices complextypes, atlas webservice, asmx
AjaxControlToolkit.ScriptControl not registering scripts in RC1
I am sure someone has already noticed this, but no controls inheriting from AjaxControlToolkit.ScriptControl actually register their scripts using RC1. This TabContainer is an example. I had used the ScriptControl base class in some of my own controls, because it conveniently handled the "Application.notifyScriptLoaded()" requirement as well as very neatly handling the registration of control descriptors, properties and script references through attributes.
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
GQAdonis
on 12/16/2006
Filed under: Tabs, AjaxControlToolkit, AJAX Control Toolkit
Some Useful Information on Including Multiple Dependent Atlas Scripts
Many have read my "gripes" and "confusion" regarding the queued script loading features, and problems recognizing Javascript types when multiple dependent scripts with a complex Javascript "object inheritance" structure. I have some new information regarding all this that might help others. Luis Abreu gave me the initial answer to the problem (many thanks to him for taking the time to look at it), although after I attempted to use the solution in my larger project as opposed to the sample I had provided
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
GQAdonis
on 12/8/2006
Filed under: atlast control toolkit, Dynamic Script Loading, javascript, workaround, jscript, Scriptmanager, AJAX .NET Client Side Methods
Page 1 of 11 (110 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Channel 10:
ASUS Brings GUI to BIOS
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online