Quantcast
Channel: Laiqa Arif » Programming
Browsing latest articles
Browse All 10 View Live

Date and Time Comparison Method in vb.net

Few Days back I was working on Date Time Comparison and what I was doing was comparing my date values with relational operators (> , <) which was returning me the wrong result. Guys always...

View Article



Arithmetic operation resulted in an overflow

Solution: This error mostly occurs when you trying to store large values let’s suppose Long value into Integer type data. So the best solution is to change the data type from Integer to Long.

View Article

Object Reference Not Set to Instance of an Object

This is common Error most of us may have seen this error many times and this mostly occurs when you don’t make Object. For Instance I have a class and I’m using that class in another file in order to...

View Article

Gridview Sorting and Paging

We have often seen that when data is sorted it does not bring accurate data upon Paging and this was happening in my case, so what did was that I actually store the Sort Expression and Sort Direction...

View Article

Get TextBox ID Name in Javascript

Here is the js function that you will be required in getting ID of htm input field: function getTextBoxID() { for (var i = 0; i

View Article


Get Directories Info

Below is the code for the getting the directories info lying on any machine. This code will return you list of directory files. Make one common method and you can call this method on any event as per...

View Article

Count Parameters in Query String

This post will tell how you about how you can count the number of parameters in Query String. It’s quite simple. So, Below is the code in C#: Int16 totalParameters; totalParameters =...

View Article

Change the Gridview Row color .net

For changing the Gridview Row color when mouse is moved over on the row you need to write a JavaScript function on the client side and then you will call that function on the server side on the...

View Article


Required Field validation for CheckBox in .Net

To make any field mandatory in Asp.net we know that we need to use Asp.net built-in validation controls in most of the cases as it mostly goes with the criteria. But most of the times the validation is...

View Article


Get Gridview Row Id when user clicks on the anywhere in Row .Net

This Article is basically about getting Gridview Row Id when clicking anywhere in the row. One most important thing to keep in mind is that I neither have Link Button or Hyperlink in the Grid because...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images