Category: LinkButton

How to use link button in asp.net

{0 Comments}

How to use link button in asp.net

You can use link button in asp.net similarly like a simple button control and do what ever you want to do on its click event. Following is the basic way in which you can use link button. First add link button in aspx page in you visual studio IDE as shown below. First put the …

Read More…

How to disable link button asp.net

{0 Comments}

To disabling a link button is bit challenging but, I am sure what so challenging in that we can do this just putting following code in the on click function of the link button and it get disabled perfectly.  C# |  copy code |? 1LinkButton1.Enabled = false; But the problem really arises when you try to disable link button from …

Read More…

How to change color of linkbutton in asp.net

{0 Comments}

In this article you will know how to change linkbutton color using JavaScript on clicking on them. For this I have created an asp linkbutton and then add this following JavaScript   Javascript |  copy code |? 1<script>2 function changeColor(e)3 {4 e.style.color = "red";5 return false;6 }7 </script> After adding above JavaScript I finally add this property of change color function …

Read More…

How to change the color of disabled link button

{0 Comments}

We always get the same black boring text after the link button gets disabled. Most of time it gets merges in the text too. So after getting disable if you need to change color then you can follow these steps.  Create a css class for your disabled linkbutton mine is below.  CSS |  copy code |? 1<style type="text/css">2 .LnkBtn3 {4 …

Read More…

How to create dynamic linkbutton in asp.net

{0 Comments}

To create dynamic link button then use the following code which will remain same to make any control in asp.net. I have tested on many of them. And lastly don’t forget to add the same to the form of the asp.net page otherwise it will through an error. Then code for that is as follows. …

Read More…