`
Questions tagged [asplinkbutton]
139 questions
62
votes
17 answers
Disable the postback on an
I have an ASP.NET linkbutton control on my form. I would like to use it for javascript on the client side and prevent it from posting back to the server. (I'd like to use the linkbutton control so I can skin it and disable it in some cases, so a…

y0mbo
- 4,582
- 6
- 41
- 45
9
votes
4 answers
LinkButton in ASP.NET MVC
I need to instantiate some ASP LinkButtons onto an ASP.NET MVC view page. I've tried a few things, and I cant get them to come out right. Heres my most recent incarnation of the code:
the aspx file
<% using (Html.BeginForm("TitleDetail",…
user90784
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
2 answers
How to open aspx web pages on a pop up window
I'm trying to write a code to open an .aspx (in shape of a pop up window) after clicking a LinkButton on another .ASPX web page(using VB)
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles…

phalanx
- 497
- 5
- 17
- 33
4
votes
1 answer
How to use linkbutton in repeater using C# with ASP.NET 4.5
In asp.net I have a table in database containing questions,date of submission and answers.On page load only questions appear.now i want to use any link which on clicking show answers and date specified in table data, either in textbox or label and…

user2069465
- 47
- 1
- 2
- 8
4
votes
2 answers
How to add an image to an asp.net link button programatically
I have an ASP.NET link button that I need to add both text and an image to I thought I would be able to just add the image to the button using Controls.Add but no dice.
Here is what I have so far:
foreach (var entity in metadata.Meta.Where(e =>…

rlcrews
- 3,482
- 19
- 66
- 116
3
votes
2 answers
How to pass parameter to Eval() in Link Button Control?
ASP Declaration:
'">
I get Error:
The server tag is not well formed.
what the problem with LinkButton…

Michael
- 13,950
- 57
- 145
- 288
3
votes
1 answer
ASP.NET AJAX postbacks aborting
I have an ASP.NET web page with two postback events and the second one is aborting the first. The second one then doesn't render as expected once it completes.
In Detail
I have an ASP.NET web page that effectively contains two link buttons. It…

DrGriff
- 4,394
- 9
- 43
- 92
2
votes
1 answer
How To Convert AJAX Treeview To Linkbuttons?
I need some advice regarding conversion of an AJAX TreeView control to a LinkButton.
Why? To make the ASP.NET page lighter. Currently, when the Nodes of the TreeView is selected, records related to that node are displayed in a grid. This…

furanzu
- 281
- 3
- 4
- 10
2
votes
2 answers
ASP.NET LinkButton doesn't work in iPad
I developped a website with ASP.NET framework. But after tests we saw that link button doesn't works in iPad how can i solve this problem?
Thanks,

Xenon
- 815
- 11
- 26
2
votes
0 answers
File download code is not giving error but still file does not download
I am downloading uploaded files. Below is my code

SomeHelpNeeded
- 21
- 2
2
votes
3 answers
ASP.NET ImageButton link breaks site
I have an asp.net image button that basically displays an image of a product based on user selections, and sets a link to an external site accordingly. When I click the image button in IE, it crashes the site, but it seems to work fine in Chrome. …

Aeternus
- 45
- 5
2
votes
1 answer
How to open a link in a new tab using ASP Link Button Property?
I have a gridview with the Template and it contains a LinkButton. When I click the button I want to open a link in new tab
c#
jquery
asp.net
asplinkbutton
obout

Md Aslam
- 1,228
- 8
- 27
- 61
2
votes
3 answers
Make If Statments Using Gridview LinkButtons
I have 2 Linkbuttons inside each row of my gridview.
I want to know how I can use If statements to determine which changes should be made.
My current If statements(which I know are wrong) are as follows:
If LinkButton1.Text = "Update" Then
Dim…

narue1992
- 1,143
- 1
- 14
- 40
2
votes
2 answers
Can't get the text value of linkbutton in gridview
This is my markup:-

Soham Banerjee
- 465
- 1
- 8
- 18