ishaan
ishaan
CC#
Created by ishaan on 5/4/2023 in #help
❔ ASP.NET Web Forms - Populating Labels using Primary key from Dropdown
Hi, using ASP.NET C# to build a webform. How do I populate a label with values from a SQL query (i'm getting a primary key from a dropdown list) This is in WebForms https://pastebin.com/aQPQDntn This is what I have for the source. I cant find anything online about some specific line that is needed to get the data from a query for a primary key. What I mean by this is I have a dropdown which contains my primary keys. And when I select one of those keys, it should populate the labels appropriately.
5 replies