Click here to Skip to main content
15,902,447 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb.Net and SMO error Pin
Bassam Saoud2-Sep-08 10:24
Bassam Saoud2-Sep-08 10:24 
AnswerRe: vb.Net and SMO error Pin
Dave Kreskowiak2-Sep-08 10:25
mveDave Kreskowiak2-Sep-08 10:25 
GeneralRe: vb.Net and SMO error Pin
Rafone2-Sep-08 10:37
Rafone2-Sep-08 10:37 
GeneralRe: vb.Net and SMO error Pin
Dave Kreskowiak2-Sep-08 11:52
mveDave Kreskowiak2-Sep-08 11:52 
AnswerRe: vb.Net and SMO error Pin
Paul Conrad2-Sep-08 14:12
professionalPaul Conrad2-Sep-08 14:12 
QuestionSqlDependency and vb.net and sqlserver2005 Pin
ماجد15002-Sep-08 4:43
ماجد15002-Sep-08 4:43 
AnswerRe: SqlDependency and vb.net and sqlserver2005 Pin
Jon_Boy2-Sep-08 5:37
Jon_Boy2-Sep-08 5:37 
QuestionReporting Services - parameters through dropdownlists for dummies Pin
IlseBrase2-Sep-08 4:17
IlseBrase2-Sep-08 4:17 
Hi, so im working with Reporting services in visual studio 2005 - visual basic.
my question is related to passing parameters through dropdownlists.

On my default.aspx page ive got reportviewer1, and dropdownlist1 and button1.
each report has one parameter - also passed through with a dropdownlist.

I want to : In dropdownlist1 choose the report i want to run, when i chose the specific report from the dropdownlist1 - that specific reports dropdownlist parameter must become visible. from there i want to choose the specific parameter and then click on the button1 to generate the report.

Can you please help me with this, as my knowledge on programming is v-e-r-y vague.....

Here is my code im trying to figure out...i gather im going to be using if statements. I set my dropdownitems's value to the path of the specific report, for starters....


Partial Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        'report server Url
        Me.ReportViewer1.ServerReport.ReportServerUrl = New System.Uri("http://localhost/reportserver")
        'Make any report the parent report
        While Me.ReportViewer1.ServerReport.IsDrillthroughReport
            Me.ReportViewer1.PerformBack()
        End While

        Dim strReport As String = DropDownList1.SelectedValue
        Me.ReportViewer1.ServerReport.ReportPath = strReport
        

        End If

    End Sub

    Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
        Dim strReport As String = DropDownList1.SelectedValue
        Me.ReportViewer1.ServerReport.ReportPath = strReport
        If DropDownList1.SelectedIndex = 0 Then
            strReport = "\ClientPerPackage.rdlc"
        ElseIf DropDownList1.SelectedIndex = 1 Then
            strReport = "\stocklist.rdlc"

        End If
    End Sub
End Class

:confused::confused::confused::confused::confused::confused:

AnswerSee this Post Pin
David Mujica2-Sep-08 5:19
David Mujica2-Sep-08 5:19 
GeneralRe: See this Post Pin
IlseBrase2-Sep-08 22:41
IlseBrase2-Sep-08 22:41 
Questionhiding print dialog box Pin
Jithin Shyam2-Sep-08 1:42
Jithin Shyam2-Sep-08 1:42 
AnswerRe: hiding print dialog box Pin
Manas Bhardwaj2-Sep-08 2:00
professionalManas Bhardwaj2-Sep-08 2:00 
QuestionMy database gets cleared upon my application startup Pin
Kofi Ambrose2-Sep-08 0:13
Kofi Ambrose2-Sep-08 0:13 
AnswerRe: My database gets cleared upon my application startup Pin
Eslam Afifi2-Sep-08 1:50
Eslam Afifi2-Sep-08 1:50 
AnswerRe: My database gets cleared upon my application startup Pin
Tom Deketelaere2-Sep-08 2:14
professionalTom Deketelaere2-Sep-08 2:14 
AnswerRe: My database gets cleared upon my application startup Pin
Dave Kreskowiak2-Sep-08 10:22
mveDave Kreskowiak2-Sep-08 10:22 
QuestionRemoting using TCP/IP Pin
anu811-Sep-08 21:39
anu811-Sep-08 21:39 
AnswerRe: Remoting using TCP/IP Pin
Stephen Lintott1-Sep-08 21:50
Stephen Lintott1-Sep-08 21:50 
AnswerRe: Remoting using TCP/IP Pin
Dave Kreskowiak2-Sep-08 10:18
mveDave Kreskowiak2-Sep-08 10:18 
QuestionPlz help Pin
Allrounder1-Sep-08 21:18
Allrounder1-Sep-08 21:18 
AnswerRe: Plz help Pin
Steven J Jowett1-Sep-08 22:47
Steven J Jowett1-Sep-08 22:47 
AnswerRe: Plz help Pin
Paul Conrad2-Sep-08 18:56
professionalPaul Conrad2-Sep-08 18:56 
QuestionSharepoint... Pin
Stephen Lintott1-Sep-08 21:04
Stephen Lintott1-Sep-08 21:04 
AnswerRe: Sharepoint... Pin
Mycroft Holmes2-Sep-08 16:35
professionalMycroft Holmes2-Sep-08 16:35 
QuestionGSM Communication Pin
vahidkiani1-Sep-08 20:14
vahidkiani1-Sep-08 20:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.