15,892,072 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
Member 12277111
21-Jan-16 7:23am
View
That isn't the solution
The reason is - in your solution you are posting the values only to "two.aspx" WHICH IS NOT WHAT I WANT
I would like to get the values from DEFAULT.ASPX to sub pages called one.aspx.cs and two.aspx.cs
NOTE: I'm able to post to DEFAULT.aspx and its already working... BUT NOT ABLE TO PASS TO SUB PAGES
Show More