Category: Asp.net

How to connect database in asp.net

{0 Comments}

To connect a data base in asp.net we can use two methods or ways. First one can be the page another can be assigning in web config file and the access the connection any where in the solution. But before starting please notice, that you must have desired namespace included. In this article we are …

Read More…

How to Send Email in ASP.NET

{0 Comments}

In this article you can know how to send email or mail through asp.net. For this some basic things which you must notice that the required namespace, port number, SMTP server address are some of the basic things. Basic namespace you must include are;  C# |  copy code |? 1using System.Net;2using System.Net.Mail;3   Other important thing is Port number, as …

Read More…

How to put/set/add on image button in asp.net

{0 Comments}

How to put/set/add on image button in asp.net

You can set image to a image button in two ways in visual studio. In the first way you have to manually add the image url in image button tag as shown in following syntax.  HTML |  copy code |? 1<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/imageUI/Rectangular_Preview_P.png" 2 /> In the second way is the GUI based visual studio feature where you have …

Read More…

How to use image button in asp.net

{0 Comments}

To use image button is not so tough task this is just easy as other controls, but little thing more have to be done while using this. If you are going to use image button first time then please download button image or some thing like that because you have to use them while using …

Read More…

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 add link button in grid view in asp.net

{0 Comments}

If you want to add a link button in grid view (which can be used like navigation link to next form) but you actually don’t know how to insert that link button into grid view column. Then here an article to sort your problem For this major requirement is to add a template column in …

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…