Posts

Showing posts from 2015

How to Save Asp.net HTML Editor Content Using AJAX with Time Interval???

Image
When you are working with the ajax editor control sometimes you need to store the content in database or xml. Most of the time we need the content as same when we are navigating through the website. To achieve this i flowed these steps: Create the masterpage and add the editor to that page.  Using AJAX to save the content to the session variable with the time interval Call the session variable and assign the content to editor from master pages using onInit() method. first create the Ajax control toolkit editor in the masterpage using the below code    <cc1:editor height="530px" id="Editor1" oncontentchanged="editor_content_load" runat="server"> </cc1:editor> Add service class(.asmx) for whatever thing you want to do in the server side. In my case i created falconsServic...

How to call content page method from master page in ASP.NET

Image
hi,last week i had a problem with calling the content page methods from the masterpage.After spend lot of time with google finally i fond a solution for that.The solution is... In my case i have an ajax control toolkit html editor in my master page.When content loaded to the editor i have a method to trigger in master page.through that method i need to populate my content page.for populating content page i have a method in content page.but the problem is when the content is loaded i need to trigger the content page method.i dont know any other ways are available or not but my solution is first trigger the master page method and then trigger the content page method through that. my master page public partial class Falcons : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { } //this is the method that will called from editor when content loaded protected void editor_content_load(object sender, EventArgs e...