10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Zubair Munir
1.6k
510
27.7k
anyone explain this linkbutton code working step by step
Apr 4 2018 3:35 PM
protected void LinkButton1_Click(object sender, EventArgs e)
{
var lb = (LinkButton)sender;
var row = (GridViewRow)lb.NamingContainer;
if(row!=null)
{
var lblid = row.FindControl("lblid") as Label;
int nid = Convert.ToInt32(lblid.Text);
Response.Redirect("Register.aspx?id=" +nid);
}
}
Reply
Answers (
2
)
Asp.net Mvc Insert
Global.asax --> Application_BeginRequest