Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to view and edit a document which is available in a particular folder.The operation which i want to perform is like google drive online document viewer and editor option . so please provide me a code in c# as soon as possible
Posted
Updated 10-Mar-14 20:54pm
v2
Comments
bbirajdar 11-Mar-14 1:39am    
I want 600 dollars to buy iPhone 5S .Please give me your salary for this month and I will give you the code as soon as possible .....
GeethaSG 11-Mar-14 2:58am    
Actually i am a student how can i give you 600 dollars so please give me the code.
bbirajdar 11-Mar-14 3:09am    
Hmm.... Students are supposed to study and write their own code and get the guidance from the experienced people. The academic exercises and projects are framed in your curriculum for your step by step learning. If you get code from somebody and complete the assignment, then how are you going to perform in the real life professional projects? Now you have lot of time to learn. You should learn it before it is too late. Even if you get the ready made code and pass the project exam , you will not be able to get work after your education. And read the codeproject logo - It says "For those who code"..... Nobody here shares the source code. Because we developers make a living by writing code. If developers give the code for free, then who will pay for their bills ?
GeethaSG 11-Mar-14 3:15am    
Atleast you can guide me to do that know..
bbirajdar 11-Mar-14 3:57am    
Start here from this video tutorials
http://googleappsdeveloper.blogspot.com/2013/03/build-collaborative-apps-with-google.html

Check the documentation and C# code samples here
https://developers.google.com/drive/v2/reference/files/insert

1 solution

for begineers
step1) just design a web page with simple div with runat server and design it just like a textbox and add a asp button .

step2) now open the click event of the button. and
get the data. and save it in sql database.


its just to store first complete this and let me know if u could achive this

source:

ASP.NET
<body>

<form runat="server">

<pre lang="xml"><div id="andy" runat="server" contenteditable style=" background-color:Silver; color:Red; height:300px; width:400px; ">
   this is ur doc viewer cum edittor

    </div>
    <asp:Button ID="btnadd" runat="server"  />

</form>

</body>



</pre>


<pre lang="c#">



</pre>

now what ull have to do is get the data from ui

C#
protected void btnadd_Click(object sender, EventArgs e)
        {
            string a = andy.InnerHtml;
//store the a value into sql db
        }

void loaddatainto edditor()
{

//now u have the data on hand from sql db

andy.InnerHtml = // a data from db


}



is this enough this is one of the best idea to save a document and view them later or edit using asp
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900