Click here to Skip to main content
15,892,072 members

Comments by Member 12277111 (Top 6 by date)

Member 12277111 25-Jan-16 5:21am View    
Sinisa... Well the URL which gets posted from SITE A already has all the values in there.
Site B is the place where I would like to capture it and use it in Canvassave.aspx.cs

FYI - There is no database as the whole process is only [ Binary - PDF - PNG ]
Member 12277111 22-Jan-16 12:56pm View    
Sorry for that.. and thats my mistake.
practically I'm not navigating to that file, but they do indirectly get loaded to the page.....

I wish I could add images in here to show you how exactly they are linked up... Unfortunately I will try my best to explain Sitecore..

public void ProcessRequest(HttpContext context)
{

//Response.Write(Hiddenfilename.Value);
try
{

if (context.Request.QueryString["Download"] != null)
{
context.Response.AddHeader("Content-disposition", "attachment; filename=" + context.Request.QueryString["Download"].Split('/')[1].ToString());
context.Response.ContentType = "application/octet-stream";
context.Response.TransmitFile(Server.MapPath(context.Request.QueryString["Download"].ToString()));
context.Response.End();
}

else
{

//Capture File From Post
HttpPostedFile file = context.Request.Files["fileToUpload"];
// HttpPostedFile file = context.Request.Files["Hiddenfilename"];


if (context.Request.Form["Opp"] == "uploading")
{

//Or just save it locally
file.SaveAs(Server.MapPath("Convert/input.pdf"));

file.SaveAs(Server.MapPath("Convert/output.pdf"));

Startup();

context.Response.Write(ImageConverter());
}
else if (context.Request.Form["Opp"] == "appending")
{
string appPages = context.Request.Form["pages"];
string appRatios = context.Request.Form["ratios"];
string appHeights = context.Request.Form["heights"];

//Or just save it locally
file.SaveAs(Server.MapPath("Convert/append.pdf"));

context.Response.Write(AppendConverter(appPages, appRatios, appHeights));
}
else if (context.Request.Form["Opp"] == "addAttachment")
{

//Or just save it locally
file.SaveAs(Server.MapPath("Attachments/" + file.FileName));
AddAttachments(Server.MapPath("Attachments/" + file.FileName), file.FileName);

context.Response.Write(file.FileName);
}
else
{

//Or just save it locally
file.SaveAs(Server.MapPath("Images/" + file.FileName));

context.Response.Write(file.FileName);
}
}
}
catch (IndexOutOfRangeException exception)
{

if (exception.Message.Contains("evaluation"))
{
context.Response.Write(" Only 4 elements of any collection are allowed. Please get a free temporary license to test the HTML5 PDF Editor without any limitations from http://www.aspose.com/corporate/purchase/temporary-license.aspx");
}
else
{
context.Response.Write("An exception occurred during processing of your document. Please contact Aspose Support.");
}

}
catch (Exception exp)
{

context.Response.Write("An exception occurred during processing of your document. Please contact Aspose Support.");
}
}


public static string AddPage_Click(string lastpage)
{
try
{
Document doc = new Document(HttpContext.Current.Serv
Member 12277111 21-Jan-16 15:38pm View    
I'm trying this solution but when its coming here
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
Response.Write("Ths is the response from two.aspx: " + Request.Form["MyData"]);
Response.End();
}

to page one Request.Form["mydata"] the value out here becomes NULL....
Member 12277111 21-Jan-16 7:54am View    
I just want to send data to other pages in the background..
The reason behind sending the data in the background is to capture some of the values... e.g: Name,type and UID

Based on these values we will be able to create -

UNIQUE FOLDER for user - UID
NAME - Which division
Type - Which Type of Folder (eg: Read / Write )
Member 12277111 21-Jan-16 7:28am View    
SanthaKumar

In a very short way of saying - Passing values to multiple pages on single click

e.g : page default.aspx receives values (UID, DOCTYPE, NAME) from a third party site thru (URL - which i have pasted above)

NOW -- these values (UID, DOCTYPE, NAME) must be passed to other part of website..... (e.g: one.aspx.cs, two.aspx.cs, three.aspx.cs, four.aspx)

The reason behind passing UID,DOCTYPE,NAME to other pages is that - I would like to create dynamic folders based on UID,DOCTYPE,NAME (e.g: UID = UNIQUE ID of the CLIENT, DOCTYPE = excel, Word, PDF, SVG,PNG Name = FILE NAME)

Do you need any other details