Here we discuss login in ASP.NET,this is specially help to that user’s which is new in ASP.NET.Login is the basic thing for any application. In login we use the ADO.NET Object such as SqlConnection,Sq...
Here I will discuss how to find nth highest salary. Consider we have a User table the column name of the user table are UserName, Salary, City ,Suppose inthis table we have following data
Leap year a year which have the 1 extra day from normal year, in leap year February have 29 days, in normal February have 28 day. Leap year has 366 days but normal year have 365. To find the given yea...
Most of time we need to call page method(server side code) by client side script(JavaScript) without post back. I will accomplish this using the Page Methods feature. To do this we are using ASP.Net A...
Date and Time is almost used in all application.Here we discuss about the date time format in asp.net.
A cookie is a small bit of text file that browser creates and stores on your machine (hard drive). Cookie is a small piece of information stores as a string. Web server sends the cookies and browser s...
Here I have discuessed find the maximum value from enum. Suppose we have an enum like: public enum TestEnum { A=1, X=2, E=3, R=4, O=5 } if our enum have values like above(Incremented by one),then we c...
Here I have discussed about how to get all the dates of any Dayofweek in a year. Below is the stpes to caluclate all Dayofweek in a year. 1. Initialize a Collection for adding all Sundays in that. Col...
Literal Control: It is used to displaying data; it is lightweight and does not make any formatting techniques. Literal control will render only its text which is assigned in its text property. Label C...
Many time s we want to know How many Tables we used in our Database. Here I have write the query to find the total number of tables/columns used in Database.
PagedDataSource is a class which encapsulates the paging related properties which is required to perform paging in data bound control like Repeater /DataList. PagedDataSource class comes under System....
Many times we want same model popup is open on the different without postback.i.e. by using client side script. Consider we have a page default.aspx on this page we have two button or link for same wo...
One famous problem is to call selected button on the enter key.Suppose we have registration page and want when I fill all information and press enter key the submit button call.Another situation is on...
Here we discuss to generate the textox at runtime. To create the textbox at run time for that first we take a server control Panel where we place the runtime generated textbox.Here we use a textbox an...
Change the color of the userinput fileld if it is blank(empty). Example: first we apply RequiredField Validation and CustomValidator to validate the user input of check the empty control if any user i...
Here I am discussing to find date after a given week or months. For example I want to find the date after 1 week or 2 months from today. Find date after 2 week or 2 months then we can achieved this as...
Many times we want to find out the next business (working) date after “N” business days. In this blog I have described how to find out the next business date after “N” business days. Here “N” is the n...
Many times we want to bind the Repeater with ArrayList.We can use Data Source property of Repeater for binding with Array List. Following is HTML page code:
I have the value of this Enum in my database table, when I fetch that value from database then we want to show this value as Enum name. For example in my database there is 2 when I retrieve it from da...
Check/Uncheck checkboxes in Repeater using JavaScript
In ASP.NET there is a server side validation which is very powerful and easy to use for developers and automatically validates the user input. Beginner developer facing problem when they validate a pa...