An ASP.Net webcontrol that renders as a link but has a button event model made available to the programmer.
Questions tagged [linkbutton]
444 questions
6
votes
2 answers
Get LinkButton text using javascript
How can i get the text of LinkButton in .NET using javascript?
Tried .innerHTMl, .innerText, .value...all not working....

Fire Hand
- 25,366
- 22
- 53
- 76
6
votes
2 answers
How to launching email client on LinkButton click event?
How can I launch an Outlook email window (similar to what mailto: does in a hyperlink) ?
This needs to be done in a LinkButton click event.

user279521
- 4,779
- 21
- 78
- 109
6
votes
4 answers
Linkbutton inside Repeater for paging ASP.Net
I'm doing a webpage with a search that brings a lot of information from MSSQL. What I did is a stored procedure that return only the page to be seen on the website.
Right now I'm working on the paging as I need to show something similar than google.…

Gerardo Abdo
- 1,150
- 3
- 10
- 16
5
votes
4 answers
ASP.NET - Adding an UpdatePanel trigger to a LinkButton inside a gridview
I was trying to update the content of a modal dialog, and this code works for me:

aperez
- 451
- 2
- 8
- 20
5
votes
6 answers
Trigger asp.net link button click on enter key press
I have 2 asp text boxes that I have attached jQuery to trigger linkbutton server side click if enter key is pressed on any of the 2 text boxes. But this does not seem to work, Please help me explain where and what I am doing wrong. I need a solution…

Ashar Syed
- 1,236
- 6
- 16
- 28
5
votes
1 answer
ASP:LinkButton and Eval
I'm using an ASP:LinkButton inside of an ItemTemplate inside of a TemplateField in a GridView. For the command argument for the link button I want to pass the ID of the row from the datasource that the gridview is bound to, so I'm doing something…

sgibbons
- 3,620
- 11
- 36
- 31
5
votes
6 answers
jQuery call __doPostBack on LinkButton
I have a LinkButton that I need to perform a click on to cause a postback. The actual link target is:
javascript:__doPostBack('ctl00$c1$btnRefreshGrid','');
Clicking the link does perform the postback, as verified by a breakpoint in the code-behind.…

Mark Richman
- 28,948
- 25
- 99
- 159
5
votes
1 answer
asp.net linkbutton in updatepanel doesn't fire
I have a asp.net web application. In my .aspx page I have a update panel in which I have 3 asp:LinkButton that should make a call to a c# code behind. The problem is that the onclick doesn't work.
Here is how the code looks:
…

Apostrofix
- 2,140
- 8
- 44
- 71
5
votes
1 answer
Passing an id value to LinkButton server side event in gridview control
I am trying to pass a CustomerID value to codebehind, from my LinkButton in my gridview control. I tried the solution suggested here but it does not work.
My gridview code is:
…

DNR
- 3,706
- 14
- 56
- 91
4
votes
5 answers
Postback fails on ASP.NET page when using Google Analytics
I am using ASP.NET to create a small web app. One of my pages includes some LinkButton controls, which used to work fine until I added a reference to Google Analytics code to it. Now, when I click on a link button, I get the error…

CesarGon
- 15,099
- 6
- 57
- 85
4
votes
1 answer
How to use a LinkButton inside gridview to delete selected username in the code-behind file?
I have a "UserDetail" table in my "JobPost.mdf".
I have a "Gridview1" showing the column from "UserDetail" table,which has a primary key "UserName".
This "UserName" is originally saved using Membership class function.
Now I add a "Delete" linkbutton…

jenifer
- 121
- 1
- 2
- 7
4
votes
1 answer
How do I prevent postbacks from opening in new window after a LinkButton with target=_blank is clicked?
Summary: I have a GridView with a TemplateField containing only an ASP.NET LinkButton. My LinkButton looks like this:
javascript
c#
asp.net
gridview
linkbutton

lunchroom
- 41
- 4
4
votes
1 answer
Wiring up JavaScript handlers after a Partial Postback in ASP.NET
I am trying to use LinkButtons with the DefaultButton property of the ASP.NET Panel in an UpdatePanel. I have read and used the various other answers that are around describing the wiring up of the click event so that a full postback is not done…

Richard
- 29,854
- 11
- 77
- 120
4
votes
4 answers
asp.net LinkButton HyperLink problem
The following two controls on my page:
Open
Open
I set them during page load like this:
OpenLB.PostBackUrl =…

Enriquev
- 929
- 2
- 9
- 27
4
votes
3 answers
Link Button in asp.net click event not firing

Abdur Rahim
- 3,975
- 14
- 44
- 83