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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
darma tejaPosted Mar 3, 2015, 8:54 AM
Actually I am talking about the system which is hosted my website.
It means Local system = my web application hosting system.
Darma
Pradeep ShetPosted Mar 3, 2015, 8:30 AM
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.