Asp.Net Label?

Results 1 to 2 of 2

Thread: Asp.Net Label?

  1. #1
    Join Date
    Dec 1969

    Default Asp.Net Label?

    Hi, how do get Aggregate function values from a database and set the an label equal to it. I have been trying to use the GetString function in the sqldatareader, with no luck. Do i use, and select the sum that way and set it equal to the label.text?

  2. #2
    Join Date
    Dec 1969

    Default RE: Asp.Net Label?

    once your datareader is open:<BR>dim somevariable as string<BR>while<BR> if not datareader.isdbnull(indexhere) then<BR> somevariable = somevariable & datareader.getstring(indexhere).tostring (if not already a string)<BR> End if<BR>End While<BR><BR>label.text = somevariable<BR><BR>And remember, you can use html in the label.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts