I assume you're trying to do this in your client-side JS... To get the
parameter from the DDL on the client, you just need to call
var myList = document.getElementById("myListID");
var theParam = myList.options[myList.selectedIndex].value;
Peter
On 10/22/05, ltrane923 <[EMAIL PROTECTED]> wrote:
>
> I am trying to add some functionality to an existing Web report.
> We are using ASP.NET <http://ASP.NET>, VB.Net,SQL
>
> The new functionality is I want to grab a selection from a drop down
> menu and append it to our current querystring.
>
> 1) Currently the user clicks a link calling the javascript, and
> selects a start and end date from a pop up calendar.(datepick.aspx)
>
> <script lang="javascript">
> function getDates_reportAnnual(){
> var datReport = window.showModalDialog('datepick.aspx')
> if (datReport != '' && datReport != null) window.open
> ('report_annual.aspx?reportdates=' + datReport)
> </script>
>
> 2) It goes to some VBcode (report_annual.aspx) which grabs the
> selected dates.
>
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> Dim strStartDate As String
> Dim strEndDate As String
> Dim bytPipeLocation As Byte
>
> 'Get the report start/end dates from the querystring
> (format is startdate|enddate)
> bytPipeLocation = InStr(Trim(Request("reportdates")), "|")
> strStartDate = Left(Request("reportdates"), bytPipeLocation -
> 1)strEndDate = Right(Request("reportdates"), Len(Request
> ("reportdates")) - bytPipeLocation)
> divReport.InnerHtml = Report.AppAnnual(strStartDate, strEndDate)
>
> 3) Then it hits more vbcode basically building the report, stating
> the parameters start and end date and calls the stored procedure.
>
> I am not sure how to append the existing (report_annual.aspx) with
> the additional drop down list selection so that the report
> could be filtered by a location drop down and the dates provided by
> the pop up calendar.
> The drop downs are on the same page as the javascript
>
> Thanks
> LT
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/