How to Get User Posts on Social Networking Website

Get Posts from user on Social networking website

  1. Every Visitor on social netoworking website should be able to see the posts that are posted by him 
  2. The recent posts should be available at the top and the old posts should be available at last 
  3. To Get the latest updates and posts we have created a user control which we will drag and drop on main .aspx page and on that page user will be able to see the latest updates 

Code for Main.aspx 

<%@ Page Title="" Language="C#" MasterPageFile="~/ProfileMaster.master" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main"  EnableEventValidation="false"%>
<%@ Register src="Controls/LatestUpdates.ascx" tagname="LatestUpdates" tagprefix="uc1" %>

     

Here we have dragged and dropped latestupdates.ascx user control on main.aspx page 

Code for Main.aspx.cs 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Main : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}

1 comments:

  1. Hi Sir plz send attendance and shopping Cart source code. thank u sir
    My mail id subbu564s@gmail.com

    ReplyDelete