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
1 answer

How do I resize an image after converting it from a BLOB?

I am trying to resize an image server side inside my generic handler right after it is converted back to an image from the BLOB in a database...This is my handler code: <%@ WebHandler Language="C#" Class="Image" %> using System; using…
Some Developer
  • 229
  • 6
  • 19
-1
votes
1 answer

Limit the data access based on start and end date for full calendar

Beginner for New Calendar I want to retrieve the events from a database for the full Calendar but I want to limit or restrict the data for a specific date range that is appearing on the screen for Retrieving events I need to pass a start date and…
Rahul
  • 41
  • 3
-1
votes
1 answer

How to pass query string values to .ashx and return a value in Javascript

I had .aspx webform wherein I would like to use javascript to show google earth from the generated kml. I am grabbing parameters from other form and redirecting to current webform and pass parameters to a handler file which would generate a kml…
Bhanu Chandra
  • 408
  • 8
  • 26
-1
votes
2 answers

Convert object to generic T

How can I pass the T by parameter but I need to do something like this: Added: I need to create one thread for each SqlServerTable object, and it is a Datatable, but into my method CheckChanges my datatable is converted to my objects inherited from…
Roger Oliveira
  • 1,589
  • 1
  • 27
  • 55
-1
votes
1 answer

How to send a byte array parameter to a generic handler from the codebehind file in vb asp.net

Any server based (not occurring on localHost) IIS loses the session because new windows are started under new processes - "per google search results" In my case I'm using Session("fileData") = fileData this is how i redirect my…
Don Thomas Boyle
  • 3,055
  • 3
  • 32
  • 54
-1
votes
1 answer

File Download from Popup on ASPX Page Via generic Handler

My aspx page has a Download link. On click of it a popup occurs asking user to enter some data based on which the file is modified before getting downloaded. I have forwarded the request made by the pop up to a generic handler which is having code…
-1
votes
1 answer

How does the binarywrite() method works?

I have the following lines of code from .ashx file. public void ProcessRequest (HttpContext context) { string hstr = @"Data Source=SUMAN-PC\SQLEXPRESS;Initial Catalog=school;Integrated Security=True"; SqlConnection con = new…
user35
  • 468
  • 1
  • 9
  • 24
-1
votes
2 answers

Query String Encryption in Javascript and Decryption in Generic Handler

I have a situation wherein I need to encrypt a query string in JS so that it becomes unreadable and decrypt in a Generic Handler. Can you gimme some links for this ? Can you suggest some other method to this? I've seen the method applied to a lot…
krishwader
  • 11,341
  • 1
  • 34
  • 51
-2
votes
1 answer

Upload file on server using html5 page and file input type

I have a html5 page and need to upload a image file on some server path and want to show the uploaded file back on the page. I have used jquery to read the file path and using the ajax tried to call a handler. But we are not able to read the full…
supriya khamesra
  • 133
  • 3
  • 18
-2
votes
1 answer

How to add bloodgroup in char and symbolic form?

I want to add blood group in my table. It is only storing as "A" meanwhile I want to store data as "A+". I am using store procedure. ALTER PROCEDURE [dbo].[spInsertBloodGroup] @ids as int, @des as nvarchar(2000), @abbri as nvarchar(2000), @Datet…
Mansoor
  • 41
  • 11
-5
votes
1 answer

Error returning null from generic type object C#

I am having issue returning null from generic type object in BSTree This Is the Error : A first chance exception of type 'System.NullReferenceException' occurred in System.exe Additional information: Object reference not set to an instance of an…
1 2 3
10
11