Web Forms :: Difference Between Using ASHX And ASMX
Feb 27, 2011
What the exact difference and complete between using ASHX and ASMX. What is the difference between them when using them to communicate with your database from Javascript.
View 1 Replies
Similar Messages:
Mar 1, 2010
What is the Difference betweeen axd and ashx handlers.
View 3 Replies
Sep 27, 2013
What's up with difference between generic handler (ashx) and window communication foundation (wcf)? What their purpose?
View 1 Replies
Mar 25, 2011
I need to build a proxy (maybe a bad description) that receives an XML file from a 3rd party, saves it, sends it on to another 3rd party, gets the response back and passes that back to the original 3rd party. Let's call that entire process a "unit".Should I use a webservice? A Generic Handler? Something else?
I might have to do 20 "units" per second, but I know that each "unit" may span 30 seconds to a minute each, so really, I mean that I need to be able to have 1200 of these "units" running at the same time, in all varying stages of the process that I described above.As far as the file saving goes, I eventually want to put this into a database, but I would imagine that writing the file is quicker than actually saving the data into a database, so I'll just have another process that isn't nearly as time critical as this grab the files and insert them into the DB at its own convenience.
The "app" will only consist of 1 page and it will be running under SSL. This will likely be the only thing on this server at any given time to ensure that this little process is not a bottleneck.What in .Net would be a good (fast and scalable) way to go about this? I don't have any effective limit on what I would need as far as hardware goes -- so I can get a screaming machine if it would guarantee no bottlenecks.
View 2 Replies
Feb 8, 2011
I learned from internet that webservices can be invoked only by HTTP whereas WCF can be invoked by HTTP,TCP,et., can i know the difference between them
View 4 Replies
May 4, 2010
I am a .NET programmer trying to catch up on Java web services for an upcoming project in office. Can someone describe briefly what are the differences between .NET web services and Java web services?
View 4 Replies
Jun 27, 2010
the difference between Disco and WSDL? All my search attempts resulted in the information that both of them help client discover and use webservices. Need to know how they are different.
View 4 Replies
Jul 25, 2010
I have 2 questions
Question 1: What is the difference between web service (asmx ; WCF) and System.Net.WebRequest?
Question 2: When should I use web service? When shoud I use System.Net.WebRequest?
View 1 Replies
Aug 15, 2010
What is difference between GET, POST AND SOAP protocols and when we should use it?
View 1 Replies
Jul 18, 2010
Can some explain me the difference between Message Contract and DataContract .i'm new to wcf.. so please give the brief explanation or provide me some code snippets
View 3 Replies
Jul 18, 2010
Difference between Exception and Fault Exception..?
Can i use Fault Exception when i get the Exception.
View 5 Replies
Oct 31, 2010
THere is an external ASHX url that dinamically generates an XML file.
I tried to parse this XML using the doc.Load("http://www.domain.com.br/asp.net/integration.ashx") but it haven't worked.
The same code above work fine if I use a XML file instead of ashx one.
I need to read the XML file generated by the ASHX one in order to integrate the websites.
View 9 Replies
Apr 21, 2012
Because i want concatinate that value with image filename.
View 1 Replies
Jun 17, 2010
I installed markit slide show module for dotnetnuke but the images are not shown after I upload them .when I right-click on the image and choose properties the sourse of image is like this :http://www.behtinweb.com/DesktopModules/Markit.SlideShow/ImageHandler.ashx?mg=/Portals/0/SlideShow_Photos/388/web_design6.jpg&w=550&h=190&Q=0and when I copy the link in the address bar of my browser I have the "Page cannot be found error" .
View 2 Replies
Sep 8, 2010
How To Redirect from httphandler(.ashx) to an (.aspx) page in the same application ?
[URL]
can some expert confirm better approach
View 2 Replies
Apr 30, 2010
For our application we provide users with file downloads that utilize handlers to serve the files. Currently, the way it is served to the user is through window.location. When using this, at times, it causes issues under IE8. When an error occurs, it cannot be caught under the page that called it.
A) Is there a way to serve an ashx file handler to the user where the page that called it can catch any exceptions made from thje handler
B) What is the correct way to serve the handler, eg. window.open, window.location, etc. Would return false at the end of the javascript solve this? Are there any other ways
View 2 Replies
Jul 7, 2010
Just looking for a bit of advice really my colleage suggested using a http handler .ashx file to handle the ajax calls that I will be getting on a web app via a jquery plug in on the page.What i have previously done is write a page _ControlName.aspx which looks at the url an takes or supplies what it needs in json format.What is the better way to handle ajax?
View 2 Replies
Sep 28, 2010
I want to access the static variable in my global.ashx file I am using classname.variable name for accessing the variable but the variable name dose not appear.Can someone tell me how to access static varialbe in *.ashx file.
View 5 Replies
Apr 9, 2010
I recently made an application which displays pictures into a gridview in a very easy and quick way.I have now a problem. I would like to bind the pictures the user sees to the membership schema so that each authenticated user can see his/her own pictures only.I will post some code that can be helpful to somebody who is trying to display pics in a gridview and that,Database:
Trip_Id= int
TripLocation = nvarchar(50)
ImageData = varbinary(Max)
[code]...
View 7 Replies
Apr 6, 2010
I got an ashx file to create an image. I am referencing it via web.config like this:
<add verb="*" path="captcha.ashx" validate="false" type="eVoila.Security.Captcha.CaptchaImageHandler, eVoila" />
My handler looks like that:
[Code]....
Actually the handler never gets called. I already searched the forums and tried some tips and hints. But nothing of that worked. Try to call the url via[URL]
View 4 Replies
May 25, 2010
Can u explain me what ASHX HttpHandler uses for?
View 7 Replies
Nov 3, 2010
There is an ashx file containing "ProcessRequest(HttpContext context)" method which gets triggered automatically. When and how does it get fired?Another question, How can I get the current QueryString when I am inside this file? When I type "context.Request.QueryString" it says it's null or empty although the address have arguments.
View 1 Replies
Jun 23, 2010
I've got a simple ASHX handler that returns an dynamically generated image; the image is generated from a custom created class, and an object belonging to this class is passed to the handler using Session (I'd rather avoid using QueryString).The handler is used as the URL of an image on a ASP form which is very simple: a drop down list, a button and an image. Basically, depending on what the user selects from the list, the appropriate image will be generated once the button is pressed.
At the start the actual image has it's Visible property set to false; I don't want the handler to display anything before the data is all there.Once the button is pressed, the required Session parameter is added containing the necessary object, and the page is refreshed using Server.Transfer. When the Page_load method detects that the Session parameter has been correctly set, it sets the Visible parameter on the image to true.After that the handler fires up and generates the image.
So far so good... However, if the user now picks something different from the list and presses the button, despite the correct object being passed in the Session, the image won't be updated. In fact, the handler won't even fire up (if I put a breakpoint in there). I need to close the browser window and reopen it for it to work.Any ideas what could be the cause of such behaviour?I suspect the answer is very simple, and I just don't know something fundamental about ASP (or handlers)...
View 1 Replies
Jun 2, 2010
In my web application I use an ashx file to write a file to the browser. I've noticed that there's no compression over the .ashx file, but only over my .aspx files.
Is it possible to compress .ashx? And if it is possible, how?
Currently I use global.asax to handle the compression:
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.IO.Compression" %>
<script runat="server">
void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
HttpApplication app = sender as HttpApplication;.......
As you can see only files which inherit from 'Page' are compressed, and my ashx file is not of type Page. So I added a condition and now it works just fine:
if (!(app.Context.CurrentHandler is Page ||
app.Context.CurrentHandler.GetType().Name == "SyncSessionlessHandler" ||
app.Context.CurrentHandler is ViewMht // This is the type I had to add
) ||
app.Request["HTTP_X_MICROSOFTAJAX"] != null)
return;
View 2 Replies
Jun 29, 2010
My web site has a handler (FileDownload.ashx) that deals with all file download requests. I've recently migrated my site to ASP.Net 4.0, and it now uses routing extensively. Everything works fine when dealing with page requests (aspx), but it's not working with my handler - I encounter the following error:
Type '<snip>.Handlers.FileDownload' does not inherit from 'System.Web.UI.Page'.
This makes sense, as routing is only implemented in the page. So, my question is, what steps do I need to take to be able to use routing and my ASHX together? I want to be able to extract RouteData.Values from the url.
public class FileDownload : IHttpHandler
{
}
View 2 Replies