Hi,

I have a static sqlparameter default value which I need to display in a label but I can't get it to work. I tried:

lblDefaultRate.Text = SqlDataSource1.SelectParameters["rate"].ToString 

but didn't work. Any idea what is wrong?

Thanks

Recommended Answers

All 2 Replies

no one?

Are you selecting just one instance of the parameter "rate" or are you dealing with multiple entries?

If multiple, that might be your problem.

You can try passing all of this into a data table and looping through adding them to the label. (With delimiters "val1,val2,val3 ect...")

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.