`
Questions tagged [asplinkbutton]
139 questions
0
votes
0 answers
LinkButton within UpdatePanel works fine until I try to use html markup as the text
I have a composite control where I'm adding a LinkButton dynamically. This control is inside of an UpdatePanel.
If I set the text of the LinkButton to something simple, just text (i.e. click here to edit) then it does as intended and I'm able to…

user1447679
- 3,076
- 7
- 32
- 69
0
votes
1 answer
Using LinkButton inside GridView and UpdatePanel getting 0x800a139e error
I use a Gridview inside an UpdatePanel. In that Gridview I use a LinkButton (I have the same problem with an imageButton) for the CommandArgument and try to download a pdf file when the user clicks.
It was tricky to get the Button running in that…

Kᴀτᴢ
- 2,146
- 6
- 29
- 57
0
votes
0 answers
C# - Linkbutton with OnClick + href?
I do have a linkbutton and i want it to call an event on the .cs file (OnClick Event that do something).
BUT I also want to make this button moves the scroll to certain div after.
I can do:

Facundo Díaz
- 21
- 3
0
votes
1 answer
Cannot set tabindex on ASP:LinkButton
I have an ASP Web Forms project with a LinkButton control. I try to set the tabindex in the control's property grid and it adds it to the code, however when I compile and run the page the tabindex is gone. The reason I need a tabindex (tabindex="0")…

Lee
- 403
- 1
- 4
- 16
0
votes
1 answer
Setting Click Event for LinkButton
I have a LinkButton within a Datagrid. I am having trouble setting a Click event for it. I will add the OnClick="Remove_Click" attribute in the HTML. But when I go to write the actual event, VB isn't finding the LinkButton. Therefore nothing…

Aarron H
- 185
- 1
- 15
0
votes
1 answer
How to change LinkButton InnerHTML from C# asp.net?
I'm using asp.net WebForms and I'm trying to to change a LinkButton InnerHTML dynamically from C# using this code.
protected void Page_Load(object sender, EventArgs e)
{
string connStr =…

George
- 69
- 1
- 8
0
votes
1 answer
What is the correct way to apply sr-only text to asp:LinkButtons that are variably visible?
I am working to make my code more accessible for screen-readers and I have come across this situation and have been able to find no answer for it. When buttons are only visible given a condition is met, how do you properly apply sr-only text? I want…

JakeofSpades
- 892
- 1
- 8
- 18
0
votes
2 answers
Open asp LinkButton in a new tab
I have a button in my gridview and when the users click on it, it goes to the page. However, if you right click on it and "open link in a new tab" it goes to a blank page. I want it so when the user right click on it and "open link in a new tab" to…

Charles Xavier
- 1,015
- 3
- 14
- 33
0
votes
1 answer
Can't download file on LinkButton event clicked
I am trying to download file when user clicks link button event from gridview, but the file is not downloaded.
The code i have when user clicks linkbutton event:
protected void downloadLink_Click1(object sender, EventArgs e)
{
LinkButton…

Endar
- 63
- 3
- 10
0
votes
1 answer
How to add Link Button In dynamically in Autogenerated Gridview
How to add Link Button In dynamically in Autogenerated Gridview and How write onclick event for that link button.

Hari
- 11
- 1
- 11
0
votes
1 answer
Ajax DropDown works in Google but not in IE 9
I am calling ajax dropdown inside repeater with link button. DropDown list is populated in IE but that value is not being selected so ItemCommnand is not fired at all.IE is not able to understand that dropdown value is selected, same thing works…

v234
- 1
- 2
0
votes
5 answers
Add asp.net LinkButton to a Literal using c#
I want to add some asp.net linkbutton controls to a literal on a c# web form application like code below:
StringBuilder sb = new StringBuilder("
- ");
sb.Append("
- ");
sb.AppendFormat("Reza Amini
- 476
- 1
- 5
- 20
0
votes
1 answer
Why does the design of a web page change at run time?
I have created a website using asp.net. Everything worked fine until now. But the last page does not behave as i expected. In the UI there is a dropdownlist,gridview,link button and few labels within a collapse bar. Gridview get populated according…

Mike
- 1,017
- 4
- 19
- 34
0
votes
1 answer
How to display pdf file in a seperate tab in a browser?
I have tried a code to open a pdf file in a web browser. It give to allows me to open the file through pdf reader no in the browser. Almost all the codes i found over the internet are also same as this code. But this code doesn't work as i…

Mike
- 1,017
- 4
- 19
- 34
0
votes
1 answer
Simultaneously deleting a file from a DataBase and a Folder using a LinkButton or Gridview_RowDeleting method
HELP! Is it achievable to use LinkButton or Gridview_RowDeleting method to simultaneously delete a file from a DataBase and from a Folder? Below is my code using a LinkButton: