I have some problem in Chapter 9. When i want to get the parameter value from reporting service, an error occur as below:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 190: textbox.Text = parameter.DefaultValues(0)
Below is my coding in aspx.
vb
For Each parameter In parameters
Dim label As New Label
Dim textbox As New TextBox
label.Text = parameter.Prompt
textbox.ID = parameter.Name
textbox.Text = parameter.DefaultValues(0)
Me.Panel2.Controls.Add(label)
Me.Panel2.Controls.Add(textbox)
Reporting service cannot get the parameter from the aspx. How can i solve this problem? thanks.