Harsha Eadara

Harsha Eadara

  • NA
  • 45
  • 8.4k

Connecting link button to database to fetch data

Jul 11 2017 2:27 AM
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. 
 This is my webform1.aspx.cs 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.
 
Admin .
Can anyone help me with this. 
 

Answers (1)