Hi All,
I have an asp:Literal in my aspx page.
I have an asp:Literal in my aspx page.
In c# code, I have added a button to above "testbtn" and wrote a click event in javascript(this event shows a form).
testbtn.Text = String.Concat
(
"
"SHOW", "\" ",
"class=\"input\" style=\"cursor:pointer;\" onclick=\"javascriptFunctionName" />"
);
Now I want to add one more functionality to this click event. That means, when user clicks this button I have to save an empty txt file to relative path in my local system.
How can I do it?
Advance thanks,
Darma
Advance thanks,
Darma
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Pradeep ShetRank #595 · 4K reputationPosted Mar 3, 2015, 3:30 AM EST
You cant save anything on your local system, as web application run within a sandbox which is your browser. You can allow or show popup for download or save it on server (where your web application is hosted) but you cannot save it on your local system.
Hope you get it.
darma tejaRank #3,199 · 449 reputationPosted Mar 3, 2015, 3:54 AM EST
Actually I am talking about the system which is hosted my website.
It means Local system = my web application hosting system.
Darma