In my web application I have a master aspx page in that i have a button click on that btn click i am calling a ascx web user control in that I am using a javascript through which I am trying to post the data in the same ascx, as I know we can post data in ascx page.. but I want to post how is that possible?
xhr.open('POST', '../test.ascx?Id=' + <%=Id%>, true); //Id is the property in ascx page
xhr.setRequestHeader('FILENAME', file.name);
xhr.send(file);
and onInit ..
if (!string.IsNullOrEmpty(Request.Headers["FileName"]))
{
string Name = Request.Headers["FileName"].ToString();
Stream Stream1 = Request.InputStream;
Add(Name, Stream1, Id);
}