Left Navigation Pane

Discussion in 'ASP .Net' started by Yama, Jan 5, 2004.

  1. Yama

    Yama Guest

    Good Afternoon to all,

    What will be the best way to capture ServerClick from a a left menu generated by a datalist?

    Private Sub GetReports()
    Try
    Dim cmd As New SqlCommand
    Dim conn As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
    cmd.CommandText = "GetReportListing"
    cmd.CommandType = CommandType.StoredProcedure
    cmd.CommandTimeout = 360 '-- 6 minutes
    cmd.Connection = conn
    cmd.Connection.Open()
    Dim ds As DataSet = New DataSet
    Dim da As New SqlDataAdapter(cmd)
    da.Fill(ds, "ReportListing")
    dlReports.DataSource = ds
    dlReports.DataBind()
    Catch eX As Exception
    Trace.Write(eX.Message)
    End Try
    End Sub

    <table cellspacing="0" cellpadding="2" width="100%" border="0">
    <tr>
    <td class="Head">Reports</td>
    </tr>
    <tr>
    <td>
    <asp:datalist id="dlReports" runat="server">
    <itemtemplate>
    <img height="7" src="../ReportsImages/navlink.gif" width="5">
    <a class="NormalDONE" id="<%# DataBinder.Eval(Container.DataItem,"Description") %>" href="ReportMainPage.aspx?oReport=<%#DataBinder.Eval(Container.DataItem,"Description")%>">
    <%# DataBinder.Eval(Container.DataItem,"Description") %></a>
    </itemtemplate>
    </asp:datalist>
    </td>
    </tr>
    </table>


    This would typically generate for me something like this:

    Report A
    Report B
    Report C
    Report NN

    Depending on what report is clicked the parameter become visible. I would like to accompllish this without having to pass the report name on the URL as if Report A was clicked the page is rendered ReportMainPage.aspx?oReport=Report%20A

    Once you know what the report is it is easy to manipulate anything you want in your logic.

    So all I would like to accomplish is to pass the report name but in the code behind any ideas?

    Yama
     
    Yama, Jan 5, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?aGVjc2FuMDc=?=

    Left Navigation

    =?Utf-8?B?aGVjc2FuMDc=?=, Apr 20, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    389
  2. Patrick.O.Ige
    Replies:
    0
    Views:
    773
    Patrick.O.Ige
    Aug 31, 2006
  3. =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?=

    Help on table align on left of page vs left hanging indent

    =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?=, Jul 10, 2007, in forum: XML
    Replies:
    2
    Views:
    1,007
    =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?=
    Jul 16, 2007
  4. pc
    Replies:
    2
    Views:
    1,321
    crisgoogle
    Jun 8, 2011
  5. lawrence
    Replies:
    13
    Views:
    307
    Thomas 'PointedEars' Lahn
    Sep 4, 2004
Loading...

Share This Page