Coder Baba
2.42K subscribers
1.01K photos
23 videos
722 files
723 links
Everything about programming for beginners.
1 and only official telegram channel of CODERBABA India.

Content:
.NET Developer,
Programming (ASP. NET, VB. NET, C#, SQL Server),
& Projects
follow me https://linktr.ee/coderbaba
*Programming
*Coding
*Note
Download Telegram
Family expense tracker web application new video coming tomorrow
_________________________________________________
This media is not supported in your browser
VIEW IN TELEGRAM
Thank you all of you
For 100 đŸ’¯ Members
😍😍
Online Inventory Management Project in PHP with source code and Database.

Where to use it??

This is a Web based application on the store inventory system used for small Organization.


https://imojo.in/20aood3
Online Restaurant Management System PHP Project with Source Code & Database
Download:
https://imojo.in/2246cwv
GridView custom pager template

——————————————
<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html>

<script runat="server">
protected void GridView1_RowCommand(Object sender, GridViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "First":
{GridView1.PageIndex = 0; break;}
case "Next":
{ GridView1.PageIndex++; break; }
case "Previous":
{ GridView1.PageIndex--; break; }
case "Last":
{ GridView1.PageIndex = GridView1.PageCount - 1; break; }
}
Label1.Text = "Current Page: " + (GridView1.PageIndex + 1) + " Total Page:" + GridView1.PageCount;
}
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>How to create GridView custom pager template in asp.net</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2 style="color:Navy; font-style:italic;">GridView Example: Using Custom PagerT
Gridview code;
<asp:GridView
ID="GridView1"
runat="server"
DataSourceID="SqlDataSource1"
AutoGenerateColumns="true"
AllowPaging="true"
PageSize="10"
BorderColor="LightPink"
Font-Names="Comic Sans MS"
OnRowCommand="GridView1_RowCommand"
Width="650"
>
<HeaderStyle BackColor="Crimson" ForeColor="Snow" Height="45" />
<RowStyle BackColor="OrangeRed" ForeColor="Snow" Font-Italic="true" />
<PagerStyle Height="45" HorizontalAlign="Right" BackColor="RosyBrown" />
<PagerTemplate>
<asp:Button
ID="Button1"
runat="server"
Text="First"
CommandName="First"
Height="35"
Font-Bold="true"
ForeColor="SaddleBrown"
/>
<asp:Button
ID="Button2"
runat="server"
Text="Next"
CommandName="Next"
Height="35"
Font-Bold="true"
ForeColor="SaddleBrown"
/>
<asp:Button
ID="Button3"
runat="server"
Text="Previous"
CommandName="Previous"
Height="35"
Font-Bold="true"
ForeColor="SaddleBrown"
/>
<asp:Button
ID="Button4"
runat="server"
Text="Last"
CommandName="Last"
Height="35"
Font-Bold="true"
ForeColor="SaddleBrown"
/>
</PagerTemplate>
</asp:GridView>