Most dynamic sites include variables in their URLs that tell the site
what information to show the user. Typically, this gives URLs like the
following, telling the relevant script on a site to load product number 7.
There are times when you will want to set the color of the grid lines in your GridView - however there is not to my knowledge a way of doing this declaratively. A workaround is to do this by tapping into the GridView's RowDataBound event.
I have a one requirement like changing the textboxes
background whenever validation fails at that time I used the custom validator
and JavaScript function to validate textboxes and change the textboxes
background color for that write the following code in your aspx page
Application object is used to store the information and
access variables from any page in application. Application object is same as
session object only the difference is session object is used to maintain the
session for particular user.
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
The Repeater control in ASP.NET is used to show records from the database. The data display in the repeater control custom design. For example we cannot use custom design in grid view control, but it is possible to use
If (iHour < 12) Then Console.Writeline("Good Morning!") End If If (iHour >= 12) And (iHour < 18) Then Console.WriteLine("Good Afternoon!") End If If (iHour >= 18) Then Console.WriteLine("Good Evening!") End If End Sub