Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Well I need ideas or some advices to start a new project, I have to find a way of how "edit/overwrite" the content of a page in ASP.Net C#

Suppose I have n controls in the page and 1 link button(or button) that turns in "edit mode" the page, in other words, when I click that button (some controls and other things in the page) will have a button(or link button) near it that says "Edit"...when I click that button a pop out show up with textbox to edit/change the text properties of that set of controls, then "do the changes" or cancel...

And that's my idea, I have to do that to all the controls or things I want to be "edited" in the page, please help me with ideas or ways to do it...thanks!
Posted
Updated 9-Feb-15 4:59am
v2
Comments
Kuthuparakkal 9-Feb-15 11:07am    
Good idea throwing readers into confusion. Explain more.
Afzaal Ahmad Zeeshan 9-Feb-15 11:16am    
That is more like client-side scripting not server-side ASP.NET scripting, you can use jQuery (or JavaScript itself) to perform these actions upon click events.
ZurdoDev 9-Feb-15 11:16am    
That sounds like a project that will be more work that it's worth.

To start with, look at the "Crazy Hack 1" at the "Crazy Cool Javascript Hacks" page: https://bhuvans.wordpress.com/2007/01/22/crazy-cool-javascript-hacks[^].

Simple, isn't it? Only you can "turn it on" on your page yourself in first place.

Now, it says: "of course you cannot save it back". But of course you can make your own page to do so. For example, you can serialize all the new content, send it back to the server side using Ajax and do whatever you want with it on the server side — this is ASP.NET.

—SA
 
Share this answer
 
Comments
Maciej Los 9-Feb-15 12:18pm    
+5
Sergey Alexandrovich Kryukov 9-Feb-15 12:32pm    
Thank you, Maciej.
Haven't hear from you for a long time. How have you been?
—SA
Maciej Los 9-Feb-15 15:26pm    
Thank you, Sergey. I'm fine. I've been on winter holidays (skiing in Italy on the highest peak of Dolomites mountains: "Marmolada" also known as "The Queen of Dolomites"). See: http://www.dolomitisuperski.com/en/marmolada/ski-area/marmolada
Sergey Alexandrovich Kryukov 9-Feb-15 15:35pm    
Wow!
I like skiing very much...
—SA
Maciej Los 9-Feb-15 15:51pm    
Me too. I have got a lot of video materials. I started skiing in 2001, then i'd got few years of pause. Starting from 2008 i'm skiing with my Friends year by year. Camcorder (in a hand or on the helmet) is my best Friend ;)
Hi,

lets assume you are having 10 textboxes in your page. You want to make the edit enabled in your control page. For that you can make a template (May be a separate div containing the controls to edit the data) which will contain the template of the same page with some extra buttons there in the page which will update the control's data to the database or file system. Whatever the controls you want to edit you can make it editable in the template and on submit you can update the data.

You can use some CSS to make it look like a edit pop up like interface. Hope this is a very simple solution to implement.

Thanks
Sisir Patro
 
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