•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,521 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,802 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 2013 | Replies: 3 | Solved
![]() |
•
•
Join Date: Sep 2007
Posts: 1,058
Reputation:
Rep Power: 4
Solved Threads: 61
I have retrieved a value from a query and need to put it into the Label called "lblViews". Every way I try, it says there is no instance for this object. How do I write/set the text of the label to the query I retrieved in the Page_Load method? Thanks.
I have tried the following:
'Views does exist, and writes normally just not to the label inside the repeater. I would hate to have a hidden label outside the repeater and on onLoad set javascript to set the label equal to the hidden label.
I have tried the following:
----
Dim Control1 As Label = Ctype(CelebBio.FindControl("lblViews"), Label)
lblViews.Text = Views
----
CelebBio.lblViews.Text = Views
----'Views does exist, and writes normally just not to the label inside the repeater. I would hate to have a hidden label outside the repeater and on onLoad set javascript to set the label equal to the hidden label.
•
•
Join Date: May 2006
Location: Bellevue, WA
Posts: 1,548
Reputation:
Rep Power: 8
Solved Threads: 51
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- ASP.NET wizard control (ASP.NET)
- Accessing data inside a vector (C++)
- Assembly Help in Programming (Assembly)
- Accessing Assemblies (C#)
- inserting label in xml tags (ASP.NET)
- timer in VB.net (VB.NET)
- Datagrid inside repeater-simple reference problem (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Literal vs Repeater/Datalist for 2 values
- Next Thread: Dynamaic Treeview



Linear Mode