.NET doesn't save the spread sheet.
Hi,
I have tried saving spreadsheet after editing it. I use the remote api. The port 80 opened for the web site. There is no Firewall, and the saveurl.aspx is saved in the public directory and can be access through the url publicly without any sign in credentials.
I already posted a topic but that was not yet published by the zoho community though it has been a long time. Don't know the reason.
Here are the codes:
1. zoho.htm
The contents inside this file is:
accept-charset="UTF-8">
<input type="hidden" name="content" value="http://www.hireanactuary.net/actuary/assumption.xls"> <br>
<input type="hidden" name="apikey" value="KEY">
<input type="hidden" name="output" value="editor">
<input type="hidden" name="mode" value="normaledit">
<input type="hidden" name="filename" value="assumption.xls">
<input type="hidden" name="skey" value="SECRET_KEY">
<input type="hidden" name="lang" value="en">
<input type="hidden" name="id" value="12345678">
<input type="hidden" name="format" value="xls">
<input type="hidden" name="saveurl" value="http://www.hireanactuary.net/actuary/saveURL.aspx">
<input type="submit" name="submit" value="Open/Edit">
</form>
2. The saveURL.aspx/saveURL.aspx.cs
It contains the following
For ASPX page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="saveURL.aspx.cs" Inherits="saveURL" %>
For ASPX.CS page:
public partial class saveURL : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
HttpPostedFile m_objFile;
string filename;
m_objFile = Request.Files["content"];
filename =Request.QueryString["filename"];
Request.Files["content"].SaveAs("C:\\inetpub\\wwwroot\\actuary\\" + filename);
}
}
I am
unable to save my data back to my server, I have already tried this approach as it is mentioned in the
Saving Document.
Thanks
Regards
Prithiraj Sengupta