Hi All
I done this function VB.NET
i want convert this function in C# pls help me.
Sub CustomPager(ByV al STCPagerGrid As Object)
Dim intCtr As Integer
Static intLastItem As Integer
Static intCount As Integer
Static intTotalPage, lintCurrentPage As Integer
For intCtr = 0 To STCPagerGrid.Co ntrols.Count - 1
If STCPagerGrid.Co ntrols(intCtr). GetType.ToStrin g =
"System.Web.UI. WebControls.Dat aGridLinkButton " Then
If IsNumeric(STCPa gerGrid.control s(intCtr).text) =
True And Left(STCPagerGr id.controls(int Ctr).text, 1) <> "[" Then
STCPagerGrid.co ntrols(intCtr). text = "[" &
STCPagerGrid.co ntrols(intCtr). text & "]"
If STCPagerGrid.Co ntrols(intCtr). Text = "..." And
intCtr = 0 Then
STCPagerGrid.Co ntrols(intCtr). Text = "[<<]"
End If
If STCPagerGrid.Co ntrols(intCtr). Text = "..." And
intCtr > 0 Then
STCPagerGrid.Co ntrols(intCtr). Text = "[>>]"
End If
End If
If STCPagerGrid.co ntrols(intCtr). controls.count > 0 Then
CustomPager(STC PagerGrid.contr ols(intCtr))
End If
Next
End Sub
Regards
Venu.