using System;
using System.Web;
using System.Web.SessionState;
public class Handler : IHttpHandler, IRequiresSessionState
{
public void ProcessRequest (HttpContext context)
{
context.Session.Add("SessionName", "SessionValue");
}
public bool IsReusable {
get { return false; }
}
}
can i see an asp control from the ashx page? i mean like if i have a textbox with the id="example" can i from the ashx file use example.text="examplevalue" ??
can i see an asp control from the ashx page? i mean like if i have a textbox with the id="example" can i from the ashx file use example.text="examplevalue" ??
Short answer: No.
Your handler is handling a new request from the browser, and is not called in the context of a request for the page.
Regards
Dave
Provide an answer, and you enable a developer to code today. Show them how to find the answer using Google, and they can code forever.
Member
59 Points
145 Posts
httpHandler page
Mar 12, 2012 06:14 AM|seekpunk|LINK
how to get a value set in an ashx file and read it from an aspx.cs file
Contributor
4392 Points
933 Posts
Re: httpHandler page
Mar 12, 2012 06:30 AM|Vipindas|LINK
Member
59 Points
145 Posts
Re: httpHandler page
Mar 12, 2012 07:51 AM|seekpunk|LINK
can i see an asp control from the ashx page? i mean like if i have a textbox with the id="example" can i from the ashx file use example.text="examplevalue" ??
Contributor
5014 Points
2398 Posts
Re: httpHandler page
Mar 15, 2012 05:13 AM|DMW|LINK
Short answer: No.
Your handler is handling a new request from the browser, and is not called in the context of a request for the page.
Dave
Provide an answer, and you enable a developer to code today. Show them how to find the answer using Google, and they can code forever.