Questions tagged [generic-handler]

Generic handlers are the .NET components that implement the System.Web.IHttpHandler interface. Any class that implements the IHttpHandler interface can act as a target for the incoming HTTP requests.

161 questions
0
votes
2 answers

jQuery Mobile button is not firing without refresh

I am using jQuery mobile in my project and when I log on to system, then go to change password page, the change action is not firing (no action). But, when I refresh the page, it is firing. Briefly, the button on the page is not working when it is…
JoshuaJeanThree
  • 1,382
  • 2
  • 22
  • 41
0
votes
1 answer

Session doesn't work in IE, it works in all other browsers

I'm developing a website with asp.net, visual studio 2012, IIS8, .Net Framework 4. I use SESSIONS to store user information after login. when user click sign in button, I send information to .ashx file like this: var url = "SignIn.ashx?username=" +…
Muhamad Jafarnejad
  • 2,521
  • 4
  • 21
  • 34
0
votes
2 answers

How can I let ASP.Net process some XML requests, but still return physical XML files?

Language: C# 5.0 Platform: ASP.Net 4.5 on IIS 7.5 Operating System: Windows Server 2008 R2 Standard 64-bit I am working on an old Web Forms application to add XML Sitemaps which are dynamically generated from our database. I created a generic…
bopapa_1979
  • 8,949
  • 10
  • 51
  • 76
0
votes
0 answers

Display an Image from Oracle 11g ex Database using Generic Handler

I have accomplished inserting an image into the Oracle database. Now I am trying to display it. My handler code is : public void ProcessRequest(HttpContext context) { OracleDataReader dr = null; OracleCommand cmd = null; …
Sakthi
  • 45
  • 6
0
votes
2 answers

FormsAuthentication.SetAuthCookie in Generic Handler ashx

I have an Generic Handler where I would like to auto-login based on some querystrings. But then I set FormsAuthentication.SetAuthCookie(user.Name, false), but HttpContext.Current.User.Identity.IsAuthenticated return false, and I can't redirect…
0
votes
1 answer

Jquery UI Autocomplete - How to pass the variable from Jquery to ashx handler

I am using Jquery UI Multiple Values Autocomplete and I'm making the request to Server: .autocomplete({ source: function(request, response) { $.getJSON("handlers/autocomplete.ashx", { term:…
enb081
  • 3,831
  • 11
  • 43
  • 66
0
votes
1 answer

ASP.net Generic handler

I'm trying pass some parameters to generic handler and get and image on response. I'm using this code for image on my web page : When my…
T F
  • 1
  • 3
0
votes
3 answers

How can I generate a thumbnail from an image in server folder?

I've been trying to figure this out but I'm not getting anywhere. What I'm trying to do is this: I have a aspx page where you can upload images (they are stored in a folder on the server), on one page you can see all the uploaded images and it…
0
votes
1 answer

Restrict direct file access of our attachment folder

We have this website where we also have a visa application module. The visa application module requires the user to create an account. Whenever the user uploads attachments it is saved in a specific folder inside attachments. This specific folder…
0
votes
3 answers

Cant pass query string using Eval to genericHandler

I am passing a query string to my generic Handler for Image Transformation from the database. I am having the following issue on my designer page
Aftab Ali
  • 201
  • 1
  • 6
  • 16
0
votes
1 answer

ASP.NET handle a POST from Sage Pay

I am writing an asp.net web application to talk to sage pay and make payments via their server to server method. At present my site collects user details and then sends a transaction registration HttpRequest to their server. Their server then…
CSharpened
  • 11,674
  • 14
  • 52
  • 86
0
votes
1 answer

Create json using JavaScriptSerializer

I have following code in Generic Handler of Asp.net: var students= Student.GetStudents(); var result = new { Data = students.Select(s => new []{s.subjects}) }; var serializer = new…
Prasad Jadhav
  • 5,090
  • 16
  • 62
  • 80
0
votes
1 answer

Retrieve image of image control as byte array which is set using generichandler(.ashx)?

currently I'm using GenericHandler(.ashx) for displaying an image in image control. See below code: [1] .ASPX [2] .cs(codebehind) Image1.ImageUrl =…
Pritesh
  • 3,208
  • 9
  • 51
  • 70
0
votes
1 answer

how do i pass arguments to generic handler

how do i pass arguments to generic handler (Asp.net) from javascript/jquery? i have a generic Handler for jquery plugin (ajaxfileupload) and i need to pass some arguments from page(jquery/javascript) (Ex. Dynamic Save Path , autogenerated…
RGA
  • 602
  • 2
  • 9
  • 39
0
votes
1 answer

Unit Testing ASP.NET Generic Handlers without using HttpWebRequest

I need to create Unit test cases for my ASP.NET generic Handler. My Handler code is as below: public class MyHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType…
Mohan
  • 1,051
  • 1
  • 9
  • 22
1 2 3
10
11