I had created a LinkButton in Asp.Net.I want to Fetch Data from DB using LinkButton.So if i click on LinkButton the data from DataBase should be displayed.I'm posting my webform1.aspx.cs and webform1.aspx page.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Link1
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
}
}
}
This is my webform1.aspx:
i had named my LinkButton as Admin.
Can anyone help me with this.