Binding data (string) to a label



Hi

I build a page that has a dropdownlist control bound with data from a database. When user select an item from the dropdownlist I want a label to be filled with a result from a stored procedure. The stored procedure takes an ID of a selected item (@BoundID) from the dropdownlist and gives a result (@BoundIdentifier) as follows:

---
Running [dbo].[tbh_GetBoundIdentifier] ( @BoundID = cf44452b-8b05-45da-a7c6-14146fba0356, @BoundIdentifier = <NULL> ).

No rows affected.
(0 row(s) returned)
@BoundIdentifier = 160302_R.0582
@RETURN_VALUE = 0
Finished running [dbo].[tbh_GetBoundIdentifier].
---

The BoundIdentifier is always 13 char long.
How can I do that? I can't find any 'binding' for a label.
I'm new to ASP.NET.

.



Relevant Pages

  • Re: display data in stored procedure from multiple tables in label con
    ... I need to display this ... thing he uses in his stored procedure as well as the automatically ... My DBA's stored procedure snipet is below. ... I've tried every combination of that line in my label and nothing seems to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: display data in stored procedure from multiple tables in label
    ... Hey Josh, using the ordinal did the trick. ... I need to display this ... thing he uses in his stored procedure as well as the automatically ... I've tried every combination of that line in my label and nothing seems to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Label.text not set right when called, waits for next procedure to finish.
    ... > In a VB .NET app I changed the text of a label then proceed to run a ... The label change doesn't show ... > label.text change right before the stored procedure call so that the text ... > rdr = RunProcedure ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Biztalk Promoted Fields in SQL Schema
    ... escape the single quotes anywhere they occur in the string by using double ... The label 'http' has already been declared. ... within a query batch or stored procedure. ...
    (microsoft.public.sqlserver.xml)
  • Re: Rook Question
    ... Steve C. Orr, MCSD, MVP ... Need to bind a value from a stored procedure that returns a ... > datagrid using .filll and databind but no such methods for a label. ...
    (microsoft.public.dotnet.framework.aspnet)