INFO KONTAK UNTUK KURSUS SEO DAN JASA SEO
Alamat Kantor :
JL. KALIJUDAN MADYA 1 NO 48 SURABAYA
Pin BBM : 7C206484
LINE : 085101583088 / ID Line chrismaufuk123
CONTOH ARTIKEL SEO
When you're finished you'll have a table with four records and the hardest part is done. Now we need to show the page content to the visitors and allow the marketing department and administrator of the site to manage the content.
Showing content on page
So far we have part of the CMS done, we have a data structure but we need to show content on the page, and here is how we can do this.
Step 1. Open default.aspx page. This should already be there in your project.
Step 2. Drag ASP Literal control onto your page and name it litContent
Step 3. You need to create OleDbHelper.cs class if you do not have one. Here is the code for this class.
Step 4. Create a connection to your MS Access or SQL Database in your Web.Config file. (Help: )
Step 4. In your code behind of default.aspx (default.aspx.cs OR default.aspx.vb) write code to select columns, PageTitle and PageBody from tblPages we created little while ago.
Now you have one dsContent that has PageTitle and PageBody data. Let's display it now.
Step 5. After we get the dsContent we can do this,
This will show the PageBody content in the literal control we created.
Allowing admin to edit content
So far we have a data structure and the way to display the content on a page. Now let's move on to how the administrator / webmaster can manage the content of home page.
Step 1. Create a page EditContent.aspx in your project. (right click on your project and add a new webForm or page)
Step 2. Extract FckEditor.dll from FCKEditor files you downloaded in Part 1 and place them in the Bin director of your website project
Step 3. Include reference of FckEditor.dll in your project. (See the screen shot 'Add Ref')
Step 4. Include FCKEditor tag within EditContent.aspx page (Help: ) and name it fckContent
Step 5. Go to the codebehind now (EditContent.aspx.cs) write this code in the Page_Load event
If(! Page.IsPostBack) //this will make sure we only load content when page loads for the first time