We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

filter datagrid within month and year using hyperlink.

i want to filter contents in a table which is showing only all the informations filter only by month and years only. i need the solution ASAP because my task aint gonna complete just because of this problem. this is my HTML table form :

<asp:HyperLinkColumn Text="Link" Target="_parent" DataNavigateUrlField="CompanyName" DataNavigateUrlFormatString="../DefaultBilling.aspx?id={0}"
                        DataTextField="DbName" HeaderText="Generate Invoice"></asp:HyperLinkColumn>

and this is my coding :

 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
 If Session("CompanyId") = "8ACB0E-CDD7-4AA3-B379-1BDC1FE5CC5" Then
            Response.Redirect("../Admin/Company.aspx")
 End If

        'Put user code to initialize the page here
        Access = Common.CheckAccess(Me, Session("UserId"))


        'WebForm.AddDescription(BillMonth, Common.DropDownShowMonth)

        If Not IsPostBack Then

            'case is send querystring mth


            WebForm.BindListControl(BillMonth, GetType(Common.ParamMonth))



            If Month(Now) = 1 Then
                BillMonth.SelectedValue = 12
                BillYear.Text = Year(Now) - 1

            Else
                BillMonth.SelectedValue = Month(Now) - 1
                BillYear.Text = Year(Now)

            End If

        End If

        BindList()

    End Sub
2
Contributors
1
Reply
1 Month
Discussion Span
3 Months Ago
Last Updated
7
Views
syazreen.rahman
Newbie Poster
1 post since Dec 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

@syazreen.rahman

i want to filter contents in a table which is showing only all the informations filter only by month and years only.

Read this about Group, Sort, and Filter Data in the DataGrid Control:

http://msdn.microsoft.com/en-us/library/ff407126.aspx

Regarding about links:

You are missing something in your hyperlink try this:

http://msdn.microsoft.com/en-us/library/k0b15efk%28v=vs.71%29.aspx

LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 349
Skill Endorsements: 47

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.2836 seconds using 2.71MB